config

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileRange

type FileRange[T common_utils.Num] struct {
	Begin T `json:"begin" yaml:"begin"`
	End   T `json:"end" yaml:"end"`
}

func (*FileRange[T]) Process

func (r *FileRange[T]) Process() common_utils.IRange[T]

type FileTLS

type FileTLS struct {
	Enable bool   `yaml:"enable" json:"enable"`
	Cert   string `yaml:"cert" json:"cert"`
	Key    string `yaml:"key" json:"key"`
}

func ApplyEnv

func ApplyEnv(fileCfg FileTLS) *FileTLS

type TLS

type TLS struct {
	Cert string
	Key  string
}

func NewTlsConfigFromFile

func NewTlsConfigFromFile(fileCfg *FileTLS, defaultCertPath, defaultKeyPath string) *TLS

Jump to

Keyboard shortcuts

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