logbuilder

package
v1.5.15 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ILogBuilder

type ILogBuilder interface {
	Get(pType ILogType) string

	WithSize(pSize int) ILogBuilder
	WithProof(pProof uint64) ILogBuilder
	WithHash(pMsgHash []byte) ILogBuilder
	WithConn(pConn conn.IConn) ILogBuilder
	WithPubKey(pPubKey asymmetric.IPubKey) ILogBuilder
}

func NewLogBuilder

func NewLogBuilder(pService string) ILogBuilder

type ILogType

type ILogType string
const (
	// Base
	CLogBaseBroadcast       ILogType = "BRDCS"
	CLogBaseEnqueueResponse ILogType = "ENRSP"

	// INFO
	CLogInfoExist           ILogType = "EXIST"
	CLogInfoUndecryptable   ILogType = "UNDEC"
	CLogInfoAction          ILogType = "ACTON"
	CLogInfoWithoutResponse ILogType = "WHRSP"

	// WARN
	CLogWarnMessageNull       ILogType = "MNULL"
	CLogWarnNotFriend         ILogType = "NTFRN"
	CLogWarnUnknownRoute      ILogType = "UNKRT"
	CLogWarnOldResponse       ILogType = "LDRSP"
	CLogWarnIncorrectResponse ILogType = "ICRSP"

	// ERRO
	CLogErroMessageType ILogType = "MTYPE"
	CLogErroDatabaseGet ILogType = "DBGET"
	CLogErroDatabaseSet ILogType = "DBSET"
)

Jump to

Keyboard shortcuts

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