route

package
v0.1.3-0...-617a0de Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectionRes

type ConnectionRes struct {
	// in: body
	Params route.RegisterRoute
}

ConnectionRes model

response of get connection action

swagger:response getConnectionResponse

type Operation

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

Operation contains basic common operations provided by controller REST API

func New

func New(ctx provider) (*Operation, error)

New returns new common operations rest client instance

func (*Operation) Connection

func (o *Operation) Connection(rw http.ResponseWriter, req *http.Request)

Connection swagger:route GET /route/connection route routerConnection

Retrieves the router connection id.

Responses:

default: genericError
200: getConnectionResponse

func (*Operation) GetRESTHandlers

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

GetRESTHandlers get all controller API handler available for this service

func (*Operation) Register

func (o *Operation) Register(rw http.ResponseWriter, req *http.Request)

Register swagger:route POST /route/register route registerRouteRequest

Registers the agent with the router.

Responses:

default: genericError
200: registerRouteRes

func (*Operation) Unregister

func (o *Operation) Unregister(rw http.ResponseWriter, req *http.Request)

Unregister swagger:route DELETE /route/unregister route unregisterRouter

Unregisters the agent with the router.

Responses:

default: genericError

Jump to

Keyboard shortcuts

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