memstore

package
v0.0.0-...-cfba5c7 Latest Latest
Warning

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

Go to latest
Published: May 2, 2018 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMemoryStorage

func CreateMemoryStorage(minLatencyMs, maxLatencyMs int) storage.Storage

CreateMemoryStorage creates a new storage backed by in-memory storage

func NewMemoryApplicationStorage

func NewMemoryApplicationStorage(deviceStorage storage.DeviceStorage) storage.ApplicationStorage

NewMemoryApplicationStorage returns a new instance of MemoryApplicationStorage

func NewMemoryDataStorage

func NewMemoryDataStorage(devStorage storage.DeviceStorage, minLatencyMs, maxLatencyMs int) storage.DataStorage

NewMemoryDataStorage makes a new MemoryDataStorage instance

func NewMemoryDeviceStorage

func NewMemoryDeviceStorage(minLatencyMs, maxLatencyMs int) storage.DeviceStorage

NewMemoryDeviceStorage creates a new MemoryDeviceStorage instance

func NewMemoryGatewayStorage

func NewMemoryGatewayStorage() storage.GatewayStorage

NewMemoryGatewayStorage returns a memory-backed gateway storage

func NewMemoryKeySequenceStorage

func NewMemoryKeySequenceStorage(minLatencyMs, maxLatencyMs int) storage.KeySequenceStorage

NewMemoryKeySequenceStorage returns a memory-backed KeySequenceStorage.

func NewMemoryOutput

func NewMemoryOutput() storage.AppOutputStorage

NewMemoryOutput creates a new memory output

func NewMemoryTokenStorage

func NewMemoryTokenStorage() storage.TokenStorage

NewMemoryTokenStorage creates a new storage.TokenStorage implementation that stores everything in memory.

func NewMemoryUserManagement

func NewMemoryUserManagement() storage.UserManagement

NewMemoryUserManagement returns a memory-backed UserManagement type

Types

type MemoryOutput

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

MemoryOutput is a memory-backed output storage

func (*MemoryOutput) Delete

func (m *MemoryOutput) Delete(output model.AppOutput) error

Delete removes the output. Outputs are also removed automatically when an application is removed

func (*MemoryOutput) GetByApplication

func (m *MemoryOutput) GetByApplication(appEUI protocol.EUI) (<-chan model.AppOutput, error)

GetByApplication returns outputs for a single application

func (*MemoryOutput) ListAll

func (m *MemoryOutput) ListAll() (<-chan model.AppOutput, error)

ListAll lists all of the outputs

func (*MemoryOutput) Put

func (m *MemoryOutput) Put(newOutput model.AppOutput) error

Put stores a new output

func (*MemoryOutput) Update

func (m *MemoryOutput) Update(output model.AppOutput) error

Update updates the configuration for the output.

Jump to

Keyboard shortcuts

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