Documentation ¶
Index ¶
- type Config
- type PrefixConfig
- func (p *PrefixConfig[M]) ForEach(logic func(key string, value *M) error) error
- func (p *PrefixConfig[M]) Get(key string) *M
- func (p *PrefixConfig[M]) Set(key string, value *M) error
- func (p *PrefixConfig[M]) SetWithLock(key string, logic func(key string, value *M) *M) error
- func (p *PrefixConfig[M]) Update(key string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrefixConfig ¶
func NewPrefixConfig ¶
func NewPrefixConfig[M any](prefix string) (*PrefixConfig[M], error)
func (*PrefixConfig[M]) ForEach ¶
func (p *PrefixConfig[M]) ForEach(logic func(key string, value *M) error) error
func (*PrefixConfig[M]) Get ¶
func (p *PrefixConfig[M]) Get(key string) *M
func (*PrefixConfig[M]) Set ¶
func (p *PrefixConfig[M]) Set(key string, value *M) error
func (*PrefixConfig[M]) SetWithLock ¶
func (p *PrefixConfig[M]) SetWithLock(key string, logic func(key string, value *M) *M) error
func (*PrefixConfig[M]) Update ¶
func (p *PrefixConfig[M]) Update(key string) error
Click to show internal directories.
Click to hide internal directories.