config

package
v1.7.3 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: GPL-3.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 JwtConfig

type JwtConfig struct {
	Key string `json:"key"`
}

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 SessionConfig

type SessionConfig struct {
	Expires int `json:"expires"`
}

type Spec

type Spec struct {
	Server  ServerConfig  `json:"server"`
	DB      DBConfig      `json:"db"`
	Session SessionConfig `json:"session"`
	Logger  LoggerConfig  `json:"logger"`
	Jwt     JwtConfig     `json:"jwt"`
	AppId   string        `json:"appId"`
}

Jump to

Keyboard shortcuts

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