logger

package
v1.7.3 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package logger gives access to the parameters of anonymizing traffic for subsequent logging.

Index

Constants

View Source
const (
	CLogFinal = CLogErroDatabaseSet
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ILogBuilder added in v1.5.19

type ILogBuilder interface {
	ILogGetterFactory

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

func NewLogBuilder added in v1.5.19

func NewLogBuilder(pService string) ILogBuilder

type ILogGetter added in v1.5.19

type ILogGetter interface {
	GetService() string
	GetType() ILogType
	GetSize() uint64
	GetProof() uint64
	GetHash() []byte
	GetConn() conn.IConn
	GetPubKey() asymmetric.IPubKey
}

type ILogGetterFactory added in v1.5.21

type ILogGetterFactory interface {
	Get() ILogGetter
}

type ILogType

type ILogType uint8
const (
	// Base (can be in >1 more state)
	CLogBaseBroadcast ILogType = iota + 1
	CLogBaseEnqueueRequest
	CLogBaseEnqueueResponse
	CLogBaseGetResponse

	// INFO
	CLogInfoExist
	CLogInfoUndecryptable
	CLogInfoPassF2FOption
	CLogInfoWithoutResponse

	// WARN
	CLogWarnMessageType
	CLogWarnMessageNull
	CLogWarnPayloadNull
	CLogWarnNotFriend
	CLogWarnUnknownRoute
	CLogWarnIncorrectResponse

	// ERRO
	CLogErroDatabaseGet
	CLogErroDatabaseSet
)

Jump to

Keyboard shortcuts

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