config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAnanConfig

func NewAnanConfig(params ...interface{}) (interface{}, error)

Types

type AnanConfig

type AnanConfig struct {
	// contains filtered or unexported fields
}

func (*AnanConfig) Get

func (conf *AnanConfig) Get(key string) interface{}

func (*AnanConfig) GetBool

func (conf *AnanConfig) GetBool(key string) bool

func (*AnanConfig) GetFloat64

func (conf *AnanConfig) GetFloat64(key string) float64

func (*AnanConfig) GetInt

func (conf *AnanConfig) GetInt(key string) int

func (*AnanConfig) GetIntSlice

func (conf *AnanConfig) GetIntSlice(key string) []int

func (*AnanConfig) GetString

func (conf *AnanConfig) GetString(key string) string

func (*AnanConfig) GetStringMap

func (conf *AnanConfig) GetStringMap(key string) map[string]interface{}

func (*AnanConfig) GetStringMapString

func (conf *AnanConfig) GetStringMapString(key string) map[string]string

func (*AnanConfig) GetStringMapStringSlice

func (conf *AnanConfig) GetStringMapStringSlice(key string) map[string][]string

func (*AnanConfig) GetStringSlice

func (conf *AnanConfig) GetStringSlice(key string) []string

func (*AnanConfig) GetTime

func (conf *AnanConfig) GetTime(key string) time.Time

func (*AnanConfig) IsExist

func (conf *AnanConfig) IsExist(key string) bool

func (*AnanConfig) Load

func (conf *AnanConfig) Load(key string, val interface{}) error

type AnanConfigProvider

type AnanConfigProvider struct{}

func (*AnanConfigProvider) Boot

func (provider *AnanConfigProvider) Boot(c framework.Container) error

Boot will called when the service instantiate

func (*AnanConfigProvider) IsDefer

func (provider *AnanConfigProvider) IsDefer() bool

IsDefer define whether the service instantiate when first make or register

func (*AnanConfigProvider) Name

func (provider *AnanConfigProvider) Name() string

/ Name define the name for this service

func (*AnanConfigProvider) Params

func (provider *AnanConfigProvider) Params(c framework.Container) []interface{}

Params define the necessary params for NewInstance

func (*AnanConfigProvider) Register

Register registe a new function for make a service instance

Jump to

Keyboard shortcuts

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