Documentation
¶
Index ¶
- Constants
- type AddNew
- type AddNewCreated
- type AddNewDefault
- func (o *AddNewDefault) SetPayload(payload *models.Error)
- func (o *AddNewDefault) SetStatusCode(code int)
- func (o *AddNewDefault) WithPayload(payload *models.Error) *AddNewDefault
- func (o *AddNewDefault) WithStatusCode(code int) *AddNewDefault
- func (o *AddNewDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type AddNewHandler
- type AddNewHandlerFunc
- type AddNewParams
- type AddNewRule
- type AddNewRuleCreated
- type AddNewRuleDefault
- func (o *AddNewRuleDefault) SetPayload(payload *models.Error)
- func (o *AddNewRuleDefault) SetStatusCode(code int)
- func (o *AddNewRuleDefault) WithPayload(payload *models.Error) *AddNewRuleDefault
- func (o *AddNewRuleDefault) WithStatusCode(code int) *AddNewRuleDefault
- func (o *AddNewRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type AddNewRuleHandler
- type AddNewRuleHandlerFunc
- type AddNewRuleParams
- type AddNewRuleURL
- func (o *AddNewRuleURL) Build() (*url.URL, error)
- func (o *AddNewRuleURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *AddNewRuleURL) Must(u *url.URL, err error) *url.URL
- func (o *AddNewRuleURL) SetBasePath(bp string)
- func (o *AddNewRuleURL) String() string
- func (o *AddNewRuleURL) StringFull(scheme, host string) string
- func (o *AddNewRuleURL) WithBasePath(bp string) *AddNewRuleURL
- type AddNewURL
- func (o *AddNewURL) Build() (*url.URL, error)
- func (o *AddNewURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *AddNewURL) Must(u *url.URL, err error) *url.URL
- func (o *AddNewURL) SetBasePath(bp string)
- func (o *AddNewURL) String() string
- func (o *AddNewURL) StringFull(scheme, host string) string
- func (o *AddNewURL) WithBasePath(bp string) *AddNewURL
- type Delete
- type DeleteDefault
- func (o *DeleteDefault) SetPayload(payload *models.Error)
- func (o *DeleteDefault) SetStatusCode(code int)
- func (o *DeleteDefault) WithPayload(payload *models.Error) *DeleteDefault
- func (o *DeleteDefault) WithStatusCode(code int) *DeleteDefault
- func (o *DeleteDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteHandler
- type DeleteHandlerFunc
- type DeleteNoContent
- type DeleteParams
- type DeleteRule
- type DeleteRuleDefault
- func (o *DeleteRuleDefault) SetPayload(payload *models.Error)
- func (o *DeleteRuleDefault) SetStatusCode(code int)
- func (o *DeleteRuleDefault) WithPayload(payload *models.Error) *DeleteRuleDefault
- func (o *DeleteRuleDefault) WithStatusCode(code int) *DeleteRuleDefault
- func (o *DeleteRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteRuleHandler
- type DeleteRuleHandlerFunc
- type DeleteRuleNoContent
- type DeleteRuleParams
- type DeleteRuleURL
- func (o *DeleteRuleURL) Build() (*url.URL, error)
- func (o *DeleteRuleURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteRuleURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteRuleURL) SetBasePath(bp string)
- func (o *DeleteRuleURL) String() string
- func (o *DeleteRuleURL) StringFull(scheme, host string) string
- func (o *DeleteRuleURL) WithBasePath(bp string) *DeleteRuleURL
- type DeleteURL
- func (o *DeleteURL) Build() (*url.URL, error)
- func (o *DeleteURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteURL) SetBasePath(bp string)
- func (o *DeleteURL) String() string
- func (o *DeleteURL) StringFull(scheme, host string) string
- func (o *DeleteURL) WithBasePath(bp string) *DeleteURL
- type Update
- type UpdateDefault
- func (o *UpdateDefault) SetPayload(payload *models.Error)
- func (o *UpdateDefault) SetStatusCode(code int)
- func (o *UpdateDefault) WithPayload(payload *models.Error) *UpdateDefault
- func (o *UpdateDefault) WithStatusCode(code int) *UpdateDefault
- func (o *UpdateDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateHandler
- type UpdateHandlerFunc
- type UpdateOK
- type UpdateParams
- type UpdateRule
- type UpdateRuleDefault
- func (o *UpdateRuleDefault) SetPayload(payload *models.Error)
- func (o *UpdateRuleDefault) SetStatusCode(code int)
- func (o *UpdateRuleDefault) WithPayload(payload *models.Error) *UpdateRuleDefault
- func (o *UpdateRuleDefault) WithStatusCode(code int) *UpdateRuleDefault
- func (o *UpdateRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateRuleHandler
- type UpdateRuleHandlerFunc
- type UpdateRuleOK
- type UpdateRuleParams
- type UpdateRuleURL
- func (o *UpdateRuleURL) Build() (*url.URL, error)
- func (o *UpdateRuleURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdateRuleURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdateRuleURL) SetBasePath(bp string)
- func (o *UpdateRuleURL) String() string
- func (o *UpdateRuleURL) StringFull(scheme, host string) string
- func (o *UpdateRuleURL) WithBasePath(bp string) *UpdateRuleURL
- type UpdateURL
- func (o *UpdateURL) Build() (*url.URL, error)
- func (o *UpdateURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdateURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdateURL) SetBasePath(bp string)
- func (o *UpdateURL) String() string
- func (o *UpdateURL) StringFull(scheme, host string) string
- func (o *UpdateURL) WithBasePath(bp string) *UpdateURL
Constants ¶
const AddNewCreatedCode int = 201
AddNewCreatedCode is the HTTP code returned for type AddNewCreated
const AddNewRuleCreatedCode int = 201
AddNewRuleCreatedCode is the HTTP code returned for type AddNewRuleCreated
const DeleteNoContentCode int = 204
DeleteNoContentCode is the HTTP code returned for type DeleteNoContent
const DeleteRuleNoContentCode int = 204
DeleteRuleNoContentCode is the HTTP code returned for type DeleteRuleNoContent
const UpdateOKCode int = 200
UpdateOKCode is the HTTP code returned for type UpdateOK
const UpdateRuleOKCode int = 200
UpdateRuleOKCode is the HTTP code returned for type UpdateRuleOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddNew ¶
type AddNew struct { Context *middleware.Context Handler AddNewHandler }
AddNew swagger:route POST /rule/add/{musrvId} rule addNew
build rule and query structures
Endpoint used to generate rule and query structures
func NewAddNew ¶
func NewAddNew(ctx *middleware.Context, handler AddNewHandler) *AddNew
NewAddNew creates a new http.Handler for the add new operation
type AddNewCreated ¶
type AddNewCreated struct { }
AddNewCreated Created
swagger:response addNewCreated
func NewAddNewCreated ¶
func NewAddNewCreated() *AddNewCreated
NewAddNewCreated creates AddNewCreated with default headers values
func (*AddNewCreated) WriteResponse ¶
func (o *AddNewCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddNewDefault ¶
type AddNewDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
AddNewDefault error
swagger:response addNewDefault
func NewAddNewDefault ¶
func NewAddNewDefault(code int) *AddNewDefault
NewAddNewDefault creates AddNewDefault with default headers values
func (*AddNewDefault) SetPayload ¶
func (o *AddNewDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the add new default response
func (*AddNewDefault) SetStatusCode ¶
func (o *AddNewDefault) SetStatusCode(code int)
SetStatusCode sets the status to the add new default response
func (*AddNewDefault) WithPayload ¶
func (o *AddNewDefault) WithPayload(payload *models.Error) *AddNewDefault
WithPayload adds the payload to the add new default response
func (*AddNewDefault) WithStatusCode ¶
func (o *AddNewDefault) WithStatusCode(code int) *AddNewDefault
WithStatusCode adds the status to the add new default response
func (*AddNewDefault) WriteResponse ¶
func (o *AddNewDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddNewHandler ¶
type AddNewHandler interface {
Handle(AddNewParams) middleware.Responder
}
AddNewHandler interface for that can handle valid add new params
type AddNewHandlerFunc ¶
type AddNewHandlerFunc func(AddNewParams) middleware.Responder
AddNewHandlerFunc turns a function with the right signature into a add new handler
func (AddNewHandlerFunc) Handle ¶
func (fn AddNewHandlerFunc) Handle(params AddNewParams) middleware.Responder
Handle executing the request and returning a response
type AddNewParams ¶
type AddNewParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: path */ MusrvID int64 /* In: body */ Rule *models.Rule }
AddNewParams contains all the bound params for the add new operation typically these are obtained from a http.Request
swagger:parameters addNew
func NewAddNewParams ¶
func NewAddNewParams() AddNewParams
NewAddNewParams creates a new AddNewParams object no default values defined in spec.
func (*AddNewParams) BindRequest ¶
func (o *AddNewParams) 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 NewAddNewParams() beforehand.
type AddNewRule ¶
type AddNewRule struct { Context *middleware.Context Handler AddNewRuleHandler }
AddNewRule swagger:route POST /rule/add/{musrvId} rule addNewRule
build rule and query structures
Endpoint is used to generate microservice rule and query structures
func NewAddNewRule ¶
func NewAddNewRule(ctx *middleware.Context, handler AddNewRuleHandler) *AddNewRule
NewAddNewRule creates a new http.Handler for the add new rule operation
func (*AddNewRule) ServeHTTP ¶
func (o *AddNewRule) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type AddNewRuleCreated ¶
type AddNewRuleCreated struct { }
AddNewRuleCreated Created
swagger:response addNewRuleCreated
func NewAddNewRuleCreated ¶
func NewAddNewRuleCreated() *AddNewRuleCreated
NewAddNewRuleCreated creates AddNewRuleCreated with default headers values
func (*AddNewRuleCreated) WriteResponse ¶
func (o *AddNewRuleCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddNewRuleDefault ¶
type AddNewRuleDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
AddNewRuleDefault error
swagger:response addNewRuleDefault
func NewAddNewRuleDefault ¶
func NewAddNewRuleDefault(code int) *AddNewRuleDefault
NewAddNewRuleDefault creates AddNewRuleDefault with default headers values
func (*AddNewRuleDefault) SetPayload ¶
func (o *AddNewRuleDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the add new rule default response
func (*AddNewRuleDefault) SetStatusCode ¶
func (o *AddNewRuleDefault) SetStatusCode(code int)
SetStatusCode sets the status to the add new rule default response
func (*AddNewRuleDefault) WithPayload ¶
func (o *AddNewRuleDefault) WithPayload(payload *models.Error) *AddNewRuleDefault
WithPayload adds the payload to the add new rule default response
func (*AddNewRuleDefault) WithStatusCode ¶
func (o *AddNewRuleDefault) WithStatusCode(code int) *AddNewRuleDefault
WithStatusCode adds the status to the add new rule default response
func (*AddNewRuleDefault) WriteResponse ¶
func (o *AddNewRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddNewRuleHandler ¶
type AddNewRuleHandler interface {
Handle(AddNewRuleParams) middleware.Responder
}
AddNewRuleHandler interface for that can handle valid add new rule params
type AddNewRuleHandlerFunc ¶
type AddNewRuleHandlerFunc func(AddNewRuleParams) middleware.Responder
AddNewRuleHandlerFunc turns a function with the right signature into a add new rule handler
func (AddNewRuleHandlerFunc) Handle ¶
func (fn AddNewRuleHandlerFunc) Handle(params AddNewRuleParams) middleware.Responder
Handle executing the request and returning a response
type AddNewRuleParams ¶
type AddNewRuleParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: path */ MusrvID int64 /* In: body */ Rule *models.Rule }
AddNewRuleParams contains all the bound params for the add new rule operation typically these are obtained from a http.Request
swagger:parameters addNewRule
func NewAddNewRuleParams ¶
func NewAddNewRuleParams() AddNewRuleParams
NewAddNewRuleParams creates a new AddNewRuleParams object no default values defined in spec.
func (*AddNewRuleParams) BindRequest ¶
func (o *AddNewRuleParams) 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 NewAddNewRuleParams() beforehand.
type AddNewRuleURL ¶
type AddNewRuleURL struct { MusrvID int64 // contains filtered or unexported fields }
AddNewRuleURL generates an URL for the add new rule operation
func (*AddNewRuleURL) Build ¶
func (o *AddNewRuleURL) Build() (*url.URL, error)
Build a url path and query string
func (*AddNewRuleURL) BuildFull ¶
func (o *AddNewRuleURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*AddNewRuleURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*AddNewRuleURL) SetBasePath ¶
func (o *AddNewRuleURL) 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 (*AddNewRuleURL) String ¶
func (o *AddNewRuleURL) String() string
String returns the string representation of the path with query string
func (*AddNewRuleURL) StringFull ¶
func (o *AddNewRuleURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*AddNewRuleURL) WithBasePath ¶
func (o *AddNewRuleURL) WithBasePath(bp string) *AddNewRuleURL
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
type AddNewURL ¶
type AddNewURL struct { MusrvID int64 // contains filtered or unexported fields }
AddNewURL generates an URL for the add new operation
func (*AddNewURL) SetBasePath ¶
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 (*AddNewURL) StringFull ¶
StringFull returns the string representation of a complete url
func (*AddNewURL) WithBasePath ¶
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
type Delete ¶
type Delete struct { Context *middleware.Context Handler DeleteHandler }
Delete swagger:route DELETE /rules/{id} rule delete
Delete delete API
func NewDelete ¶
func NewDelete(ctx *middleware.Context, handler DeleteHandler) *Delete
NewDelete creates a new http.Handler for the delete operation
type DeleteDefault ¶
type DeleteDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
DeleteDefault error
swagger:response deleteDefault
func NewDeleteDefault ¶
func NewDeleteDefault(code int) *DeleteDefault
NewDeleteDefault creates DeleteDefault with default headers values
func (*DeleteDefault) SetPayload ¶
func (o *DeleteDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete default response
func (*DeleteDefault) SetStatusCode ¶
func (o *DeleteDefault) SetStatusCode(code int)
SetStatusCode sets the status to the delete default response
func (*DeleteDefault) WithPayload ¶
func (o *DeleteDefault) WithPayload(payload *models.Error) *DeleteDefault
WithPayload adds the payload to the delete default response
func (*DeleteDefault) WithStatusCode ¶
func (o *DeleteDefault) WithStatusCode(code int) *DeleteDefault
WithStatusCode adds the status to the delete default response
func (*DeleteDefault) WriteResponse ¶
func (o *DeleteDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteHandler ¶
type DeleteHandler interface {
Handle(DeleteParams) middleware.Responder
}
DeleteHandler interface for that can handle valid delete params
type DeleteHandlerFunc ¶
type DeleteHandlerFunc func(DeleteParams) middleware.Responder
DeleteHandlerFunc turns a function with the right signature into a delete handler
func (DeleteHandlerFunc) Handle ¶
func (fn DeleteHandlerFunc) Handle(params DeleteParams) middleware.Responder
Handle executing the request and returning a response
type DeleteNoContent ¶
type DeleteNoContent struct { }
DeleteNoContent Deleted
swagger:response deleteNoContent
func NewDeleteNoContent ¶
func NewDeleteNoContent() *DeleteNoContent
NewDeleteNoContent creates DeleteNoContent with default headers values
func (*DeleteNoContent) WriteResponse ¶
func (o *DeleteNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteParams ¶
type DeleteParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: path */ ID int64 }
DeleteParams contains all the bound params for the delete operation typically these are obtained from a http.Request
swagger:parameters delete
func NewDeleteParams ¶
func NewDeleteParams() DeleteParams
NewDeleteParams creates a new DeleteParams object no default values defined in spec.
func (*DeleteParams) BindRequest ¶
func (o *DeleteParams) 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 NewDeleteParams() beforehand.
type DeleteRule ¶
type DeleteRule struct { Context *middleware.Context Handler DeleteRuleHandler }
DeleteRule swagger:route DELETE /rules/{id} rule deleteRule
DeleteRule delete rule API
func NewDeleteRule ¶
func NewDeleteRule(ctx *middleware.Context, handler DeleteRuleHandler) *DeleteRule
NewDeleteRule creates a new http.Handler for the delete rule operation
func (*DeleteRule) ServeHTTP ¶
func (o *DeleteRule) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteRuleDefault ¶
type DeleteRuleDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
DeleteRuleDefault error
swagger:response deleteRuleDefault
func NewDeleteRuleDefault ¶
func NewDeleteRuleDefault(code int) *DeleteRuleDefault
NewDeleteRuleDefault creates DeleteRuleDefault with default headers values
func (*DeleteRuleDefault) SetPayload ¶
func (o *DeleteRuleDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete rule default response
func (*DeleteRuleDefault) SetStatusCode ¶
func (o *DeleteRuleDefault) SetStatusCode(code int)
SetStatusCode sets the status to the delete rule default response
func (*DeleteRuleDefault) WithPayload ¶
func (o *DeleteRuleDefault) WithPayload(payload *models.Error) *DeleteRuleDefault
WithPayload adds the payload to the delete rule default response
func (*DeleteRuleDefault) WithStatusCode ¶
func (o *DeleteRuleDefault) WithStatusCode(code int) *DeleteRuleDefault
WithStatusCode adds the status to the delete rule default response
func (*DeleteRuleDefault) WriteResponse ¶
func (o *DeleteRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteRuleHandler ¶
type DeleteRuleHandler interface {
Handle(DeleteRuleParams) middleware.Responder
}
DeleteRuleHandler interface for that can handle valid delete rule params
type DeleteRuleHandlerFunc ¶
type DeleteRuleHandlerFunc func(DeleteRuleParams) middleware.Responder
DeleteRuleHandlerFunc turns a function with the right signature into a delete rule handler
func (DeleteRuleHandlerFunc) Handle ¶
func (fn DeleteRuleHandlerFunc) Handle(params DeleteRuleParams) middleware.Responder
Handle executing the request and returning a response
type DeleteRuleNoContent ¶
type DeleteRuleNoContent struct { }
DeleteRuleNoContent Deleted
swagger:response deleteRuleNoContent
func NewDeleteRuleNoContent ¶
func NewDeleteRuleNoContent() *DeleteRuleNoContent
NewDeleteRuleNoContent creates DeleteRuleNoContent with default headers values
func (*DeleteRuleNoContent) WriteResponse ¶
func (o *DeleteRuleNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteRuleParams ¶
type DeleteRuleParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: path */ ID int64 }
DeleteRuleParams contains all the bound params for the delete rule operation typically these are obtained from a http.Request
swagger:parameters deleteRule
func NewDeleteRuleParams ¶
func NewDeleteRuleParams() DeleteRuleParams
NewDeleteRuleParams creates a new DeleteRuleParams object no default values defined in spec.
func (*DeleteRuleParams) BindRequest ¶
func (o *DeleteRuleParams) 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 NewDeleteRuleParams() beforehand.
type DeleteRuleURL ¶
type DeleteRuleURL struct { ID int64 // contains filtered or unexported fields }
DeleteRuleURL generates an URL for the delete rule operation
func (*DeleteRuleURL) Build ¶
func (o *DeleteRuleURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteRuleURL) BuildFull ¶
func (o *DeleteRuleURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteRuleURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteRuleURL) SetBasePath ¶
func (o *DeleteRuleURL) 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 (*DeleteRuleURL) String ¶
func (o *DeleteRuleURL) String() string
String returns the string representation of the path with query string
func (*DeleteRuleURL) StringFull ¶
func (o *DeleteRuleURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteRuleURL) WithBasePath ¶
func (o *DeleteRuleURL) WithBasePath(bp string) *DeleteRuleURL
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
type DeleteURL ¶
type DeleteURL struct { ID int64 // contains filtered or unexported fields }
DeleteURL generates an URL for the delete operation
func (*DeleteURL) SetBasePath ¶
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 (*DeleteURL) StringFull ¶
StringFull returns the string representation of a complete url
func (*DeleteURL) WithBasePath ¶
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
type Update ¶
type Update struct { Context *middleware.Context Handler UpdateHandler }
Update swagger:route PUT /rules/{id} rule update
Update update API
func NewUpdate ¶
func NewUpdate(ctx *middleware.Context, handler UpdateHandler) *Update
NewUpdate creates a new http.Handler for the update operation
type UpdateDefault ¶
type UpdateDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
UpdateDefault error
swagger:response updateDefault
func NewUpdateDefault ¶
func NewUpdateDefault(code int) *UpdateDefault
NewUpdateDefault creates UpdateDefault with default headers values
func (*UpdateDefault) SetPayload ¶
func (o *UpdateDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the update default response
func (*UpdateDefault) SetStatusCode ¶
func (o *UpdateDefault) SetStatusCode(code int)
SetStatusCode sets the status to the update default response
func (*UpdateDefault) WithPayload ¶
func (o *UpdateDefault) WithPayload(payload *models.Error) *UpdateDefault
WithPayload adds the payload to the update default response
func (*UpdateDefault) WithStatusCode ¶
func (o *UpdateDefault) WithStatusCode(code int) *UpdateDefault
WithStatusCode adds the status to the update default response
func (*UpdateDefault) WriteResponse ¶
func (o *UpdateDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateHandler ¶
type UpdateHandler interface {
Handle(UpdateParams) middleware.Responder
}
UpdateHandler interface for that can handle valid update params
type UpdateHandlerFunc ¶
type UpdateHandlerFunc func(UpdateParams) middleware.Responder
UpdateHandlerFunc turns a function with the right signature into a update handler
func (UpdateHandlerFunc) Handle ¶
func (fn UpdateHandlerFunc) Handle(params UpdateParams) middleware.Responder
Handle executing the request and returning a response
type UpdateOK ¶
type UpdateOK struct { }
UpdateOK OK
swagger:response updateOK
func NewUpdateOK ¶
func NewUpdateOK() *UpdateOK
NewUpdateOK creates UpdateOK with default headers values
func (*UpdateOK) WriteResponse ¶
func (o *UpdateOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateParams ¶
type UpdateParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: path */ ID int64 /* In: body */ Rule *models.Rule }
UpdateParams contains all the bound params for the update operation typically these are obtained from a http.Request
swagger:parameters update
func NewUpdateParams ¶
func NewUpdateParams() UpdateParams
NewUpdateParams creates a new UpdateParams object no default values defined in spec.
func (*UpdateParams) BindRequest ¶
func (o *UpdateParams) 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 NewUpdateParams() beforehand.
type UpdateRule ¶
type UpdateRule struct { Context *middleware.Context Handler UpdateRuleHandler }
UpdateRule swagger:route PUT /rules/{id} rule updateRule
UpdateRule update rule API
func NewUpdateRule ¶
func NewUpdateRule(ctx *middleware.Context, handler UpdateRuleHandler) *UpdateRule
NewUpdateRule creates a new http.Handler for the update rule operation
func (*UpdateRule) ServeHTTP ¶
func (o *UpdateRule) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type UpdateRuleDefault ¶
type UpdateRuleDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
UpdateRuleDefault error
swagger:response updateRuleDefault
func NewUpdateRuleDefault ¶
func NewUpdateRuleDefault(code int) *UpdateRuleDefault
NewUpdateRuleDefault creates UpdateRuleDefault with default headers values
func (*UpdateRuleDefault) SetPayload ¶
func (o *UpdateRuleDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the update rule default response
func (*UpdateRuleDefault) SetStatusCode ¶
func (o *UpdateRuleDefault) SetStatusCode(code int)
SetStatusCode sets the status to the update rule default response
func (*UpdateRuleDefault) WithPayload ¶
func (o *UpdateRuleDefault) WithPayload(payload *models.Error) *UpdateRuleDefault
WithPayload adds the payload to the update rule default response
func (*UpdateRuleDefault) WithStatusCode ¶
func (o *UpdateRuleDefault) WithStatusCode(code int) *UpdateRuleDefault
WithStatusCode adds the status to the update rule default response
func (*UpdateRuleDefault) WriteResponse ¶
func (o *UpdateRuleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateRuleHandler ¶
type UpdateRuleHandler interface {
Handle(UpdateRuleParams) middleware.Responder
}
UpdateRuleHandler interface for that can handle valid update rule params
type UpdateRuleHandlerFunc ¶
type UpdateRuleHandlerFunc func(UpdateRuleParams) middleware.Responder
UpdateRuleHandlerFunc turns a function with the right signature into a update rule handler
func (UpdateRuleHandlerFunc) Handle ¶
func (fn UpdateRuleHandlerFunc) Handle(params UpdateRuleParams) middleware.Responder
Handle executing the request and returning a response
type UpdateRuleOK ¶
type UpdateRuleOK struct { }
UpdateRuleOK OK
swagger:response updateRuleOK
func NewUpdateRuleOK ¶
func NewUpdateRuleOK() *UpdateRuleOK
NewUpdateRuleOK creates UpdateRuleOK with default headers values
func (*UpdateRuleOK) WriteResponse ¶
func (o *UpdateRuleOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateRuleParams ¶
type UpdateRuleParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: path */ ID int64 /* In: body */ Rule *models.Rule }
UpdateRuleParams contains all the bound params for the update rule operation typically these are obtained from a http.Request
swagger:parameters updateRule
func NewUpdateRuleParams ¶
func NewUpdateRuleParams() UpdateRuleParams
NewUpdateRuleParams creates a new UpdateRuleParams object no default values defined in spec.
func (*UpdateRuleParams) BindRequest ¶
func (o *UpdateRuleParams) 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 NewUpdateRuleParams() beforehand.
type UpdateRuleURL ¶
type UpdateRuleURL struct { ID int64 // contains filtered or unexported fields }
UpdateRuleURL generates an URL for the update rule operation
func (*UpdateRuleURL) Build ¶
func (o *UpdateRuleURL) Build() (*url.URL, error)
Build a url path and query string
func (*UpdateRuleURL) BuildFull ¶
func (o *UpdateRuleURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*UpdateRuleURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*UpdateRuleURL) SetBasePath ¶
func (o *UpdateRuleURL) 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 (*UpdateRuleURL) String ¶
func (o *UpdateRuleURL) String() string
String returns the string representation of the path with query string
func (*UpdateRuleURL) StringFull ¶
func (o *UpdateRuleURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*UpdateRuleURL) WithBasePath ¶
func (o *UpdateRuleURL) WithBasePath(bp string) *UpdateRuleURL
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
type UpdateURL ¶
type UpdateURL struct { ID int64 // contains filtered or unexported fields }
UpdateURL generates an URL for the update operation
func (*UpdateURL) SetBasePath ¶
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 (*UpdateURL) StringFull ¶
StringFull returns the string representation of a complete url
func (*UpdateURL) WithBasePath ¶
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
Source Files
¶
- add_new.go
- add_new_parameters.go
- add_new_responses.go
- add_new_rule.go
- add_new_rule_parameters.go
- add_new_rule_responses.go
- add_new_rule_urlbuilder.go
- add_new_urlbuilder.go
- delete.go
- delete_parameters.go
- delete_responses.go
- delete_rule.go
- delete_rule_parameters.go
- delete_rule_responses.go
- delete_rule_urlbuilder.go
- delete_urlbuilder.go
- update.go
- update_parameters.go
- update_responses.go
- update_rule.go
- update_rule_parameters.go
- update_rule_responses.go
- update_rule_urlbuilder.go
- update_urlbuilder.go