Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct { Owner string `json:"owner"` Name string `json:"name"` PublicKey string `json:"publicKey"` Address string `json:"address"` CreatedAt time.Time `json:"createdAt"` // metadata about the device during the current session LastHandshakeTime *time.Time `json:"lastHandshakeTime"` ReceiveBytes int64 `json:"receivedBytes"` TransmitBytes int64 `json:"transmitBytes"` Endpoint string `json:"endpoint"` }
type DiskStorage ¶
type DiskStorage struct {
// contains filtered or unexported fields
}
implements Storage interface
func NewDiskStorage ¶
func NewDiskStorage(directory string) *DiskStorage
func (*DiskStorage) Delete ¶
func (s *DiskStorage) Delete(key string) error
type InMemoryStorage ¶
type InMemoryStorage struct{}
implements Storage interface
func NewMemoryStorage ¶
func NewMemoryStorage() *InMemoryStorage
func (*InMemoryStorage) Delete ¶
func (s *InMemoryStorage) Delete(key string) error
Click to show internal directories.
Click to hide internal directories.