invites

package
v0.0.0-...-f758046 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2019 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupRouting

func SetupRouting(router *mux.Router, cfg *config.Config, db *database.Database)

func SignED25519

func SignED25519(r *http.Request, cfg *config.Config, db *database.Database) util.JSONResponse

func StoreInvite

func StoreInvite(r *http.Request, cfg *config.Config, db *database.Database) util.JSONResponse

Types

type PublicKey

type PublicKey struct {
	PublicKey      string `json:"public_key"`
	KeyValidityURL string `json:"key_validity_url"`
}

type SignED25519Req

type SignED25519Req struct {
	MXID       string                         `json:"mxid"`
	Token      string                         `json:"token"`
	PrivateKey gomatrixserverlib.Base64String `json:"private_key"`
}

type SignED25519Resp

type SignED25519Resp struct {
	MXID       string      `json:"mxid"`
	Sender     string      `json:"sender"`
	Token      string      `json:"token"`
	Signatures interface{} `json:"signatures,omitempty"`
}

type StoreInviteReq

type StoreInviteReq struct {
	types.ThreepidInvite
	RoomAlias         string `json:"room_alias"`
	RoomAvatarURL     string `json:"room_avatar_url"`
	RoomJoinRules     string `json:"room_join_rules"`
	RoomName          string `json:"room_name"`
	SenderDisplayName string `json:"sender_display_name"`
	SenderAvatarURL   string `json:"sender_avatar_url"`
	PrivKeyBase64     string
	BaseURL           string
}

type StoreInviteResp

type StoreInviteResp struct {
	Token       string      `json:"token"`
	PublicKey   string      `json:"public_key"`
	PublicKeys  []PublicKey `json:"public_keys"`
	DisplayName string      `json:"display_name"`
}

Jump to

Keyboard shortcuts

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