Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface { WatchLoggingConfig(args params.Entities) params.NotifyWatchResults LoggingConfig(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 ¶
NewLoggerAPI creates a new server-side logger API end point.
func (*LoggerAPI) LoggingConfig ¶
func (api *LoggerAPI) LoggingConfig(arg params.Entities) params.StringResults
LoggingConfig reports the logging configuration for the agents specified.
func (*LoggerAPI) WatchLoggingConfig ¶
func (api *LoggerAPI) WatchLoggingConfig(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.