Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateServerCommand ¶
CreateServerCommand initializes and returns a *cobra.Command that implements the 'server' CLI sub-command
Types ¶
type Logger ¶ added in v0.14.0
type Logger interface {
// Info generates a log entry at INFO level with the specified message and key/value attributes
Info(msg string, kvs ...any)
// Debug generates a log entry at DEBUG level with the specified message and key/value attributes
Debug(msg string, kvs ...any)
// Error generates a log entry at ERROR level with the specified error, message, and key/value attributes
Error(err error, msg string, kvs ...any)
}
Logger defines the required behavior for the service's logger. This type is defined here so that the server implementation is not tied to any specified logging library.