db

package
v0.0.0-...-44558b4 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalPSKStore

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

func NewDummyPSKStore

func NewDummyPSKStore() *LocalPSKStore

LocalDB is for using locally and testing

func NewLocalPSKStore

func NewLocalPSKStore(psks map[uint32][]byte) *LocalPSKStore

func NewSinglePSKStore

func NewSinglePSKStore(deploymentId string, salt string, psk string) *LocalPSKStore

This is another easy to use store that can be initialize dwith a single psk and a keyId, this is useful for creating client or supplying the psk from commandline. This shouldn't be used for production workload.

func (*LocalPSKStore) GetPSK

func (l *LocalPSKStore) GetPSK(key []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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