Documentation ¶
Index ¶
- 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 DenDatabase
- type LocalMedia
Constants ¶
This section is empty.
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 DenDatabase ¶
type DenDatabase struct { homeserver_interop.ImportDb[LocalMedia] // contains filtered or unexported fields }
func OpenDatabase ¶
func OpenDatabase(connectionString string, origin string) (*DenDatabase, error)
func (*DenDatabase) GetAllMedia ¶
func (d *DenDatabase) GetAllMedia() ([]*LocalMedia, error)
type LocalMedia ¶
type LocalMedia struct { homeserver_interop.ImportDbMedia MediaId string MediaOrigin string ContentType string FileSizeBytes int64 CreationTs int64 UploadName string Base64Hash string UserId string }
Click to show internal directories.
Click to hide internal directories.