comfig

package
v1.11.3 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 12 Imported by: 37

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateLazyDep

func ValidateLazyDep(dep interface{}) error

ValidateLazyDep - goes trough all methods of the dep and tries to call them. Returns error if one of the method calls panicked or if methods accepts any arguments.

Types

type Listenerer

type Listenerer interface {
	Listener() net.Listener
}

func NewListenerer

func NewListenerer(getter kv.Getter) Listenerer

type Logger

type Logger interface {
	Log() *logan.Entry
}

func NewLogger

func NewLogger(getter kv.Getter, options LoggerOpts) Logger

type LoggerOpts

type LoggerOpts struct {
	Release string
}

type Once

type Once struct {
	// contains filtered or unexported fields
}

Once like `sync.Once` but also stores return and panic values

func (*Once) Do

func (o *Once) Do(f func() interface{}) interface{}

type Sentrier

type Sentrier interface {
	Sentry() *sentry.Client
	SentryConfig() SentryConfig
}

func NewSentrier

func NewSentrier(getter kv.Getter, options SentryOpts) Sentrier

type SentryConfig added in v1.8.5

type SentryConfig struct {
	DSN     string       `fig:"dsn,required"`
	Release string       `fig:"release"`
	Level   *logan.Level `fig:"level"`
}

type SentryOpts

type SentryOpts struct {
	Release string
}

Jump to

Keyboard shortcuts

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