segment

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const CreateSegmentOKCode int = 200

CreateSegmentOKCode is the HTTP code returned for type CreateSegmentOK

View Source
const DeleteSegmentOKCode int = 200

DeleteSegmentOKCode is the HTTP code returned for type DeleteSegmentOK

View Source
const FindSegmentsOKCode int = 200

FindSegmentsOKCode is the HTTP code returned for type FindSegmentsOK

View Source
const PutSegmentOKCode int = 200

PutSegmentOKCode is the HTTP code returned for type PutSegmentOK

View Source
const PutSegmentsReorderOKCode int = 200

PutSegmentsReorderOKCode is the HTTP code returned for type PutSegmentsReorderOK

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateSegment

type CreateSegment struct {
	Context *middleware.Context
	Handler CreateSegmentHandler
}
CreateSegment swagger:route POST /flags/{flagID}/segments segment createSegment

CreateSegment create segment API

func NewCreateSegment

func NewCreateSegment(ctx *middleware.Context, handler CreateSegmentHandler) *CreateSegment

NewCreateSegment creates a new http.Handler for the create segment operation

func (*CreateSegment) ServeHTTP

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

type CreateSegmentDefault

type CreateSegmentDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

CreateSegmentDefault generic error response

swagger:response createSegmentDefault

func NewCreateSegmentDefault

func NewCreateSegmentDefault(code int) *CreateSegmentDefault

NewCreateSegmentDefault creates CreateSegmentDefault with default headers values

func (*CreateSegmentDefault) SetPayload

