cachekits

package
v0.0.0-...-986a728 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// GzipMinSize gzip min size
	GzipMinSize = 1024
	// CacheFormatRaw raw
	CacheFormatRaw = 0
	// CacheFormatRawGzip raw gzip
	CacheFormatRawGzip = 1
	// CacheFormatJSON json
	CacheFormatJSON = 10
	// CacheFormatJSONGzip json gzip
	CacheFormatJSONGzip = 11
)

Variables

This section is empty.

Functions

func FromGzipJSON

func FromGzipJSON(data []byte, obj interface{}) (err error)

func ToGzipJSON

func ToGzipJSON(obj interface{}) (gziped bool, data []byte, err error)

ToGzipJSON convert model to gziped json

Types

type ModelCacheItem

type ModelCacheItem struct {
	Data []byte
	Flag uint32
}

Jump to

Keyboard shortcuts

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