model

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationInfo

type ApplicationInfo struct {
	Branch      string
	Revision    string
	Environment string
}

type Device

type Device struct {
	ID      DeviceID   `json:"id"`
	Type    DeviceType `json:"type"`
	Name    string     `json:"name"`
	Token   string     `json:"token"`
	Version string     `json:"version"`
}

type DeviceID

type DeviceID uint64

type DeviceType

type DeviceType uint64
const (
	DeviceUnknown DeviceType = iota
	DeviceChip
)

type ServiceError

type ServiceError struct {
	Message   string `json:"message,omitempty"`
	RequestID string `json:"request_id,omitempty"`

	Code int `json:"-"`
}

func (ServiceError) Error

func (err ServiceError) Error() string

Jump to

Keyboard shortcuts

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