Documentation ¶
Index ¶
- Constants
- func DecodeAllSigningKeys(key io.Reader) ([]*homeserver_interop.SigningKey, error)
- func DecodeSigningKey(key io.Reader) (*homeserver_interop.SigningKey, error)
- func EncodeAllSigningKeys(keys []*homeserver_interop.SigningKey) ([]byte, error)
- func EncodeSigningKey(key *homeserver_interop.SigningKey) ([]byte, error)
- type LocalMedia
- type SynDatabase
- func (d *SynDatabase) GetAllMedia() ([]*LocalMedia, error)
- func (d *SynDatabase) HasMedia(mediaId string) (bool, error)
- func (d *SynDatabase) InsertMedia(mediaId string, contentType string, sizeBytes int64, createdTs int64, ...) error
- func (d *SynDatabase) InsertThumbnail(mediaId string, width int, height int, contentType string, method string, ...) error
- type SynUserStatRecord
- type SynUserStatsResponse
Constants ¶
View Source
const PrefixAdminApi = "/_synapse/admin"
Variables ¶
This section is empty.
Functions ¶
func DecodeAllSigningKeys ¶
func DecodeAllSigningKeys(key io.Reader) ([]*homeserver_interop.SigningKey, error)
func DecodeSigningKey ¶
func DecodeSigningKey(key io.Reader) (*homeserver_interop.SigningKey, error)
func EncodeAllSigningKeys ¶
func EncodeAllSigningKeys(keys []*homeserver_interop.SigningKey) ([]byte, error)
func EncodeSigningKey ¶
func EncodeSigningKey(key *homeserver_interop.SigningKey) ([]byte, error)
Types ¶
type LocalMedia ¶
type LocalMedia struct { homeserver_interop.ImportDbMedia MediaId string ContentType string SizeBytes int64 CreatedTs int64 UploadName string UserId string UrlCache string }
type SynDatabase ¶
type SynDatabase struct { homeserver_interop.ImportDb[LocalMedia] // contains filtered or unexported fields }
func OpenDatabase ¶
func OpenDatabase(connectionString string) (*SynDatabase, error)
func (*SynDatabase) GetAllMedia ¶
func (d *SynDatabase) GetAllMedia() ([]*LocalMedia, error)
func (*SynDatabase) InsertMedia ¶
func (*SynDatabase) InsertThumbnail ¶
type SynUserStatRecord ¶
type SynUserStatsResponse ¶
type SynUserStatsResponse struct { Users []*SynUserStatRecord `json:"users"` NextToken int64 `json:"next_token,omitempty"` Total int64 `json:"total"` }
Click to show internal directories.
Click to hide internal directories.