policies

package
v0.0.0-...-5dcd16a Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2021 License: MIT Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NoDeflate

func NoDeflate(d DEFLATE, data []byte) []byte

func STDDeflate

func STDDeflate(d DEFLATE, data []byte) []byte

Types

type DEFLATE

type DEFLATE struct{}

type DefaultPostingPolicy

type DefaultPostingPolicy struct{}

func (DefaultPostingPolicy) Decide

func (d DefaultPostingPolicy) Decide(groups [][]byte, lines, length int64) PostingDecision

type DeflateFunction

type DeflateFunction func(d DEFLATE, data []byte) []byte

func NewDeflateFunction

func NewDeflateFunction(level int) DeflateFunction

func (DeflateFunction) Def

type PostingDecision

type PostingDecision struct {
	ExpireAt       time.Time
	CompressXover  DeflateFunction
	CompressHeader DeflateFunction
	CompressBody   DeflateFunction
}

type PostingPolicy

type PostingPolicy interface {
	Decide(groups [][]byte, lines, length int64) PostingDecision
}

func Def

Jump to

Keyboard shortcuts

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