Versions in this module Expand all Collapse all v0 v0.1.0 Apr 19, 2019 Changes in this version + const DefaultReplicationPort + const HandlerLabel + const IdentityReplicationPush + const SIGNING_KEY_ALGORITHM + var ErrMissingThreepid = models.NewError(models.ErrMissingParam, "missing threepids in request body") + var ErrNoMatchingSignature = errors.New("no matching signatures found") + var ErrNoSignature = errors.New("no signatures found") + var ErrPublicKeyNotFound = models.NewError(models.ErrNotFound, "The public key was not found") + var ErrThreepidNotAList = models.NewError(models.ErrInvalidParam, "threepids must be a list") + func AddBinding(coreContext *core.Ctx) func(context.Context, string, string, string) (signedjson.Message, error) + func AssociationFromMap(m map[string]interface{}) (*models.Association, error) + func Bind(coreContext *core.Ctx, m Metric) echo.HandlerFunc + func BulkLookup(coreContext *core.Ctx, m Metric) echo.HandlerFunc + func CORS() middleware.CORSConfig + func EmailRequestCode(coreContext *core.Ctx, m Metric) echo.HandlerFunc + func EphemeralIsValid(coreContext *core.Ctx) echo.HandlerFunc + func GetEmailValidatedCode(coreContext *core.Ctx, m Metric) echo.HandlerFunc + func GetPublicKey(coreContext *core.Ctx) echo.HandlerFunc + func GetReplicationURLFromPeer(cfg *config.Matrix, peer *models.Peer) string + func GetValidated3PID(coreContext *core.Ctx, mx Metric) echo.HandlerFunc + func GetVerifyKeyFromPeer(p *models.Peer) (*signedjson.Key, error) + func InternalError(ctx echo.Context) error + func LocalPusher(coreContext *core.Ctx) func(context.Context) error + func Lookup(coreContext *core.Ctx, m Metric) echo.HandlerFunc + func PostEmailValidatedCode(coreContext *core.Ctx, m Metric) echo.HandlerFunc + func PublicKeyIsValid(coreContext *core.Ctx) echo.HandlerFunc + func PushToRemotePeer(cfg *config.Matrix, peer *models.Peer, replica config.HTTPClient, ...) error + func RemoveBinding(coreContext *core.Ctx) func(context.Context, *models.Association) error + func Replicate(coreContext *core.Ctx, m Metric) echo.HandlerFunc + func RequestEmailToken(ctx context.Context, coreContext *core.Ctx, req *TokenRequest) (int64, error) + func RequestError(lg logger.Logger, req *http.Request, err error) + func Service(opts *core.Ctx, m Metric) *echo.Echo + func SessionWithToken(ctx context.Context, coreContext *core.Ctx, sid int64, ...) error + func SignED25519(coreContext *core.Ctx, m Metric) echo.HandlerFunc + func Signer(coreContext *core.Ctx) func(*models.Association) (signedjson.Message, error) + func StoreInvite(coreContext *core.Ctx, m Metric) echo.HandlerFunc + func Unbind(coreContext *core.Ctx, fedClient config.HTTPClient) echo.HandlerFunc + func VerifySignedAssociation(ctx context.Context, key *signedjson.Key, serverName string, ...) error + func Version(ctx echo.Context) error + type Association struct + OriginID int64 + SignedAssociation signedjson.Message + type Key struct + ExpiredTS int64 + Key string + type Metric interface + CountError func(handler string) prometheus.Counter + type MetricApi struct + ErrorCount *prometheus.CounterVec + func NewMetric() MetricApi + func (m MetricApi) CountError(handler string) prometheus.Counter + type Payload struct + SignedAssociations []Association + type Peer interface + PushUpdates func(context.Context, []Association) error + type PushFunc func(context.Context, []Association) error + func PushLocal(coreContext *core.Ctx) PushFunc + func (pf PushFunc) PushUpdates(ctx context.Context, as []Association) error + type ServerKeys struct + Name string + OldVerifyKeys map[string]Key + Signatures map[string]map[string]string + ValidUntil int64 + VerifyKeys map[string]Key + type TokenRequest struct + ClientSecret string + Email string + IP net.IP + NextLink string + SendAttempt int64 + type UnbindOption struct + MatrixID string + Threepid *models.Association