func (o *CreateSegmentDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the create segment default response

func (*CreateSegmentDefault) SetStatusCode

func (o *CreateSegmentDefault) SetStatusCode(code int)

SetStatusCode sets the status to the create segment default response

func (*CreateSegmentDefault) WithPayload

func (o *CreateSegmentDefault) WithPayload(payload *models.Error) *CreateSegmentDefault

WithPayload adds the payload to the create segment default response

func (*CreateSegmentDefault) WithStatusCode

func (o *CreateSegmentDefault) WithStatusCode(code int) *CreateSegmentDefault

WithStatusCode adds the status to the create segment default response

func (*CreateSegmentDefault) WriteResponse

func (o *CreateSegmentDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateSegmentHandler

type CreateSegmentHandler interface {
	Handle(CreateSegmentParams) middleware.Responder
}

CreateSegmentHandler interface for that can handle valid create segment params

type CreateSegmentHandlerFunc

type CreateSegmentHandlerFunc func(CreateSegmentParams) middleware.Responder

CreateSegmentHandlerFunc turns a function with the right signature into a create segment handler

func (CreateSegmentHandlerFunc) Handle

Handle executing the request and returning a response

type CreateSegmentOK

type CreateSegmentOK struct {

	/*
	  In: Body
	*/
	Payload *models.Segment `json:"body,omitempty"`
}

CreateSegmentOK segment created

swagger:response createSegmentOK

func NewCreateSegmentOK

func NewCreateSegmentOK() *CreateSegmentOK

NewCreateSegmentOK creates CreateSegmentOK with default headers values

func (*CreateSegmentOK) SetPayload

func (o *CreateSegmentOK) SetPayload(payload *models.Segment)

SetPayload sets the payload to the create segment o k response

func (*CreateSegmentOK) WithPayload

func (o *CreateSegmentOK) WithPayload(payload *models.Segment) *CreateSegmentOK

WithPayload adds the payload to the create segment o k response

func (*CreateSegmentOK) WriteResponse

func (o *CreateSegmentOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateSegmentParams

type CreateSegmentParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*create a segment under a flag
	  Required: true
	  In: body
	*/
	Body *models.CreateSegmentRequest
	/*numeric ID of the flag to get
	  Required: true
	  Minimum: 1
	  In: path
	*/
	FlagID int64
}

CreateSegmentParams contains all the bound params for the create segment operation typically these are obtained from a http.Request

swagger:parameters createSegment

func NewCreateSegmentParams

func NewCreateSegmentParams() CreateSegmentParams

NewCreateSegmentParams creates a new CreateSegmentParams object

There are no default values defined in the spec.

func (*CreateSegmentParams) BindRequest

func (o *CreateSegmentParams) 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 NewCreateSegmentParams() beforehand.

type CreateSegmentURL

type CreateSegmentURL struct {
	FlagID int64
	// contains filtered or unexported fields
}

CreateSegmentURL generates an URL for the create segment operation

func (*CreateSegmentURL) Build

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

Build a url path and query string

func (*CreateSegmentURL) BuildFull

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

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

func (*CreateSegmentURL) Must

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

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

func (*CreateSegmentURL) SetBasePath

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

func (o *CreateSegmentURL) String() string

String returns the string representation of the path with query string

func (*CreateSegmentURL) StringFull

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

StringFull returns the string representation of a complete url

func (*CreateSegmentURL) WithBasePath

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

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 DeleteSegment

type DeleteSegment struct {
	Context *middleware.Context
	Handler DeleteSegmentHandler
}
DeleteSegment swagger:route DELETE /flags/{flagID}/segments/{segmentID} segment deleteSegment

DeleteSegment delete segment API

func NewDeleteSegment

func NewDeleteSegment(ctx *middleware.Context, handler DeleteSegmentHandler) *DeleteSegment

NewDeleteSegment creates a new http.Handler for the delete segment operation

func (*DeleteSegment) ServeHTTP

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

type DeleteSegmentDefault

type DeleteSegmentDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

DeleteSegmentDefault generic error response

swagger:response deleteSegmentDefault

func NewDeleteSegmentDefault

func NewDeleteSegmentDefault(code int) *DeleteSegmentDefault

NewDeleteSegmentDefault creates DeleteSegmentDefault with default headers values

func (*DeleteSegmentDefault) SetPayload

func (o *DeleteSegmentDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the delete segment default response

func (*DeleteSegmentDefault) SetStatusCode

func (o *DeleteSegmentDefault) SetStatusCode(code int)

SetStatusCode sets the status to the delete segment default response

func (*DeleteSegmentDefault) WithPayload

func (o *DeleteSegmentDefault) WithPayload(payload *models.Error) *DeleteSegmentDefault

WithPayload adds the payload to the delete segment default response

func (*DeleteSegmentDefault) WithStatusCode

func (o *DeleteSegmentDefault) WithStatusCode(code int) *DeleteSegmentDefault

WithStatusCode adds the status to the delete segment default response

func (*DeleteSegmentDefault) WriteResponse

func (o *DeleteSegmentDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteSegmentHandler

type DeleteSegmentHandler interface {
	Handle(DeleteSegmentParams) middleware.Responder
}

DeleteSegmentHandler interface for that can handle valid delete segment params

type DeleteSegmentHandlerFunc

type DeleteSegmentHandlerFunc func(DeleteSegmentParams) middleware.Responder

DeleteSegmentHandlerFunc turns a function with the right signature into a delete segment handler

func (DeleteSegmentHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteSegmentOK

type DeleteSegmentOK struct {
}

DeleteSegmentOK deleted

swagger:response deleteSegmentOK

func NewDeleteSegmentOK

func NewDeleteSegmentOK() *DeleteSegmentOK

NewDeleteSegmentOK creates DeleteSegmentOK with default headers values

func (*DeleteSegmentOK) WriteResponse

func (o *DeleteSegmentOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteSegmentParams

type DeleteSegmentParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*numeric ID of the flag
	  Required: true
	  Minimum: 1
	  In: path
	*/
	FlagID int64
	/*numeric ID of the segment
	  Required: true
	  Minimum: 1
	  In: path
	*/
	SegmentID int64
}

DeleteSegmentParams contains all the bound params for the delete segment operation typically these are obtained from a http.Request

swagger:parameters deleteSegment

func NewDeleteSegmentParams

func NewDeleteSegmentParams() DeleteSegmentParams

NewDeleteSegmentParams creates a new DeleteSegmentParams object

There are no default values defined in the spec.

func (*DeleteSegmentParams) BindRequest

func (o *DeleteSegmentParams) 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 NewDeleteSegmentParams() beforehand.

type DeleteSegmentURL

type DeleteSegmentURL struct {
	FlagID    int64
	SegmentID int64
	// contains filtered or unexported fields
}

DeleteSegmentURL generates an URL for the delete segment operation

func (*DeleteSegmentURL) Build

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

Build a url path and query string

func (*DeleteSegmentURL) BuildFull

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

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

func (*DeleteSegmentURL) Must

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

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

func (*DeleteSegmentURL) SetBasePath

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

func (o *DeleteSegmentURL) String() string

String returns the string representation of the path with query string

func (*DeleteSegmentURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeleteSegmentURL) WithBasePath

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

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 FindSegments

type FindSegments struct {
	Context *middleware.Context
	Handler FindSegmentsHandler
}
FindSegments swagger:route GET /flags/{flagID}/segments segment findSegments

FindSegments find segments API

func NewFindSegments

func NewFindSegments(ctx *middleware.Context, handler FindSegmentsHandler) *FindSegments

NewFindSegments creates a new http.Handler for the find segments operation

func (*FindSegments) ServeHTTP

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

type FindSegmentsDefault

type FindSegmentsDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

FindSegmentsDefault generic error response

swagger:response findSegmentsDefault

func NewFindSegmentsDefault

func NewFindSegmentsDefault(code int) *FindSegmentsDefault

NewFindSegmentsDefault creates FindSegmentsDefault with default headers values

func (*FindSegmentsDefault) SetPayload

func (o *FindSegmentsDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the find segments default response

func (*FindSegmentsDefault) SetStatusCode

func (o *FindSegmentsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the find segments default response

func (*FindSegmentsDefault) WithPayload

func (o *FindSegmentsDefault) WithPayload(payload *models.Error) *FindSegmentsDefault

WithPayload adds the payload to the find segments default response

func (*FindSegmentsDefault) WithStatusCode

func (o *FindSegmentsDefault) WithStatusCode(code int) *FindSegmentsDefault

WithStatusCode adds the status to the find segments default response

func (*FindSegmentsDefault) WriteResponse

func (o *FindSegmentsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type FindSegmentsHandler

type FindSegmentsHandler interface {
	Handle(FindSegmentsParams) middleware.Responder
}

FindSegmentsHandler interface for that can handle valid find segments params

type FindSegmentsHandlerFunc

type FindSegmentsHandlerFunc func(FindSegmentsParams) middleware.Responder

FindSegmentsHandlerFunc turns a function with the right signature into a find segments handler

func (FindSegmentsHandlerFunc) Handle

Handle executing the request and returning a response

type FindSegmentsOK

type FindSegmentsOK struct {

	/*
	  In: Body
	*/
	Payload []*models.Segment `json:"body,omitempty"`
}

FindSegmentsOK segments ordered by rank of the flag

swagger:response findSegmentsOK

func NewFindSegmentsOK

func NewFindSegmentsOK() *FindSegmentsOK

NewFindSegmentsOK creates FindSegmentsOK with default headers values

func (*FindSegmentsOK) SetPayload

func (o *FindSegmentsOK) SetPayload(payload []*models.Segment)

SetPayload sets the payload to the find segments o k response

func (*FindSegmentsOK) WithPayload

func (o *FindSegmentsOK) WithPayload(payload []*models.Segment) *FindSegmentsOK

WithPayload adds the payload to the find segments o k response

func (*FindSegmentsOK) WriteResponse

func (o *FindSegmentsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type FindSegmentsParams

type FindSegmentsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*numeric ID of the flag to get
	  Required: true
	  Minimum: 1
	  In: path
	*/
	FlagID int64
}

FindSegmentsParams contains all the bound params for the find segments operation typically these are obtained from a http.Request

swagger:parameters findSegments

func NewFindSegmentsParams

func NewFindSegmentsParams() FindSegmentsParams

NewFindSegmentsParams creates a new FindSegmentsParams object

There are no default values defined in the spec.

func (*FindSegmentsParams) BindRequest

func (o *FindSegmentsParams) 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 NewFindSegmentsParams() beforehand.

type FindSegmentsURL

type FindSegmentsURL struct {
	FlagID int64
	// contains filtered or unexported fields
}

FindSegmentsURL generates an URL for the find segments operation

func (*FindSegmentsURL) Build

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

Build a url path and query string

func (*FindSegmentsURL) BuildFull

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

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

func (*FindSegmentsURL) Must

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

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

func (*FindSegmentsURL) SetBasePath

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

func (o *FindSegmentsURL) String() string

String returns the string representation of the path with query string

func (*FindSegmentsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*FindSegmentsURL) WithBasePath

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

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 PutSegment

type PutSegment struct {
	Context *middleware.Context
	Handler PutSegmentHandler
}
PutSegment swagger:route PUT /flags/{flagID}/segments/{segmentID} segment putSegment

PutSegment put segment API

func NewPutSegment

func NewPutSegment(ctx *middleware.Context, handler PutSegmentHandler) *PutSegment

NewPutSegment creates a new http.Handler for the put segment operation

func (*PutSegment) ServeHTTP

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

type PutSegmentDefault

type PutSegmentDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

PutSegmentDefault generic error response

swagger:response putSegmentDefault

func NewPutSegmentDefault

func NewPutSegmentDefault(code int) *PutSegmentDefault

NewPutSegmentDefault creates PutSegmentDefault with default headers values

func (*PutSegmentDefault) SetPayload

func (o *PutSegmentDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the put segment default response

func (*PutSegmentDefault) SetStatusCode

func (o *PutSegmentDefault) SetStatusCode(code int)

SetStatusCode sets the status to the put segment default response

func (*PutSegmentDefault) WithPayload

func (o *PutSegmentDefault) WithPayload(payload *models.Error) *PutSegmentDefault

WithPayload adds the payload to the put segment default response

func (*PutSegmentDefault) WithStatusCode

func (o *PutSegmentDefault) WithStatusCode(code int) *PutSegmentDefault

WithStatusCode adds the status to the put segment default response

func (*PutSegmentDefault) WriteResponse

func (o *PutSegmentDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PutSegmentHandler

type PutSegmentHandler interface {
	Handle(PutSegmentParams) middleware.Responder
}

PutSegmentHandler interface for that can handle valid put segment params

type PutSegmentHandlerFunc

type PutSegmentHandlerFunc func(PutSegmentParams) middleware.Responder

PutSegmentHandlerFunc turns a function with the right signature into a put segment handler

func (PutSegmentHandlerFunc) Handle

Handle executing the request and returning a response

type PutSegmentOK

type PutSegmentOK struct {

	/*
	  In: Body
	*/
	Payload *models.Segment `json:"body,omitempty"`
}

PutSegmentOK segment updated

swagger:response putSegmentOK

func NewPutSegmentOK

func NewPutSegmentOK() *PutSegmentOK

NewPutSegmentOK creates PutSegmentOK with default headers values

func (*PutSegmentOK) SetPayload

func (o *PutSegmentOK) SetPayload(payload *models.Segment)

SetPayload sets the payload to the put segment o k response

func (*PutSegmentOK) WithPayload

func (o *PutSegmentOK) WithPayload(payload *models.Segment) *PutSegmentOK

WithPayload adds the payload to the put segment o k response

func (*PutSegmentOK) WriteResponse

func (o *PutSegmentOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PutSegmentParams

type PutSegmentParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*update a segment
	  Required: true
	  In: body
	*/
	Body *models.PutSegmentRequest
	/*numeric ID of the flag
	  Required: true
	  Minimum: 1
	  In: path
	*/
	FlagID int64
	/*numeric ID of the segment
	  Required: true
	  Minimum: 1
	  In: path
	*/
	SegmentID int64
}

PutSegmentParams contains all the bound params for the put segment operation typically these are obtained from a http.Request

swagger:parameters putSegment

func NewPutSegmentParams

func NewPutSegmentParams() PutSegmentParams

NewPutSegmentParams creates a new PutSegmentParams object

There are no default values defined in the spec.

func (*PutSegmentParams) BindRequest

func (o *PutSegmentParams) 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 NewPutSegmentParams() beforehand.

type PutSegmentURL

type PutSegmentURL struct {
	FlagID    int64
	SegmentID int64
	// contains filtered or unexported fields
}

PutSegmentURL generates an URL for the put segment operation

func (*PutSegmentURL) Build

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

Build a url path and query string

func (*PutSegmentURL) BuildFull

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

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

func (*PutSegmentURL) Must

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

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

func (*PutSegmentURL) SetBasePath

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

func (o *PutSegmentURL) String() string

String returns the string representation of the path with query string

func (*PutSegmentURL) StringFull

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

StringFull returns the string representation of a complete url

func (*PutSegmentURL) WithBasePath

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

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 PutSegmentsReorder

type PutSegmentsReorder struct {
	Context *middleware.Context
	Handler PutSegmentsReorderHandler
}
PutSegmentsReorder swagger:route PUT /flags/{flagID}/segments/reorder segment putSegmentsReorder

PutSegmentsReorder put segments reorder API

func NewPutSegmentsReorder

func NewPutSegmentsReorder(ctx *middleware.Context, handler PutSegmentsReorderHandler) *PutSegmentsReorder

NewPutSegmentsReorder creates a new http.Handler for the put segments reorder operation

func (*PutSegmentsReorder) ServeHTTP

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

type PutSegmentsReorderDefault

type PutSegmentsReorderDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

PutSegmentsReorderDefault generic error response

swagger:response putSegmentsReorderDefault

func NewPutSegmentsReorderDefault

func NewPutSegmentsReorderDefault(code int) *PutSegmentsReorderDefault

NewPutSegmentsReorderDefault creates PutSegmentsReorderDefault with default headers values

func (*PutSegmentsReorderDefault) SetPayload

func (o *PutSegmentsReorderDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the put segments reorder default response

func (*PutSegmentsReorderDefault) SetStatusCode

func (o *PutSegmentsReorderDefault) SetStatusCode(code int)

SetStatusCode sets the status to the put segments reorder default response

func (*PutSegmentsReorderDefault) WithPayload

WithPayload adds the payload to the put segments reorder default response

func (*PutSegmentsReorderDefault) WithStatusCode

func (o *PutSegmentsReorderDefault) WithStatusCode(code int) *PutSegmentsReorderDefault

WithStatusCode adds the status to the put segments reorder default response

func (*PutSegmentsReorderDefault) WriteResponse

func (o *PutSegmentsReorderDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PutSegmentsReorderHandler

type PutSegmentsReorderHandler interface {
	Handle(PutSegmentsReorderParams) middleware.Responder
}

PutSegmentsReorderHandler interface for that can handle valid put segments reorder params

type PutSegmentsReorderHandlerFunc

type PutSegmentsReorderHandlerFunc func(PutSegmentsReorderParams) middleware.Responder

PutSegmentsReorderHandlerFunc turns a function with the right signature into a put segments reorder handler

func (PutSegmentsReorderHandlerFunc) Handle

Handle executing the request and returning a response

type PutSegmentsReorderOK

type PutSegmentsReorderOK struct {
}

PutSegmentsReorderOK segments reordered

swagger:response putSegmentsReorderOK

func NewPutSegmentsReorderOK

func NewPutSegmentsReorderOK() *PutSegmentsReorderOK

NewPutSegmentsReorderOK creates PutSegmentsReorderOK with default headers values

func (*PutSegmentsReorderOK) WriteResponse

func (o *PutSegmentsReorderOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PutSegmentsReorderParams

type PutSegmentsReorderParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*reorder segments
	  Required: true
	  In: body
	*/
	Body *models.PutSegmentReorderRequest
	/*numeric ID of the flag
	  Required: true
	  Minimum: 1
	  In: path
	*/
	FlagID int64
}

PutSegmentsReorderParams contains all the bound params for the put segments reorder operation typically these are obtained from a http.Request

swagger:parameters putSegmentsReorder

func NewPutSegmentsReorderParams

func NewPutSegmentsReorderParams() PutSegmentsReorderParams

NewPutSegmentsReorderParams creates a new PutSegmentsReorderParams object

There are no default values defined in the spec.

func (*PutSegmentsReorderParams) BindRequest

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 NewPutSegmentsReorderParams() beforehand.

type PutSegmentsReorderURL

type PutSegmentsReorderURL struct {
	FlagID int64
	// contains filtered or unexported fields
}

PutSegmentsReorderURL generates an URL for the put segments reorder operation

func (*PutSegmentsReorderURL) Build

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

Build a url path and query string

func (*PutSegmentsReorderURL) BuildFull

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

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

func (*PutSegmentsReorderURL) Must

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

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

func (*PutSegmentsReorderURL) SetBasePath

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

func (o *PutSegmentsReorderURL) String() string

String returns the string representation of the path with query string

func (*PutSegmentsReorderURL) StringFull

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

StringFull returns the string representation of a complete url

func (*PutSegmentsReorderURL) WithBasePath

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

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