gregor1

package
v2.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

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 Body

type Body []byte

func (Body) DeepCopy

func (o Body) DeepCopy() Body

type Category

type Category string

func (Category) DeepCopy

func (o Category) DeepCopy() Category

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 DeviceID

type DeviceID []byte

func (DeviceID) DeepCopy

func (o DeviceID) DeepCopy() DeviceID

type Dismissal

type Dismissal struct {
	MsgIDs_ []MsgID    `codec:"msgIDs" json:"msgIDs"`
	Ranges_ []MsgRange `codec:"ranges" json:"ranges"`
}

func (Dismissal) DeepCopy

func (o Dismissal) DeepCopy() 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"`
}

func (Item) DeepCopy

func (o Item) DeepCopy() Item

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"`
}

func (Message) DeepCopy

func (o Message) DeepCopy() Message

type Metadata

type Metadata struct {
	Uid_           UID      `codec:"uid" json:"uid"`
	MsgID_         MsgID    `codec:"msgID" json:"msgID"`
	Ctime_         Time     `codec:"ctime" json:"ctime"`
	DeviceID_      DeviceID `codec:"deviceID" json:"deviceID"`
	InBandMsgType_ int      `codec:"inBandMsgType" json:"inBandMsgType"`
}

func (Metadata) DeepCopy

func (o Metadata) DeepCopy() Metadata

type MsgID

type MsgID []byte

func (MsgID) DeepCopy

func (o MsgID) DeepCopy() MsgID

type MsgRange

type MsgRange struct {
	EndTime_    TimeOrOffset `codec:"endTime" json:"endTime"`
	Category_   Category     `codec:"category" json:"category"`
	SkipMsgIDs_ []MsgID      `codec:"skipMsgIDs" json:"skipMsgIDs"`
}

func (MsgRange) DeepCopy

func (o MsgRange) DeepCopy() MsgRange

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"`
}

func (Reminder) DeepCopy

func (o Reminder) DeepCopy() Reminder

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 SessionID

type SessionID string

func (SessionID) DeepCopy

func (o SessionID) DeepCopy() SessionID

type SessionToken

type SessionToken string

func (SessionToken) DeepCopy

func (o SessionToken) DeepCopy() SessionToken

type State

type State struct {
	Items_ []ItemAndMetadata `codec:"items" json:"items"`
}

func (State) DeepCopy

func (o State) DeepCopy() State

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

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 System

type System string

func (System) DeepCopy

func (o System) DeepCopy() System

type Time

type Time int64

func (Time) DeepCopy

func (o Time) DeepCopy() Time

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

type UID

type UID []byte

func (UID) DeepCopy

func (o UID) DeepCopy() UID

Jump to

Keyboard shortcuts

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