state

package
v1.0.1-50 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2015 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LastState

type LastState struct {
	Timestamp int64       `json:"timestamp"`
	Payload   interface{} `json:"payload"`
}

struct date, payload

type NinjaStateManager

type NinjaStateManager struct {
	sync.Mutex

	Conn *ninja.Connection `inject:""`
	// contains filtered or unexported fields
}

func (*NinjaStateManager) Merge

func (sm *NinjaStateManager) Merge(thing *model.Thing)

func (*NinjaStateManager) PostConstruct

func (sm *NinjaStateManager) PostConstruct() error

func (*NinjaStateManager) Reset

func (sm *NinjaStateManager) Reset()

type StateManager

type StateManager interface {
	Merge(thing *model.Thing)
	Reset()
}

func NewStateManager

func NewStateManager() StateManager

Jump to

Keyboard shortcuts

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