Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Instance ¶
type Instance interface { GetConfigDir() string RegisterSubscription(string, []string, func() error) error StartWatcher(ctx context.Context) error StopWatcher() error GetModuleByFile(string) (Module, bool) GetModule(string) Module GetModuleNames() []string GetOrAddModule(string) (Module, error) GetStringIfExists(string) (string, bool, error) GetIntIfExists(string) (int64, bool, error) GetDurationIfExists(string) (time.Duration, bool, error) GetBoolIfExists(string) (bool, bool, error) GetString(string, ...string) (string, error) GetInt(string, ...int64) (int64, error) GetDuration(string, ...time.Duration) (time.Duration, error) GetBool(string, ...bool) (bool, error) GetStrings(string, []string) ([]string, error) GetStruct(string, interface{}) (bool, error) Clone() (Instance, error) Release(context.Context, Instance) error }
type Module ¶
type Module interface { GetStringIfExists(string) (string, bool, error) GetIntIfExists(string) (int64, bool, error) GetDurationIfExists(string) (time.Duration, bool, error) GetBoolIfExists(string) (bool, bool, error) GetString(string, ...string) (string, error) GetInt(string, ...int64) (int64, error) GetDuration(string, ...time.Duration) (time.Duration, error) GetBool(string, ...bool) (bool, error) GetStrings(string, []string) ([]string, error) GetStruct(string, interface{}) (bool, error) RegisterSubscription(subscription SubscriptionCallback) Reopen(mmappedFile *mmap.ReaderAt) (*mmap.ReaderAt, error) GetMmappedFile() *mmap.ReaderAt Clone(name string) Module }
type SubscriptionCallback ¶
Click to show internal directories.
Click to hide internal directories.