bifrost

package
v1.0.2-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2021 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Signal = flag.String("s", "", "send `signal` to a master process: stop, restart, status")

	// bifrost配置
	BifrostConf = new(Config)
)

Functions

func ListenSignal

func ListenSignal(sigChan chan<- int)

func Restart

func Restart() error

Restart, 守护进程 restart 方法函数 返回值:

错误

func ServerRun

func ServerRun() error

func Start

func Start() (err error)

Start, 守护进程 start 方法函数 返回值:

错误

func Status

func Status() (int, error)

Status, 守护进程 status 方法函数 返回值:

错误

func Stop

func Stop() error

Stop, 守护进程 stop 方法函数 返回值:

错误

Types

type Config

type Config struct {
	ServiceConfig ServiceConfig `yaml:"Service"`
	//AuthService *AuthService `yaml:"AuthService"`
	*RAConfig `yaml:"RAConfig"`
	LogConfig `yaml:"LogConfig"`
}

Config, bifrost配置文件结构体,定义bifrost配置信息

type LogConfig

type LogConfig struct {
	LogDir string          `yaml:"logDir"`
	Level  logger.LogLevel `yaml:"level"`
}

LogConfig, bifrost日志信息结构体,定义日志目录、日志级别

func (LogConfig) IsDebugLvl

func (l LogConfig) IsDebugLvl() bool

type RAConfig

type RAConfig struct {
	Host string `yaml:"Host"`
	Port uint16 `yaml:"Port"`
}

type ServiceConfig

type ServiceConfig struct {
	Port                     uint16                                   `yaml:"Port"`
	ChunckSize               int                                      `yaml:"ChunkSize"`
	AuthServerAddr           string                                   `yaml:"AuthServerAddr"`
	WebServerConfigInfos     []web_server_manager.WebServerConfigInfo `yaml:"Infos,flow"`
	BifrostServiceController *service.BifrostServiceController
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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