zutils

package
v1.1.18 Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IDWorker

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

func NewIDWorker

func NewIDWorker(workerId int64) (*IDWorker, error)

func (*IDWorker) NextID

func (w *IDWorker) NextID() (int64, error)

type Writer added in v1.1.18

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

func New added in v1.1.18

func New(path string) *Writer

func (*Writer) Close added in v1.1.18

func (w *Writer) Close() error

func (*Writer) SetCons added in v1.1.18

func (w *Writer) SetCons(b bool)

SetCons 同时输出控制台

func (*Writer) SetMaxAge added in v1.1.18

func (w *Writer) SetMaxAge(ma int)

SetMaxAge 最大保留天数

func (*Writer) SetMaxSize added in v1.1.18

func (w *Writer) SetMaxSize(ms int64)

SetMaxSize 单个日志最大容量

func (*Writer) Write added in v1.1.18

func (w *Writer) Write(p []byte) (n int, err error)

Directories

Path Synopsis
commandline

Jump to

Keyboard shortcuts

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