log_hub

package
v0.55.3 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OnceLog

type OnceLog struct {
	Index    int       `json:"index"`     // 索引,0 是最近一次,依次递增
	LogLines []OneLine `json:"log_lines"` // 日志每一行的内容
}

func NewOnceLog

func NewOnceLog(index int) *OnceLog

type OneLine

type OneLine struct {
	Level    string `json:"level"`     // 日志的级别
	DateTime string `json:"date_time"` // 日期,时间
	Content  string `json:"content"`   // 日志的内容
}

func NewOneLine

func NewOneLine(level, datetime, content string) *OneLine

Jump to

Keyboard shortcuts

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