generated from origadmin/.github
-
Notifications
You must be signed in to change notification settings - Fork 0
/
const.go
56 lines (53 loc) · 1.5 KB
/
const.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
* Copyright (c) 2024 OrigAdmin. All rights reserved.
*/
// Package bootstrap implements the functions, types, and interfaces for the module.
package bootstrap
// Define types from kratos config package
//type (
// Selector = kratosconfig.Selector
// Decoder = kratosconfig.Decoder
// KeyValue = kratosconfig.KeyValue
// Merge = kratosconfig.Merge
// Observer = kratosconfig.Observer
// Option = kratosconfig.Option
// Reader = kratosconfig.Reader
// Resolver = kratosconfig.Resolver
// Source = kratosconfig.Source
// Value = kratosconfig.Value
// Watcher = kratosconfig.Watcher
//)
//var (
// // ErrNotFound defined error from kratos config package
// ErrNotFound = kratosconfig.ErrNotFound
//)
//
//// NewConfig returns a new config instance
//func NewConfig(opts ...Option) Selector {
// return kratosconfig.New(opts...)
//}
//
//// WithDecoder sets the decoder
//func WithDecoder(d Decoder) Option {
// return kratosconfig.WithDecoder(d)
//}
//
//// WithMergeFunc sets the merge function
//func WithMergeFunc(m Merge) Option {
// return kratosconfig.WithMergeFunc(m)
//}
//
//// WithResolveActualTypes enables resolving actual types
//func WithResolveActualTypes(enableConvertToType bool) Option {
// return kratosconfig.WithResolveActualTypes(enableConvertToType)
//}
//
//// WithResolver sets the resolver
//func WithResolver(r Resolver) Option {
// return kratosconfig.WithResolver(r)
//}
//
//// WithSource sets the source
//func WithSource(s ...Source) Option {
// return kratosconfig.WithSource(s...)
//}