logbuilder

package
v1.5.18 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 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(ILogType) string

	WithSize(int) ILogBuilder
	WithProof(uint64) ILogBuilder
	WithHash([]byte) ILogBuilder
	WithConn(conn.IConn) ILogBuilder
	WithPubKey(asymmetric.IPubKey) ILogBuilder
}

func NewLogBuilder

func NewLogBuilder(pService string) ILogBuilder

type ILogType

type ILogType string
const (
	// Base
	CLogBaseBroadcast       ILogType = "BRDCS"
	CLogBaseMessageType     ILogType = "MTYPE"
	CLogBaseEnqueueRequest  ILogType = "ENQRQ"
	CLogBaseEnqueueResponse ILogType = "ENQRS"
	CLogBaseGetResponse     ILogType = "GETRS"

	// INFO
	CLogInfoExist           ILogType = "EXIST"
	CLogInfoUndecryptable   ILogType = "UNDEC"
	CLogInfoWithoutResponse ILogType = "WTHRS"

	// WARN
	CLogWarnMessageNull       ILogType = "MNULL"
	CLogWarnNotFriend         ILogType = "NTFRN"
	CLogWarnNotConnection     ILogType = "NTCON"
	CLogWarnUnknownRoute      ILogType = "UNKRT"
	CLogWarnIncorrectResponse ILogType = "ICRSP"

	// ERRO
	CLogErroDatabaseGet    ILogType = "DBGET"
	CLogErroDatabaseSet    ILogType = "DBSET"
	CLogErroEncryptPayload ILogType = "ENCPL"
)

Jump to

Keyboard shortcuts

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