Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
Context provides any state context for V1 routes. TODO: Add better support for a generic list of context
type Key ¶
type Key struct { }
Key is a simple JSON response object that carries a unpadded Base64 public key.
type Status ¶
type Status struct { }
Status is a simple JSON response object. TODO: Add process metrics to monitor the server
type V1 ¶
type V1 struct {
Context
}
V1 implementation for the routes
func (*V1) GetEmphemeralKeyValidity ¶
GetEmphemeralKeyValidity checks the validity of an emphemeral key.
GET /v1/pubkey/emphemeral/isvalid
Query Parameters:
References: https://matrix.org/docs/spec/identity_service/r0.2.1#get-matrix-identity-api-v1-pubkey-ephemeral-isvalid
func (*V1) GetKey ¶
GetKey is used to get the public key passed by :key
GET /v1/pubkey/:id
Parameters:
:id - Required. The ID of the key. This should take the form algorithm:identifier where algorithm identifies the signing algorithm, and the identifier is an opaque string.
Reference: https://matrix.org/docs/spec/identity_service/r0.2.1#id12
func (*V1) GetKeyValidity ¶
GetKeyValidity checks the validity of a public key.
GET /v1/pubkey/isvalid GET /v1/pubkey/emphemeral/isvalid
Query Parameters:
References: https://matrix.org/docs/spec/identity_service/r0.2.1#get-matrix-identity-api-v1-pubkey-isvalid
func (*V1) GetLookup ¶
GetLookup is a lookup request to find a particular ThreePID.
GET /v1/lookup
Reference: https://matrix.org/docs/spec/identity_service/r0.2.1#get-matrix-identity-api-v1-lookup
func (*V1) PostBulkLookup ¶
PostBulkLookup allows one to lookup many ThreePID's.
POST /v1/bulk_lookup
Post Parameters:
threepids - Required. An array of tuples comprised of 3PID type and the address to look up.
Reference: https://matrix.org/docs/spec/identity_service/r0.2.1#post-matrix-identity-api-v1-bulk-lookup