inthttp

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EDUServerInputTypingEventPath       = "/eduserver/input"
	EDUServerInputSendToDeviceEventPath = "/eduserver/sendToDevice"
	EDUServerInputReceiptEventPath      = "/eduserver/receipt"
)

HTTP paths for the internal HTTP APIs

Variables

This section is empty.

Functions

func AddRoutes

func AddRoutes(t api.EDUServerInputAPI, internalAPIMux *mux.Router)

AddRoutes adds the EDUServerInputAPI handlers to the http.ServeMux.

func NewEDUServerClient

func NewEDUServerClient(eduServerURL string, httpClient *http.Client) (api.EDUServerInputAPI, error)

NewEDUServerClient creates a EDUServerInputAPI implemented by talking to a HTTP POST API.

Types

This section is empty.

Jump to

Keyboard shortcuts

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