Documentation
¶
Overview ¶
Package compress contains the compress node: whole-message gzip, zlib, or raw flate compression and decompression using only the Go standard library.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Operation string `json:"operation"`
Algorithm string `json:"algorithm"`
Property string `json:"property"`
}
Config holds the compress node configuration.
type Node ¶
Node performs whole-message compression or decompression.
func NewNode ¶
func NewNode(node nodestore.NodeInterface, cfg *Config) *Node
NewNode creates a compress node.
func (*Node) Execute ¶
func (n *Node) Execute(ctx context.Context, in nodestore.MessageInterface) (nodestore.MessageInterface, error)
Execute transforms the configured property as one complete byte sequence.