rule

package
v0.0.0-...-ecab65a Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const AddNewCreatedCode int = 201

AddNewCreatedCode is the HTTP code returned for type AddNewCreated

View Source
const AddNewRuleCreatedCode int = 201

AddNewRuleCreatedCode is the HTTP code returned for type AddNewRuleCreated

View Source
const DeleteNoContentCode int = 204

DeleteNoContentCode is the HTTP code returned for type DeleteNoContent

View Source
const DeleteRuleNoContentCode int = 204

DeleteRuleNoContentCode is the HTTP code returned for type DeleteRuleNoContent

View Source
const UpdateOKCode int = 200

UpdateOKCode is the HTTP code returned for type UpdateOK

View Source
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

func (*AddNew) ServeHTTP

func (o *AddNew) ServeHTTP(rw http.ResponseWriter, r *http.Request)

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

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

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

func (o *AddNewRuleURL) Must(u *url.URL, err error) *url.URL

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) Build

func (o *AddNewURL) Build() (*url.URL, error)

Build a url path and query string

func (*AddNewURL) BuildFull

func (o *AddNewURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*AddNewURL) Must

func (o *AddNewURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*AddNewURL) SetBasePath

func (o *AddNewURL) 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 (*AddNewURL) String

func (o *AddNewURL) String() string

String returns the string representation of the path with query string

func (*AddNewURL) StringFull

func (o *AddNewURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*AddNewURL) WithBasePath

func (o *AddNewURL) WithBasePath(bp string) *AddNewURL

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

func (*Delete) ServeHTTP

func (o *Delete) ServeHTTP(rw http.ResponseWriter, r *http.Request)

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

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

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

func (o *DeleteRuleURL) Must(u *url.URL, err error) *url.URL

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) Build

func (o *DeleteURL) Build() (*url.URL, error)

Build a url path and query string

func (*DeleteURL) BuildFull

func (o *DeleteURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*DeleteURL) Must

func (o *DeleteURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*DeleteURL) SetBasePath

func (o *DeleteURL) 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 (*DeleteURL) String

func (o *DeleteURL) String() string

String returns the string representation of the path with query string

func (*DeleteURL) StringFull

func (o *DeleteURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*DeleteURL) WithBasePath

func (o *DeleteURL) WithBasePath(bp string) *DeleteURL

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

func (*Update) ServeHTTP

func (o *Update) ServeHTTP(rw http.ResponseWriter, r *http.Request)

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

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

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

func (o *UpdateRuleURL) Must(u *url.URL, err error) *url.URL

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) Build

func (o *UpdateURL) Build() (*url.URL, error)

Build a url path and query string

func (*UpdateURL) BuildFull

func (o *UpdateURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*UpdateURL) Must

func (o *UpdateURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*UpdateURL) SetBasePath

func (o *UpdateURL) 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 (*UpdateURL) String

func (o *UpdateURL) String() string

String returns the string representation of the path with query string

func (*UpdateURL) StringFull

func (o *UpdateURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*UpdateURL) WithBasePath

func (o *UpdateURL) WithBasePath(bp string) *UpdateURL

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

Jump to

Keyboard shortcuts

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