Documentation ¶
Index ¶
- Constants
- type ConnectToWS
- type ConnectToWSBadRequest
- type ConnectToWSHandler
- type ConnectToWSHandlerFunc
- type ConnectToWSNotFound
- type ConnectToWSOK
- type ConnectToWSParams
- type ConnectToWSURL
- func (o *ConnectToWSURL) Build() (*url.URL, error)
- func (o *ConnectToWSURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ConnectToWSURL) Must(u *url.URL, err error) *url.URL
- func (o *ConnectToWSURL) SetBasePath(bp string)
- func (o *ConnectToWSURL) String() string
- func (o *ConnectToWSURL) StringFull(scheme, host string) string
- func (o *ConnectToWSURL) WithBasePath(bp string) *ConnectToWSURL
Constants ¶
const ConnectToWSBadRequestCode int = 400
ConnectToWSBadRequestCode is the HTTP code returned for type ConnectToWSBadRequest
const ConnectToWSNotFoundCode int = 404
ConnectToWSNotFoundCode is the HTTP code returned for type ConnectToWSNotFound
const ConnectToWSOKCode int = 200
ConnectToWSOKCode is the HTTP code returned for type ConnectToWSOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectToWS ¶
type ConnectToWS struct { Context *middleware.Context Handler ConnectToWSHandler }
ConnectToWS swagger:route GET /v2/{network}/ws WS connectToWS
ConnectToWS connect to w s API
func NewConnectToWS ¶
func NewConnectToWS(ctx *middleware.Context, handler ConnectToWSHandler) *ConnectToWS
NewConnectToWS creates a new http.Handler for the connect to w s operation
func (*ConnectToWS) ServeHTTP ¶
func (o *ConnectToWS) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ConnectToWSBadRequest ¶
type ConnectToWSBadRequest struct { }
ConnectToWSBadRequest Bad request
swagger:response connectToWSBadRequest
func NewConnectToWSBadRequest ¶
func NewConnectToWSBadRequest() *ConnectToWSBadRequest
NewConnectToWSBadRequest creates ConnectToWSBadRequest with default headers values
func (*ConnectToWSBadRequest) WriteResponse ¶
func (o *ConnectToWSBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ConnectToWSHandler ¶
type ConnectToWSHandler interface {
Handle(ConnectToWSParams) middleware.Responder
}
ConnectToWSHandler interface for that can handle valid connect to w s params
type ConnectToWSHandlerFunc ¶
type ConnectToWSHandlerFunc func(ConnectToWSParams) middleware.Responder
ConnectToWSHandlerFunc turns a function with the right signature into a connect to w s handler
func (ConnectToWSHandlerFunc) Handle ¶
func (fn ConnectToWSHandlerFunc) Handle(params ConnectToWSParams) middleware.Responder
Handle executing the request and returning a response
type ConnectToWSNotFound ¶
type ConnectToWSNotFound struct { }
ConnectToWSNotFound Not Found
swagger:response connectToWSNotFound
func NewConnectToWSNotFound ¶
func NewConnectToWSNotFound() *ConnectToWSNotFound
NewConnectToWSNotFound creates ConnectToWSNotFound with default headers values
func (*ConnectToWSNotFound) WriteResponse ¶
func (o *ConnectToWSNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ConnectToWSOK ¶
type ConnectToWSOK struct { }
ConnectToWSOK connect to w s o k
swagger:response connectToWSOK
func NewConnectToWSOK ¶
func NewConnectToWSOK() *ConnectToWSOK
NewConnectToWSOK creates ConnectToWSOK with default headers values
func (*ConnectToWSOK) WriteResponse ¶
func (o *ConnectToWSOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ConnectToWSParams ¶
type ConnectToWSParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: path */ Network string }
ConnectToWSParams contains all the bound params for the connect to w s operation typically these are obtained from a http.Request
swagger:parameters connectToWS
func NewConnectToWSParams ¶
func NewConnectToWSParams() ConnectToWSParams
NewConnectToWSParams creates a new ConnectToWSParams object no default values defined in spec.
func (*ConnectToWSParams) BindRequest ¶
func (o *ConnectToWSParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewConnectToWSParams() beforehand.
type ConnectToWSURL ¶
type ConnectToWSURL struct { Network string // contains filtered or unexported fields }
ConnectToWSURL generates an URL for the connect to w s operation
func (*ConnectToWSURL) Build ¶
func (o *ConnectToWSURL) Build() (*url.URL, error)
Build a url path and query string
func (*ConnectToWSURL) BuildFull ¶
func (o *ConnectToWSURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ConnectToWSURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ConnectToWSURL) SetBasePath ¶
func (o *ConnectToWSURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*ConnectToWSURL) String ¶
func (o *ConnectToWSURL) String() string
String returns the string representation of the path with query string
func (*ConnectToWSURL) StringFull ¶
func (o *ConnectToWSURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ConnectToWSURL) WithBasePath ¶
func (o *ConnectToWSURL) WithBasePath(bp string) *ConnectToWSURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string