articlestore

package
v0.0.0-...-060dca9 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var VEFail error = EFail{}

If you don't have any other error, use this.

Functions

func PackMessage

func PackMessage(over, head, body []byte) (b bufferex.Binary, e error)

Encode a message

func UnpackMessage

func UnpackMessage(msg []byte) (over, head, body []byte)

Decode a message

Types

type EFail

type EFail struct{}

func (EFail) Error

func (e EFail) Error() string

type Storage

type Storage interface {
	StorageR
	StorageW
}

type StorageR

type StorageR interface {
	StoreReadMessage(id []byte, over, head, body bool) (bufferex.Binary, error)
}

type StorageW

type StorageW interface {
	StoreWriteMessage(id, msg []byte, expire uint64) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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