Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(registry facade.FacadeRegistry)
Register is called to expose a package of facades onto a given registry.
Types ¶
type Logger ¶
type Logger interface { WatchLoggingConfig(ctx context.Context, args params.Entities) params.NotifyWatchResults LoggingConfig(ctx context.Context, args params.Entities) params.StringResults }
Logger defines the methods on the logger API end point. Unfortunately, the api infrastructure doesn't allow interfaces to be used as an actual endpoint because our rpc mechanism panics. However, I still feel that this provides a useful documentation purpose.
type LoggerAPI ¶
type LoggerAPI struct {
// contains filtered or unexported fields
}
LoggerAPI implements the Logger interface and is the concrete implementation of the api end point.
func NewLoggerAPI ¶
func NewLoggerAPI(authorizer facade.Authorizer, watcherRegistry facade.WatcherRegistry, modelConfigService ModelConfigService) (*LoggerAPI, error)
NewLoggerAPI returns a LoggerAPI facade.
func (*LoggerAPI) LoggingConfig ¶
LoggingConfig reports the logging configuration for the agents specified.
func (*LoggerAPI) WatchLoggingConfig ¶
func (api *LoggerAPI) WatchLoggingConfig(ctx context.Context, arg params.Entities) params.NotifyWatchResults
WatchLoggingConfig starts a watcher to track changes to the logging config for the agents specified.. Unfortunately the current infrastructure makes watching parts of the config non-trivial, so currently any change to the config will cause the watcher to notify the client.
type ModelConfigService ¶
type ModelConfigService interface { ModelConfig(ctx context.Context) (*config.Config, error) Watch() (watcher.StringsWatcher, error) }
ModelConfigService is an interface that provides access to the model configuration.