logsvr

package
v0.0.0-...-b988991 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LogSvrFlag = []cli.Flag{
		cli.StringFlag{
			Name:  "ip, i",
			Value: "0.0.0.0",
			Usage: "Service Listen Address",
		},
		cli.IntFlag{
			Name:  "port, p",
			Value: 5005,
			Usage: "Service Listen Port",
		},
		cli.StringFlag{
			Name:  "storagepath, s",
			Value: "./logstorage",
			Usage: "Service log file storage path",
		},
		cli.StringFlag{
			Name:  "logpath, l",
			Value: "./log",
			Usage: "Local log file path",
		},
		cli.StringFlag{
			Name:  "consul, u",
			Value: "",
			Usage: "consul server ip",
		},
		cli.IntFlag{
			Name:  "cport, c",
			Value: 0,
			Usage: "Service Health Check Port",
		},
	}
)

Functions

func LogSvrAction

func LogSvrAction(c *cli.Context) error

Types

type LogSvrMgr

type LogSvrMgr struct {
	LogHandleMap map[string]l4g.Logger
	// contains filtered or unexported fields
}
var (
	// 全局对象
	GLogSvrMgr *LogSvrMgr
)

func (*LogSvrMgr) Run

func (logsvrMgr *LogSvrMgr) Run(listenIP string, listenPort int, logStoragePath string) error

运行

Jump to

Keyboard shortcuts

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