Documentation ¶
Index ¶
- func NewEtcService(params ...any) (any, error)
- type EtcProvider
- type EtcService
- func (s *EtcService) Exist(key string) bool
- func (s *EtcService) Get(key string) any
- func (s *EtcService) GetBool(key string) bool
- func (s *EtcService) GetFloat32(key string) float32
- func (s *EtcService) GetFloat64(key string) float64
- func (s *EtcService) GetInt(key string) int
- func (s *EtcService) GetInt64(key string) int64
- func (s *EtcService) GetIntSlice(key string) []int
- func (s *EtcService) GetString(key string) string
- func (s *EtcService) GetStringMap(key string) map[string]any
- func (s *EtcService) GetStringMapString(key string) map[string]string
- func (s *EtcService) GetStringMapStringSlice(key string) map[string][]string
- func (s *EtcService) GetStringSlice(key string) []string
- func (s *EtcService) GetTime(key string) time.Time
- func (s *EtcService) Load(key string, val any) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEtcService ¶
Types ¶
type EtcProvider ¶
type EtcProvider struct{}
func (*EtcProvider) Boot ¶
func (p *EtcProvider) Boot(container goframe.IContainer) error
func (*EtcProvider) Inject ¶
func (p *EtcProvider) Inject(container goframe.IContainer) goframe.Handler
func (*EtcProvider) IsDefer ¶
func (p *EtcProvider) IsDefer() bool
func (*EtcProvider) Name ¶
func (p *EtcProvider) Name() string
func (*EtcProvider) Params ¶
func (p *EtcProvider) Params(container goframe.IContainer) []any
type EtcService ¶
type EtcService struct {
// contains filtered or unexported fields
}
func (*EtcService) Exist ¶
func (s *EtcService) Exist(key string) bool
func (*EtcService) Get ¶
func (s *EtcService) Get(key string) any
func (*EtcService) GetBool ¶
func (s *EtcService) GetBool(key string) bool
func (*EtcService) GetFloat32 ¶
func (s *EtcService) GetFloat32(key string) float32
func (*EtcService) GetFloat64 ¶
func (s *EtcService) GetFloat64(key string) float64
func (*EtcService) GetInt ¶
func (s *EtcService) GetInt(key string) int
func (*EtcService) GetInt64 ¶
func (s *EtcService) GetInt64(key string) int64
func (*EtcService) GetIntSlice ¶
func (s *EtcService) GetIntSlice(key string) []int
func (*EtcService) GetString ¶
func (s *EtcService) GetString(key string) string
func (*EtcService) GetStringMap ¶
func (s *EtcService) GetStringMap(key string) map[string]any
func (*EtcService) GetStringMapString ¶
func (s *EtcService) GetStringMapString(key string) map[string]string
func (*EtcService) GetStringMapStringSlice ¶
func (s *EtcService) GetStringMapStringSlice(key string) map[string][]string
func (*EtcService) GetStringSlice ¶
func (s *EtcService) GetStringSlice(key string) []string
Click to show internal directories.
Click to hide internal directories.