comfig

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: May 2, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

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() *raven.Client
}

func NewSentrier

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

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