config

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: Apache-2.0 Imports: 5 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 {
	Port     int                   `mapstructure:"port"`
	Users    map[string]string     `mapstructure:"users"`
	Surreal  surreal.SurrealConfig `mapstructure:"surreal"`
	LogLevel string                `mapstructure:"logLevel"`
	Gin      string                `mapstructure:"gin"`
}

func LoadConfig

func LoadConfig() (Config, error)

type ConfigMap added in v0.0.6

type ConfigMap struct {
	Port     int                   `mapstructure:"port"`
	Surreal  surreal.SurrealConfig `mapstructure:"surreal"`
	LogLevel string                `mapstructure:"logLevel"`
	Gin      string                `mapstructure:"gin"`
}

func LoadConfigMap added in v0.0.6

func LoadConfigMap() (ConfigMap, error)

type UserMap added in v0.0.6

type UserMap struct {
	Users map[string]string `mapstructure:"users"`
}

func LoadUsersMap added in v0.0.6

func LoadUsersMap() (UserMap, error)

Jump to

Keyboard shortcuts

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