common

package
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 26, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Commands = []Command{}

Functions

func Configure added in v0.8.6

func Configure(level, format string, writer io.Writer)

Configure sets up the logger with the given settings

func Debug added in v0.8.6

func Debug(msg string, keysAndValues ...any)

func Error added in v0.8.6

func Error(msg string, keysAndValues ...any)

func Fatal added in v0.8.6

func Fatal(msg string, keysAndValues ...any)

func GetLogger added in v0.8.6

func GetLogger() logger.Logger

GetLogger returns the configured logger instance

func HandleCLIInput

func HandleCLIInput(c *gossip.Cluster)

func Info added in v0.8.6

func Info(msg string, keysAndValues ...any)

func PrintTable

func PrintTable(table [][]string)

func Trace added in v0.8.6

func Trace(msg string, keysAndValues ...any)

Package-level convenience functions

func Warn added in v0.8.6

func Warn(msg string, keysAndValues ...any)

func With added in v0.8.6

func With(key string, value any) logger.Logger

func WithError added in v0.8.6

func WithError(err error) logger.Logger

func WithGroup added in v0.8.6

func WithGroup(group string) logger.Logger

Types

type Command

type Command struct {
	Cmd      string
	HelpText string
	Handler  CommandHandler
}

type CommandHandler

type CommandHandler func(c *gossip.Cluster, args []string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL