Documentation ¶
Overview ¶
TODO(): This code needs to be moved to some other place in pallium. This is
not rest specific code.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ForwardStreamToken ¶
type ForwardStreamToken struct {
TopologicalOrder uint64
}
func NewForwardStreamToken ¶
func NewForwardStreamToken(o uint64) ForwardStreamToken
func (ForwardStreamToken) String ¶
func (t ForwardStreamToken) String() string
type InitialSync ¶
type InitialSync struct { End string `json:"end"` Presence []InitialSyncEvent `json:"presence,omitempty"` Rooms []InitialSyncRoomData `json:"rooms,omitempty"` }
type InitialSyncEvent ¶
type InitialSyncRoomData ¶
type InitialSyncRoomData struct { Membership string `json:"membership"` RoomID string `json:"room_id"` Messages *PaginationChunk `json:"messages,omitempty"` State []Event `json:"state"` }
type PaginationChunk ¶
type PaginationStreamToken ¶
type PaginationStreamToken struct { ForwardStreamToken StreamingOrder uint64 }
func NewPaginationStreamToken ¶
func NewPaginationStreamToken(to, so uint64) PaginationStreamToken
func (PaginationStreamToken) String ¶
func (t PaginationStreamToken) String() string
type StreamToken ¶
type StreamToken interface {
String() string
}
func ParseStreamToken ¶
func ParseStreamToken(s string) (StreamToken, error)
Click to show internal directories.
Click to hide internal directories.