sigbug

package
v0.0.0-...-78e7222 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2019 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DeviceIdentifier identifier.Type = "SigbugDeviceIdentifier"

Variables

This section is empty.

Functions

func IsValidIdentifier

func IsValidIdentifier(id identifier.Identifier) bool

Types

type Identifier

type Identifier struct {
	DeviceId string `json:"deviceId"`
}

func (Identifier) IsValid

func (i Identifier) IsValid() error

func (Identifier) ToFilter

func (i Identifier) ToFilter() bson.M

func (Identifier) Type

func (i Identifier) Type() identifier.Type

type Sigbug

type Sigbug struct {
	Id       string `json:"id" bson:"id"`
	DeviceId string `json:"deviceId" bson:"deviceId"`

	OwnerPartyType    party.Type    `json:"ownerPartyType" bson:"ownerPartyType"`
	OwnerId           id.Identifier `json:"ownerId" bson:"ownerId"`
	AssignedPartyType party.Type    `json:"assignedPartyType" bson:"assignedPartyType"`
	AssignedId        id.Identifier `json:"assignedId" bson:"assignedId"`

	LastMessage sigfoxBackendDataCallbackMessage.Message `json:"lastMessage" bson:"lastMessage"`
}

func (*Sigbug) SetId

func (s *Sigbug) SetId(id string)

Jump to

Keyboard shortcuts

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