state

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2017 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MsgState

type MsgState struct {
	Msg   message.Msg
	Extra data.Data
}

MsgState encapsulates a message state to be stored in the SessionStore for graceful recovery

type SessionStore

type SessionStore interface {
	Set(path string, state *MsgState) error
	Get(path string) (*MsgState, error)
}

SessionStore describes the interface for a store for transporter MsgStates to be used graceful recovery

func NewFilestore

func NewFilestore(key, filename string) SessionStore

NewFilestore initializes a new SessionStore backed by a file TODO: fix race bug

Jump to

Keyboard shortcuts

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