storage

package
v0.0.0-...-ccca5b4 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	PublicKey string `json:"publicKey"`
	AllowedIP string `json:"allowedIP"`
}

type Storage

type Storage interface {
	Add(id, publicKey string) error
	Delete(id, publicKey string) error
	List(id string) ([]Entry, error)
	Save() error
	Close() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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