Documentation
¶
Index ¶
Constants ¶
View Source
const ( UserIdPrefix = '@' RoomIdPrefix = '!' EventIdPrefix = '$' AliasPrefix = '#' )
Variables ¶
This section is empty.
Functions ¶
func ParseStreamToken ¶
func ParseStreamToken(str string) (StreamToken, Error)
Types ¶
type Alias ¶
type Alias Id
func DeriveAlias ¶
func ParseAlias ¶
func (Alias) MarshalJSON ¶
func (*Alias) UnmarshalJSON ¶
type EventId ¶
type EventId Id
func DeriveEventId ¶
func NewEventId ¶
func ParseEventId ¶
func (EventId) MarshalJSON ¶
func (*EventId) UnmarshalJSON ¶
type EventInfo ¶
func NewEventInfo ¶
type IdParseError ¶
type IdParseError string
func (IdParseError) Error ¶
func (e IdParseError) Error() string
type Ids ¶
type Ids []Id
func IdsFromAliases ¶
func IdsFromEventIds ¶
func IdsFromRoomIds ¶
func IdsFromUserIds ¶
type IndexedEventInfo ¶
func NewIndexedEventInfo ¶
func NewIndexedEventInfo(eventInfo EventInfo, index uint64) IndexedEventInfo
type RoomId ¶
type RoomId Id
func DeriveRoomId ¶
func ParseRoomId ¶
func (RoomId) MarshalJSON ¶
func (*RoomId) UnmarshalJSON ¶
type ShardTuple ¶
type StreamToken ¶
type StreamToken []ShardTuple
type Timestamp ¶
func (Timestamp) MarshalJSON ¶
type UserId ¶
type UserId Id
func DeriveUserId ¶
func ParseUserId ¶
func (UserId) MarshalJSON ¶
func (*UserId) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.