Documentation ¶
Index ¶
- type AuthResult
- type Body
- type Category
- type ConnectedDevice
- type ConnectedUser
- type DeviceID
- type Dismissal
- type DurationMsec
- type DurationSec
- type InBandMessage
- type Item
- type ItemAndMetadata
- type Message
- type Metadata
- type MsgID
- type MsgRange
- type OutOfBandMessage
- type Reminder
- type ReminderID
- type ReminderSet
- type SessionID
- type SessionToken
- type State
- type StateSyncMessage
- type StateUpdateMessage
- type SyncResult
- type System
- type Time
- type TimeOrOffset
- type UID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthResult ¶
type AuthResult struct { Uid UID `codec:"uid" json:"uid"` Username string `codec:"username" json:"username"` Sid SessionID `codec:"sid" json:"sid"` IsAdmin bool `codec:"isAdmin" json:"isAdmin"` }
func (AuthResult) DeepCopy ¶
func (o AuthResult) DeepCopy() AuthResult
type ConnectedDevice ¶
type ConnectedDevice struct { DeviceID DeviceID `codec:"deviceID" json:"deviceID"` DeviceType string `codec:"deviceType" json:"deviceType"` DevicePlatform string `codec:"devicePlatform" json:"devicePlatform"` UserAgent string `codec:"userAgent" json:"userAgent"` }
DescribeConnectedUsers will take a list of users, and return the list of users which are connected to any Gregor in the cluster, and what devices (and device type) those users are connected with.
func (ConnectedDevice) DeepCopy ¶
func (o ConnectedDevice) DeepCopy() ConnectedDevice
type ConnectedUser ¶
type ConnectedUser struct { Uid UID `codec:"uid" json:"uid"` Devices []ConnectedDevice `codec:"devices" json:"devices"` }
func (ConnectedUser) DeepCopy ¶
func (o ConnectedUser) DeepCopy() ConnectedUser
type Dismissal ¶
type DurationMsec ¶
type DurationMsec int64
func (DurationMsec) DeepCopy ¶
func (o DurationMsec) DeepCopy() DurationMsec
type DurationSec ¶
type DurationSec int64
func (DurationSec) DeepCopy ¶
func (o DurationSec) DeepCopy() DurationSec
type InBandMessage ¶
type InBandMessage struct { StateUpdate_ *StateUpdateMessage `codec:"stateUpdate,omitempty" json:"stateUpdate,omitempty"` StateSync_ *StateSyncMessage `codec:"stateSync,omitempty" json:"stateSync,omitempty"` }
func (InBandMessage) DeepCopy ¶
func (o InBandMessage) DeepCopy() InBandMessage
type Item ¶
type Item struct { Category_ Category `codec:"category" json:"category"` Dtime_ TimeOrOffset `codec:"dtime" json:"dtime"` RemindTimes_ []TimeOrOffset `codec:"remindTimes" json:"remindTimes"` Body_ Body `codec:"body" json:"body"` }
type ItemAndMetadata ¶
type ItemAndMetadata struct { Md_ *Metadata `codec:"md,omitempty" json:"md,omitempty"` Item_ *Item `codec:"item,omitempty" json:"item,omitempty"` }
func (ItemAndMetadata) DeepCopy ¶
func (o ItemAndMetadata) DeepCopy() ItemAndMetadata
type Message ¶
type Message struct { Oobm_ *OutOfBandMessage `codec:"oobm,omitempty" json:"oobm,omitempty"` Ibm_ *InBandMessage `codec:"ibm,omitempty" json:"ibm,omitempty"` }
type Metadata ¶
type MsgRange ¶
type MsgRange struct { EndTime_ TimeOrOffset `codec:"endTime" json:"endTime"` Category_ Category `codec:"category" json:"category"` SkipMsgIDs_ []MsgID `codec:"skipMsgIDs" json:"skipMsgIDs"` }
type OutOfBandMessage ¶
type OutOfBandMessage struct { Uid_ UID `codec:"uid" json:"uid"` System_ System `codec:"system" json:"system"` Body_ Body `codec:"body" json:"body"` }
func (OutOfBandMessage) DeepCopy ¶
func (o OutOfBandMessage) DeepCopy() OutOfBandMessage
type Reminder ¶
type Reminder struct { Item_ ItemAndMetadata `codec:"item" json:"item"` Seqno_ int `codec:"seqno" json:"seqno"` RemindTime_ Time `codec:"remindTime" json:"remindTime"` }
type ReminderID ¶
type ReminderID struct { Uid_ UID `codec:"uid" json:"uid"` MsgID_ MsgID `codec:"msgID" json:"msgID"` Seqno_ int `codec:"seqno" json:"seqno"` }
func (ReminderID) DeepCopy ¶
func (o ReminderID) DeepCopy() ReminderID
type ReminderSet ¶
type ReminderSet struct { Reminders_ []Reminder `codec:"reminders" json:"reminders"` MoreRemindersReady_ bool `codec:"moreRemindersReady" json:"moreRemindersReady"` }
func (ReminderSet) DeepCopy ¶
func (o ReminderSet) DeepCopy() ReminderSet
type SessionToken ¶
type SessionToken string
func (SessionToken) DeepCopy ¶
func (o SessionToken) DeepCopy() SessionToken
type State ¶
type State struct {
Items_ []ItemAndMetadata `codec:"items" json:"items"`
}
type StateSyncMessage ¶
type StateSyncMessage struct {
Md_ Metadata `codec:"md" json:"md"`
}
func (StateSyncMessage) DeepCopy ¶
func (o StateSyncMessage) DeepCopy() StateSyncMessage
type StateUpdateMessage ¶
type StateUpdateMessage struct { Md_ Metadata `codec:"md" json:"md"` Creation_ *Item `codec:"creation,omitempty" json:"creation,omitempty"` Dismissal_ *Dismissal `codec:"dismissal,omitempty" json:"dismissal,omitempty"` }
func (StateUpdateMessage) DeepCopy ¶
func (o StateUpdateMessage) DeepCopy() StateUpdateMessage
type SyncResult ¶
type SyncResult struct { Msgs []InBandMessage `codec:"msgs" json:"msgs"` Hash []byte `codec:"hash" json:"hash"` }
func (SyncResult) DeepCopy ¶
func (o SyncResult) DeepCopy() SyncResult
type TimeOrOffset ¶
type TimeOrOffset struct { Time_ Time `codec:"time" json:"time"` Offset_ DurationMsec `codec:"offset" json:"offset"` }
func (TimeOrOffset) DeepCopy ¶
func (o TimeOrOffset) DeepCopy() TimeOrOffset
Click to show internal directories.
Click to hide internal directories.