conf

package
v0.0.0-...-b787a1b Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configure

type Configure struct {
	Server     string
	UseSSL     bool
	GrpcListen uint16
	HttpListen uint16
	TLSKey     string
	TLSCrt     string
	LogDir     string
	LogSize    utils.Bytes
	LogRotate  int
	// contains filtered or unexported fields
}

func Load

func Load(dir string) *Configure

Load load configure file

func (*Configure) BuildHeader

func (cfg *Configure) BuildHeader(ctx context.Context, id string) context.Context

BuildHeader build request header

func (*Configure) SecretVerify

func (cfg *Configure) SecretVerify(ctx context.Context) error

SecretVerify

Jump to

Keyboard shortcuts

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