pkg

package
v0.2.24 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AppName          string // 应用名称
	AppVersion       string // 应用版本
	BuildVersion     string // 编译版本
	BuildTime        string // 编译时间
	GoVersion        string // Golang信息
	DisplayName      string // 服务显示名
	Description      string // 服务描述信息
	OsType           string // 操作系统
	Arch             string // cpu类型
	Compiler         string // 编译器信息
	GitRevision      string // Git版本
	GitBranch        string // Git分支
	GitTreeState     string // state of git tree, either "clean" or "dirty"
	GitCommit        string // sha1 from git, output of 4a2ea0514582c5bdf629ad348341970c5ea8fdc6
	GitVersion       string // semantic version, derived by build scripts
	GitReleaseCommit string
	BinName          string // 运行文件名称,包含平台架构
)

Functions

func SseHandler added in v0.2.13

func SseHandler(queue *LogQueue) http.HandlerFunc

SseHandler 处理函数

func Version

func Version() string

Version 版本信息

Types

type LogQueue added in v0.2.13

type LogQueue struct {
	// contains filtered or unexported fields
}

定义日志队列

func NewLogQueue added in v0.2.13

func NewLogQueue() *LogQueue

初始化日志队列

func (*LogQueue) AddMessage added in v0.2.13

func (q *LogQueue) AddMessage(message string)

生产者添加日志消息

func (*LogQueue) RegisterClient added in v0.2.13

func (q *LogQueue) RegisterClient(client chan string)

消费者注册客户端

func (*LogQueue) UnregisterClient added in v0.2.13

func (q *LogQueue) UnregisterClient(client chan string)

消费者注销客户端

Directories

Path Synopsis
frp

Jump to

Keyboard shortcuts

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