r0

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: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadMedia

func DownloadMedia(r *http.Request, rctx rcontext.RequestContext, user _apimeta.UserInfo) interface{}

func Identicon

func Identicon(r *http.Request, rctx rcontext.RequestContext, user _apimeta.UserInfo) interface{}

func Logout

func Logout(r *http.Request, rctx rcontext.RequestContext, user _apimeta.UserInfo) interface{}

func LogoutAll

func LogoutAll(r *http.Request, rctx rcontext.RequestContext, user _apimeta.UserInfo) interface{}

func PreviewUrl

func PreviewUrl(r *http.Request, rctx rcontext.RequestContext, user _apimeta.UserInfo) interface{}

func PublicConfig

func PublicConfig(r *http.Request, rctx rcontext.RequestContext, user _apimeta.UserInfo) interface{}

func ThumbnailMedia

func ThumbnailMedia(r *http.Request, rctx rcontext.RequestContext, user _apimeta.UserInfo) interface{}

func UploadMediaAsync

func UploadMediaAsync(r *http.Request, rctx rcontext.RequestContext, user _apimeta.UserInfo) interface{}

func UploadMediaSync

func UploadMediaSync(r *http.Request, rctx rcontext.RequestContext, user _apimeta.UserInfo) interface{}

Types

type MatrixOpenGraph

type MatrixOpenGraph struct {
	Url         string `json:"og:url,omitempty"`
	SiteName    string `json:"og:site_name,omitempty"`
	Type        string `json:"og:type,omitempty"`
	Description string `json:"og:description,omitempty"`
	Title       string `json:"og:title,omitempty"`
	ImageMxc    string `json:"og:image,omitempty"`
	ImageType   string `json:"og:image:type,omitempty"`
	ImageSize   int64  `json:"matrix:image:size,omitempty"`
	ImageWidth  int    `json:"og:image:width,omitempty"`
	ImageHeight int    `json:"og:image:height,omitempty"`
}

type MediaUploadedResponse

type MediaUploadedResponse struct {
	ContentUri string `json:"content_uri,omitempty"`
}

type PublicConfigResponse

type PublicConfigResponse struct {
	UploadMaxSize   int64 `json:"m.upload.size,omitempty"`
	StorageMaxSize  int64 `json:"org.matrix.msc4034.storage.size,omitempty"`
	StorageMaxFiles int64 `json:"org.matrix.msc4034.storage.max_files,omitempty"`
}

Jump to

Keyboard shortcuts

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