proto

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OK  = "OK"
	ERR = "ERR"
)

Variables

This section is empty.

Functions

func RFC1738Unescape

func RFC1738Unescape(s []byte) []byte

RFC1738Unescape is a port of Squid rfc1738_unescape function. It does unescaping in-place and returns slice pointing to boundaries of unescaped bytes.

Types

type ElasticLineScanner

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

func NewElasticLineScanner

func NewElasticLineScanner(reader ReadSlicer, delim byte) *ElasticLineScanner

func (*ElasticLineScanner) Bytes

func (els *ElasticLineScanner) Bytes() []byte

func (*ElasticLineScanner) Err

func (els *ElasticLineScanner) Err() error

func (*ElasticLineScanner) Scan

func (els *ElasticLineScanner) Scan() bool

type ReadSlicer added in v1.1.0

type ReadSlicer interface {
	ReadSlice(byte) ([]byte, error)
}

type ResponseEmitter added in v1.1.0

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

func NewResponseEmitter added in v1.1.0

func NewResponseEmitter(writer io.Writer) *ResponseEmitter

func (*ResponseEmitter) EmitERR added in v1.1.0

func (e *ResponseEmitter) EmitERR(channelID []byte) error

func (*ResponseEmitter) EmitOK added in v1.1.0

func (e *ResponseEmitter) EmitOK(channelID []byte) error

Jump to

Keyboard shortcuts

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