zip

package
v0.0.31 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ZIP_MOD_DEFULAT_GZIP = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultZipMod

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

func NewDefaultZipMod

func NewDefaultZipMod() *DefaultZipMod

func (*DefaultZipMod) Compress

func (this *DefaultZipMod) Compress(in []byte) (output []byte, err error)

func (*DefaultZipMod) Decompress

func (this *DefaultZipMod) Decompress(in []byte) ([]byte, error)

func (*DefaultZipMod) ID

func (this *DefaultZipMod) ID() byte

type ZipMod

type ZipMod interface {
	ID() byte
	Compress(b []byte) ([]byte, error)
}

type ZipModLoader

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

func NewZipModLoader

func NewZipModLoader() *ZipModLoader

type ZipSendProxyThread

type ZipSendProxyThread struct {
	Log logger.Logger

	Queue *queue.RequestQueue
	// contains filtered or unexported fields
}

func GetInstance

func GetInstance(opts ...ZipSendProxyThreadOption) *ZipSendProxyThread

func (*ZipSendProxyThread) Add

func (this *ZipSendProxyThread) Add(p *pack.LogSinkPack)

func (*ZipSendProxyThread) Append

func (this *ZipSendProxyThread) Append(p *pack.LogSinkPack)

func (*ZipSendProxyThread) ApplyConfig

func (this *ZipSendProxyThread) ApplyConfig(conf config.Config)

implements config.ConfigObserver

func (*ZipSendProxyThread) SendDirect

func (this *ZipSendProxyThread) SendDirect(arr []*pack.LogSinkPack)

func (*ZipSendProxyThread) SetTcpClient

func (this *ZipSendProxyThread) SetTcpClient(c wnet.TcpClient)

set tcp channel to write

type ZipSendProxyThreadOption

type ZipSendProxyThreadOption interface {
	// contains filtered or unexported methods
}

func WithLogger

func WithLogger(logger logger.Logger) ZipSendProxyThreadOption

func WithTcpClient

func WithTcpClient(tcpClient wnet.TcpClient) ZipSendProxyThreadOption

func WithUseQueue

func WithUseQueue() ZipSendProxyThreadOption

Jump to

Keyboard shortcuts

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