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 (*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 ¶
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
Click to show internal directories.
Click to hide internal directories.