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) (int, bool, error) GetBoolIfExists(string) (bool, bool, error) GetString(string, ...string) (string, error) GetInt(string, ...int) (int, error) GetBool(string, ...bool) (bool, error) GetStrings(string, []string) ([]string, error) GetStruct(string, interface{}) (bool, error) Clone() (Instance, error) Release(Instance) error }
type Module ¶
type Module interface { GetStringIfExists(string) (string, bool, error) GetIntIfExists(string) (int, bool, error) GetBoolIfExists(string) (bool, bool, error) GetString(string, ...string) (string, error) GetInt(string, ...int) (int, 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.