database

package
v0.0.0-...-a52efcf Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRepository = errors.New("unable to handle request")
	ErrNotFound   = errors.New("device not found")
)

Common Errors

Functions

This section is empty.

Types

type Repository

type Repository interface {
	GetDevice(ctx context.Context, eventID, deviceID uuid.UUID) (*Session, error)
}

Repository describes the resource methods needed for this service.

type Session

type Session struct {
	EventCaption  string
	DeviceCaption string
	UnlockHash    []byte
}

Session holds session details

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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