inthttp

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FederationSenderQueryJoinedHostServerNamesInRoomPath = "/federationsender/queryJoinedHostServerNamesInRoom"

	FederationSenderPerformDirectoryLookupRequestPath = "/federationsender/performDirectoryLookup"
	FederationSenderPerformJoinRequestPath            = "/federationsender/performJoinRequest"
	FederationSenderPerformLeaveRequestPath           = "/federationsender/performLeaveRequest"
	FederationSenderPerformInviteRequestPath          = "/federationsender/performInviteRequest"
	FederationSenderPerformServersAlivePath           = "/federationsender/performServersAlive"
	FederationSenderPerformBroadcastEDUPath           = "/federationsender/performBroadcastEDU"

	FederationSenderGetUserDevicesPath   = "/federationsender/client/getUserDevices"
	FederationSenderClaimKeysPath        = "/federationsender/client/claimKeys"
	FederationSenderQueryKeysPath        = "/federationsender/client/queryKeys"
	FederationSenderBackfillPath         = "/federationsender/client/backfill"
	FederationSenderLookupStatePath      = "/federationsender/client/lookupState"
	FederationSenderLookupStateIDsPath   = "/federationsender/client/lookupStateIDs"
	FederationSenderGetEventPath         = "/federationsender/client/getEvent"
	FederationSenderGetServerKeysPath    = "/federationsender/client/getServerKeys"
	FederationSenderLookupServerKeysPath = "/federationsender/client/lookupServerKeys"
)

HTTP paths for the internal HTTP API

Variables

This section is empty.

Functions

func AddRoutes

func AddRoutes(intAPI api.FederationSenderInternalAPI, internalAPIMux *mux.Router)

AddRoutes adds the FederationSenderInternalAPI handlers to the http.ServeMux. nolint:gocyclo

func NewFederationSenderClient

func NewFederationSenderClient(federationSenderURL string, httpClient *http.Client) (api.FederationSenderInternalAPI, error)

NewFederationSenderClient creates a FederationSenderInternalAPI implemented by talking to a HTTP POST API. If httpClient is nil an error is returned

Types

This section is empty.

Jump to

Keyboard shortcuts

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