Documentation
¶
Index ¶
- Variables
- func NewEmptyConfigValueError(configValueName string) error
- func NewEnvVariableNotSetError(varName string) error
- func NewLogger(component string) *slog.Logger
- func RunClient(cfg *ClientConfig) error
- func RunExternalTarget(cfg *ExternalTargetConfig) error
- type ClientConfig
- type ExternalTargetConfig
- type LogLimiter
- type Result
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EnvVariableNotSetError = errors.New("environment variable is not set") EmptyConfigValueError = errors.New("config value is empty") )
Functions ¶
func RunClient ¶
func RunClient(cfg *ClientConfig) error
func RunExternalTarget ¶
func RunExternalTarget(cfg *ExternalTargetConfig) error
Types ¶
type ClientConfig ¶
type ExternalTargetConfig ¶
type LogLimiter ¶
type LogLimiter[K comparable] struct { // contains filtered or unexported fields }
func NewLogLimiter ¶
func NewLogLimiter[K comparable]() *LogLimiter[K]
func (*LogLimiter[K]) CanLog ¶
func (ll *LogLimiter[K]) CanLog(key K) (cnt uint64, can bool)
Click to show internal directories.
Click to hide internal directories.