config

package
v0.0.4 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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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