Documentation ¶
Index ¶
- func BytesToULong(b []byte) uint64
- func DeserializeMessage(b []byte, m proto.Message) error
- func IntToBytes(num int) []byte
- func LongToBytes(num int64) []byte
- func Max(a int, b int) int
- func NewRaftLogger(output io.Writer) *zerolog.Logger
- func NewStdLoggerWithOutput(output io.Writer) *log2.Logger
- func SerializeMessage(m proto.Message) ([]byte, error)
- func ULongToBytes(num uint64) []byte
- type Logger
- type Map
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToULong ¶
func IntToBytes ¶
func LongToBytes ¶
func ULongToBytes ¶
Types ¶
type Logger ¶
func CreateLogger ¶
func CreateLogger() Logger
type Map ¶
type Map[K comparable, V any] struct { // contains filtered or unexported fields }
func NewMap ¶
func NewMap[K comparable, V any]() *Map[K, V]
Click to show internal directories.
Click to hide internal directories.