inthttp

package
v0.0.0-...-811715e Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InputDeviceListUpdatePath         = "/keyserver/inputDeviceListUpdate"
	PerformUploadKeysPath             = "/keyserver/performUploadKeys"             //执行上传秘钥
	PerformClaimKeysPath              = "/keyserver/performClaimKeys"              //执行领取秘钥
	PerformDeleteKeysPath             = "/keyserver/performDeleteKeys"             //执行删除秘钥
	PerformUploadDeviceKeysPath       = "/keyserver/performUploadDeviceKeys"       //执行上传设备key
	PerformUploadDeviceSignaturesPath = "/keyserver/performUploadDeviceSignatures" //执行上传设备消息
	QueryKeysPath                     = "/keyserver/queryKeys"                     //查询key
	QueryKeyChangesPath               = "/keyserver/queryKeyChanges"               //查询key变化
	QueryOneTimeKeysPath              = "/keyserver/queryOneTimeKeys"              //查询一次性key
	QueryDeviceMessagesPath           = "/keyserver/queryDeviceMessages"           //查询设备消息
	QuerySignaturesPath               = "/keyserver/querySignatures"               //查询签名
	PerformMarkAsStalePath            = "/keyserver/markAsStale"                   //标记为过时
)

HTTP paths for the internal HTTP APIs

Variables

This section is empty.

Functions

func AddRoutes

func AddRoutes(internalAPIMux *mux.Router, s api.KeyInternalAPI)

func NewKeyServerClient

func NewKeyServerClient(
	apiURL string,
	httpClient *http.Client,
) (api.KeyInternalAPI, error)

NewKeyServerClient creates a KeyInternalAPI 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