circlog

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const CIRCULARLOG_INIT_SIZE int = 32 << 10

Variables

This section is empty.

Functions

This section is empty.

Types

type CircularLog

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

func MustNewCircularLog

func MustNewCircularLog(max int) *CircularLog

func NewCircularLog

func NewCircularLog(max int) (*CircularLog, error)

func (*CircularLog) Bytes

func (cl *CircularLog) Bytes() []byte

func (*CircularLog) Len

func (cl *CircularLog) Len() int

func (*CircularLog) Reset

func (cl *CircularLog) Reset()

func (*CircularLog) Size

func (cl *CircularLog) Size() int

func (*CircularLog) String

func (cl *CircularLog) String() string

func (*CircularLog) TotalWritten

func (cl *CircularLog) TotalWritten() int

func (*CircularLog) Write

func (cl *CircularLog) Write(data []byte) (int, error)

Jump to

Keyboard shortcuts

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