Documentation ¶
Index ¶
Constants ¶
View Source
const ( BaseSubject events.Subject = "appconfig" UpdateSubject events.Type = "update" )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { IConfig // contains filtered or unexported fields }
func (*Config) Unsubscribe ¶
type IConfig ¶
type IConfig interface { Get() *Cfg Set(val *Cfg) Update(ctx context.Context, val *Cfg) error Reload(ctx context.Context) (*Cfg, error) Subscribe() chan *Cfg Unsubscribe(ch chan *Cfg) }
func NewTest ¶
func NewTest(p TestParams) (IConfig, error)
type TestConfig ¶
type TestConfig struct {
// contains filtered or unexported fields
}
func (*TestConfig) Get ¶
func (c *TestConfig) Get() *Cfg
func (*TestConfig) Set ¶
func (c *TestConfig) Set(val *Cfg)
func (*TestConfig) Subscribe ¶
func (c *TestConfig) Subscribe() chan *Cfg
func (*TestConfig) Unsubscribe ¶
func (c *TestConfig) Unsubscribe(ch chan *Cfg)
Click to show internal directories.
Click to hide internal directories.