conf

package
v0.0.0-...-93c743e Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GateWayConfig

type GateWayConfig struct {
	ServiceId     string
	ServiceName   string `default:"gateway"`
	Listen        string `default:":8000"`
	PublicAddress string
	PublicPort    int `default:"8000"`
	Tags          []string
	ConsulURL     string
	MonitorPort   int `default:"8001"`
	AppSecret     string
	LogLevel      string `default:"INFO"`
}

func InitGateWayConfig

func InitGateWayConfig(file string) (*GateWayConfig, error)

InitGateWayConfig 初始化网关配置选项,从配置文件file读取

func (GateWayConfig) String

func (c GateWayConfig) String() string

Jump to

Keyboard shortcuts

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