log

package
v0.0.0-...-0a3be77 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SDLogInstance = NewSDLog()

Functions

This section is empty.

Types

type Log

type Log struct {
	AccountID string `json:"accountID"`
	Level     string `json:"level"`
	Ts        int64  `json:"ts"`
	Msg       string `json:"msg"`
	RequestID string `json:"requestID"`
	Source    string `json:"source"`
}

Log ...

func (*Log) Size

func (l *Log) Size() int

type Monitor

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

func NewMonitor

func NewMonitor() *Monitor

func (*Monitor) Post

func (m *Monitor) Post(body []byte, path string) error

type SDLog

type SDLog struct {
	LogFlow   chan string
	TraceFlow chan []string
	// contains filtered or unexported fields
}

SDLog sd log instance

func NewSDLog

func NewSDLog() *SDLog

func (*SDLog) AddRequestId

func (s *SDLog) AddRequestId(requestId string)

func (*SDLog) Close

func (s *SDLog) Close()

func (*SDLog) DelRequestId

func (s *SDLog) DelRequestId(requestId string)

func (*SDLog) SetTaskId

func (s *SDLog) SetTaskId(taskId string)

type Tracker

type Tracker struct {
	Key       string      `json:"key"`
	AccountID string      `json:"accountID"`
	Ts        int64       `json:"ts"`
	Payload   interface{} `json:"payload"`
	Source    string      `json:"source"`
}

Tracker ...

Jump to

Keyboard shortcuts

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