Documentation ¶
Index ¶
- Constants
- func MustValidate(l logrus.FieldLogger, p Provider)
- type Provider
- type ViperProvider
- func (v *ViperProvider) CORSEnabled() bool
- func (v *ViperProvider) CORSOptions() cors.Options
- func (v *ViperProvider) DSN() string
- func (v *ViperProvider) ListenOn() string
- func (v *ViperProvider) TracingJaegerConfig() *tracing.JaegerConfig
- func (v *ViperProvider) TracingProvider() string
- func (v *ViperProvider) TracingServiceName() string
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
Click to show internal directories.
Click to hide internal directories.