inthttp

package
v0.0.0-...-2154053 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppServiceRoomAliasExistsPath = "/appservice/RoomAliasExists"
	AppServiceUserIDExistsPath    = "/appservice/UserIDExists"
)

HTTP paths for the internal HTTP APIs

Variables

This section is empty.

Functions

func AddRoutes

func AddRoutes(a api.AppServiceInternalAPI, internalAPIMux *mux.Router)

AddRoutes adds the AppServiceQueryAPI handlers to the http.ServeMux.

func NewAppserviceClient

func NewAppserviceClient(
	appserviceURL string,
	httpClient *http.Client,
) (api.AppServiceInternalAPI, error)

NewAppserviceClient creates a AppServiceQueryAPI 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