blindedrouting

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Overview

Package blindedrouting provides REST operations for blinded routing command.

Index

Constants

View Source
const (
	OperationID              = "/blindedrouting"
	SendDIDDocRequestPath    = OperationID + "/send-diddoc-request"
	SendRegisterRouteRequest = OperationID + "/send-router-registration"
)

constants for endpoints of blinded routing.

Variables

This section is empty.

Functions

This section is empty.

Types

type Operation

type Operation struct {
	// contains filtered or unexported fields
}

Operation is controller REST service controller for blinded routing.

func New

New returns new blinded routing rest instance.

func (*Operation) GetRESTHandlers

func (c *Operation) GetRESTHandlers() []rest.Handler

GetRESTHandlers get all controller API handler available for this protocol service.

func (*Operation) SendDIDDocRequest

func (c *Operation) SendDIDDocRequest(rw http.ResponseWriter, req *http.Request)

SendDIDDocRequest swagger:route POST /blindedrouting/send-diddoc-request blindedrouting didDocRequest

Sends DID doc request over a connection.

Responses:

default: genericError
200: didDocResponse

func (*Operation) SendRegisterRouteRequest

func (c *Operation) SendRegisterRouteRequest(rw http.ResponseWriter, req *http.Request)

SendRegisterRouteRequest Sends register route request as a response to reply from send DID doc request.

swagger:route POST /blindedrouting/send-router-registration blindedrouting registerRoute

Sends register route request as a response to reply from send DID doc request.

Responses:

default: genericError
200: registerRouteResponse

Jump to

Keyboard shortcuts

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