configuration

package
v0.4.0-sandbox Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ViperKeyDSN  = "dsn"
	ViperKeyHost = "serve.host"
	ViperKeyPort = "serve.port"
)

Variables

This section is empty.

Functions

func MustValidate

func MustValidate(l logrus.FieldLogger, p Provider)

Types

type Provider

type Provider interface {
	CORSEnabled() bool
	CORSOptions() cors.Options
	ListenOn() string
	DSN() string
	TracingServiceName() string
	TracingProvider() string
	TracingJaegerConfig() *tracing.JaegerConfig
}

func NewViperProvider

func NewViperProvider(l logrus.FieldLogger) Provider

type ViperProvider

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

func (*ViperProvider) CORSEnabled

func (v *ViperProvider) CORSEnabled() bool

func (*ViperProvider) CORSOptions

func (v *ViperProvider) CORSOptions() cors.Options

func (*ViperProvider) DSN

func (v *ViperProvider) DSN() string

func (*ViperProvider) ListenOn

func (v *ViperProvider) ListenOn() string

func (*ViperProvider) TracingJaegerConfig

func (v *ViperProvider) TracingJaegerConfig() *tracing.JaegerConfig

func (*ViperProvider) TracingProvider

func (v *ViperProvider) TracingProvider() string

func (*ViperProvider) TracingServiceName

func (v *ViperProvider) TracingServiceName() string

Jump to

Keyboard shortcuts

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