logH

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 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 ConnSeqItem

type ConnSeqItem struct {
	Type   string  `json:"type"`
	Sender string  `json:"sender"`
	Client string  `json:"client"`
	Logs   []int64 `json:"logs"`
}

type Engine

type Engine interface {
	GetConnSeqIndex(cid string, seq int32) (*ConnSeqItem, error)
	AddConnSeqIndex(cid string, seq int32, item *ConnSeqItem) error
	GetGroupSession(cid string, seq int32) (session string, err error)
}

type LogHelper

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

用于建立通信层协议seq和业务协议logId的映射关系

func NewLogHelper

func NewLogHelper(e Engine) *LogHelper

func (*LogHelper) GetLogsIndex

func (lh *LogHelper) GetLogsIndex(key string, seq int32) (*ConnSeqItem, error)

func (*LogHelper) Save

func (lh *LogHelper) Save(key string, seq int32, item *ConnSeqItem) error

func (*LogHelper) SaveProxy

func (lh *LogHelper) SaveProxy(key string, seq int32, item *ConnSeqItem) error

Jump to

Keyboard shortcuts

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