etc

package
v0.0.0-...-41a006c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEtcService

func NewEtcService(params ...any) (any, error)

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

func (*EtcService) GetTime

func (s *EtcService) GetTime(key string) time.Time

func (*EtcService) Load

func (s *EtcService) Load(key string, val any) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL