types

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: AGPL-3.0 Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const MSigningKeyUpdate = "m.signing_key_update" // TODO: move to gomatrixserverlib

Variables

This section is empty.

Functions

This section is empty.

Types

type FederationReceiptData

type FederationReceiptData struct {
	Data     ReceiptTS `json:"data"`
	EventIDs []string  `json:"event_ids"`
}

type FederationReceiptMRead

type FederationReceiptMRead struct {
	User map[string]FederationReceiptData `json:"m.read"`
}

type InboundPeek

type InboundPeek struct {
	PeekID            string
	RoomID            string
	ServerName        spec.ServerName
	CreationTimestamp int64
	RenewedTimestamp  int64
	RenewalInterval   int64
}

tracks peeks other servers are performing on us over federation

type JoinedHost

type JoinedHost struct {
	// The MemberEventID of a m.room.member join event.
	MemberEventID string
	// The domain part of the state key of the m.room.member join event
	ServerName spec.ServerName
}

A JoinedHost is a server that is joined to a matrix room.

type OutboundPeek

type OutboundPeek struct {
	PeekID            string
	RoomID            string
	ServerName        spec.ServerName
	CreationTimestamp int64
	RenewedTimestamp  int64
	RenewalInterval   int64
}

tracks peeks we're performing on another server over federation

type Presence

type Presence struct {
	Push []PresenceContent `json:"push"`
}

type PresenceContent

type PresenceContent struct {
	CurrentlyActive bool    `json:"currently_active,omitempty"`
	LastActiveAgo   int64   `json:"last_active_ago"`
	Presence        string  `json:"presence"`
	StatusMsg       *string `json:"status_msg,omitempty"`
	UserID          string  `json:"user_id"`
}

type ReceiptTS

type ReceiptTS struct {
	TS spec.Timestamp `json:"ts"`
}

type ServerNames

type ServerNames []spec.ServerName

func (ServerNames) Len

func (s ServerNames) Len() int

func (ServerNames) Less

func (s ServerNames) Less(i, j int) bool

func (ServerNames) Swap

func (s ServerNames) Swap(i, j int)

Jump to

Keyboard shortcuts

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