Documentation ¶
Index ¶
- type Client
- func (d *Client) ActivateRegistrationData(signatureData string) error
- func (d *Client) AddKeycode(keycode string) error
- func (d *Client) Close() error
- func (d *Client) CreateEvents(events []*datahubv1alpha1_event.Event) error
- func (d *Client) DeleteKeycode(keycode string) error
- func (d *Client) GenerateRegistrationData() (string, error)
- func (d *Client) GetKeycodeDetail(keycode string) (keycodes.Keycode, error)
- func (d *Client) ListKeycodes() ([]*keycodes.Keycode, error)
- func (d *Client) Ping() error
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client wraps datahub client
func NewDatahubClient ¶
NewDatahubClient creates Datahub instance base on config
func (*Client) ActivateRegistrationData ¶
ActivateRegistrationData activates signature data to Alameda-Datahub
func (*Client) AddKeycode ¶
AddKeycode adds keycode to Alameda-Datahub
func (*Client) CreateEvents ¶
func (d *Client) CreateEvents(events []*datahubv1alpha1_event.Event) error
CreateEvents creates events to Alameda-Datahub
func (*Client) DeleteKeycode ¶
DeleteKeycode delete keycode from Alameda-Datahub
func (*Client) GenerateRegistrationData ¶
GenerateRegistrationData generates registration data from Alameda-Datahub
func (*Client) GetKeycodeDetail ¶
GetKeycodeDetail get keycode detail from Alameda-Datahub
func (*Client) ListKeycodes ¶
ListKeycodes lists keycode from Alameda-Datahub
Click to show internal directories.
Click to hide internal directories.