Documentation
¶
Index ¶
- func LogCloser(ctx context.Context, closer io.Closer)
- func LoggerFromContext(ctx context.Context) *zap.Logger
- func LoggerToContext(ctx context.Context, logger *zap.Logger) context.Context
- func NamedLoggerToContext(ctx context.Context, name string) context.Context
- func NewLogger() *zap.Logger
- type SSHClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoggerToContext ¶
func NamedLoggerToContext ¶
NamedLoggerToContext put an attribute called name where the value is the same from the argument. This is kinda a work around as logger name it not printed when used in `console` mode.
Types ¶
type SSHClient ¶
type SSHClient struct {
// contains filtered or unexported fields
}
func NewSSHClient ¶
func NewSSHClient(cfg config.ServerConfig) (*SSHClient, error)
Click to show internal directories.
Click to hide internal directories.