config

package
v0.0.0-...-4e30db9 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Host     string        `yaml:"host"`
	Database string        `yaml:"database"`
	Timeout  time.Duration `yaml:"timeout"`
}

Configuration describes the options to customize the storage behavior

func (*Configuration) InitFromViper

func (c *Configuration) InitFromViper(v *viper.Viper)

InitFromViper initializes the options struct with values from Viper

Jump to

Keyboard shortcuts

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