config

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Providers []Provider `yaml:"providers"`
	Datastore Datastore  `yaml:"datastore"`
	Web       Web        `yaml:"web"`
	Logging   Logging    `yaml:"logging"`
}

func New

func New(ctx context.Context, options options.Options) (Config, error)

New creates a new configuration

type Datastore

type Datastore struct {
	Type           string `yaml:"type"`
	DataSourceName string `yaml:"dataSourceName"`
}

type Logging

type Logging struct {
	Mode   string `yaml:"mode"`
	Logger *zap.Logger
}

func (Logging) IsDev

func (l Logging) IsDev() bool

type Provider

type Provider struct {
	Cloud string `yaml:"cloud"`
}

type Web

type Web struct {
	Host   string `yaml:"host"`
	Port   int    `yaml:"port"`
	Prefix string `yaml:"prefix"`
}

Jump to

Keyboard shortcuts

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