dendrite

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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
}

Jump to

Keyboard shortcuts

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