config

package
v0.0.0-...-d1a390d Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: Apache-2.0 Imports: 1 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 {
	Server       ServerConfig        `mapstructure:"server" json:"server" yaml:"server"`
	LoggerConfig logger.LoggerConfig `mapstructure:"logger" json:"logger" yaml:"logger"`
	Persister    PersisterConfig     `mapstructure:"persister" json:"persister" yaml:"persister"`
}

type HttpConfig

type HttpConfig struct {
	Port string `mapstructure:"port" json:"port" yaml:"port"`
	Mode string `mapstructure:"mode" json:"mode" yaml:"mode"`
}

type PersisterConfig

type PersisterConfig struct {
	Storage string `mapstructure:"storage" json:"storage" yaml:"storage"`

	Mongo PersisterMongo `mapstructure:"mongo" json:"mongo" yaml:"mongo"`
}

type PersisterMongo

type PersisterMongo struct {
	URL string `mapstructure:"url" json:"url" yaml:"url"`
}

type ServerConfig

type ServerConfig struct {
	Http HttpConfig `mapstructure:"http" json:"http" yaml:"http"`
}

Jump to

Keyboard shortcuts

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