snappygob

package module
v0.0.0-...-58fccd7 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2018 License: GPL-3.0 Imports: 2 Imported by: 0

README

This is a simple module that adds Snappy compression to gorilla/securecookie. This code is free software, licensed under the terms of the GPLv3+.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Encoder

type Encoder struct{}

Encoder implements the securecookie.Serializer interface. It wraps the GobEncoder implementation with snappy compression.

func (Encoder) Deserialize

func (e Encoder) Deserialize(src []byte, dst interface{}) error

Deserialize decodes a value using snappy + gob.

func (Encoder) Serialize

func (e Encoder) Serialize(src interface{}) ([]byte, error)

Serialize encodes a value using snappy + gob.

Jump to

Keyboard shortcuts

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