config

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2022 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 BindConfig

type BindConfig struct {
	Host string `json:"host"`
	Port int    `json:"port"`
}

type Config

type Config struct {
	v1.BaseModel
	v1.Metadata
	Spec Spec `json:"spec"`
}

type DBConfig

type DBConfig struct {
	Path string `json:"path"`
}

type LoggerConfig

type LoggerConfig struct {
	Level string
}

type SSLConfig

type SSLConfig struct {
	Enable         bool   `json:"enable"`
	Certificate    string `json:"certificate"`
	CertificateKey string `json:"certificateKey"`
}

type ServerConfig

type ServerConfig struct {
	Bind BindConfig `json:"bind"`
	SSL  SSLConfig  `json:"ssl"`
}

type Spec

type Spec struct {
	Server ServerConfig `json:"server"`
	DB     DBConfig     `json:"db"`
	Logger LoggerConfig `json:"logger"`
	AppId  string       `json:"appId"`
}

Jump to

Keyboard shortcuts

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