mock

package
v4.2.716+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewKeycodeRepository

func NewKeycodeRepository() repository_keycode.Interface

NewKeycodeRepository creates keycode repository that storing keycode to Alameda-Datahub

Types

type KeycodeRepository

type KeycodeRepository struct {
}

KeycodeRepository wraps datahub client

func (*KeycodeRepository) DeleteKeycode

func (d *KeycodeRepository) DeleteKeycode(keycode string) error

DeleteKeycode deletes keycode from Alameda-Datahub

func (*KeycodeRepository) GetKeycodeDetail

func (d *KeycodeRepository) GetKeycodeDetail(code string) (repository_keycode.Detail, error)

GetKeycodeDetail gets Keycode details from Alameda-Datahub

func (*KeycodeRepository) GetRegistrationData

func (d *KeycodeRepository) GetRegistrationData() (string, error)

GetRegistrationData gets registration data from Alameda-Datahub

func (*KeycodeRepository) ListKeycodes

func (d *KeycodeRepository) ListKeycodes() ([]repository_keycode.Detail, error)

func (*KeycodeRepository) SendKeycode

func (d *KeycodeRepository) SendKeycode(keycode string) error

SendKeycode sends keycode to Alameda-Datahub

func (*KeycodeRepository) SendSignatureData

func (d *KeycodeRepository) SendSignatureData(keycode string) error

SendSignatureData sends signature data to Alameda-Datahub

Jump to

Keyboard shortcuts

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