store

package
v0.0.0-...-ee7ae68 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2017 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 RequestCallback

type RequestCallback func(string, []byte) []byte

type ResponseCallback

type ResponseCallback func([]byte)

type StoreAPI

type StoreAPI struct {
	// contains filtered or unexported fields
}

func NewStoreAPI

func NewStoreAPI(thePortal portal.Portal) *StoreAPI

func (*StoreAPI) Get

func (n *StoreAPI) Get(nameString string, timeout time.Duration) ([]byte, error)

func (*StoreAPI) GetAsync

func (n *StoreAPI) GetAsync(nameString string, callback ResponseCallback) error

func (*StoreAPI) Serve

func (n *StoreAPI) Serve(nameString string, callback RequestCallback)

type StoreAPIError

type StoreAPIError struct {
	// contains filtered or unexported fields
}

func (StoreAPIError) Error

func (e StoreAPIError) Error() string

Jump to

Keyboard shortcuts

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