distribution

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 FindDistributionsOKCode int = 200

FindDistributionsOKCode is the HTTP code returned for type FindDistributionsOK

View Source
const PutDistributionsOKCode int = 200

PutDistributionsOKCode is the HTTP code returned for type PutDistributionsOK

Variables

This section is empty.

Functions

This section is empty.

Types

type FindDistributions

type FindDistributions struct {
	Context *middleware.Context
	Handler FindDistributionsHandler
}
FindDistributions swagger:route GET /flags/{flagID}/segments/{segmentID}/distributions distribution findDistributions

FindDistributions find distributions API

func NewFindDistributions

func NewFindDistributions(ctx *middleware.Context, handler FindDistributionsHandler) *FindDistributions

NewFindDistributions creates a new http.Handler for the find distributions operation

func (*FindDistributions) ServeHTTP

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

type FindDistributionsDefault

type FindDistributionsDefault struct {

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

FindDistributionsDefault generic error response

swagger:response findDistributionsDefault

func NewFindDistributionsDefault

func NewFindDistributionsDefault(code int) *FindDistributionsDefault

NewFindDistributionsDefault creates FindDistributionsDefault with default headers values

func (*FindDistributionsDefault) SetPayload

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

SetPayload sets the payload to the find distributions default response

func (*FindDistributionsDefault) SetStatusCode

func (o *FindDistributionsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the find distributions default response

func (*FindDistributionsDefault) WithPayload

WithPayload adds the payload to the find distributions default response

func (*FindDistributionsDefault) WithStatusCode

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

WithStatusCode adds the status to the find distributions default response

func (*FindDistributionsDefault) WriteResponse

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

WriteResponse to the client

type FindDistributionsHandler

type FindDistributionsHandler interface {
	Handle(FindDistributionsParams) middleware.Responder
}

FindDistributionsHandler interface for that can handle valid find distributions params

type FindDistributionsHandlerFunc

type FindDistributionsHandlerFunc func(FindDistributionsParams) middleware.Responder

FindDistributionsHandlerFunc turns a function with the right signature into a find distributions handler

func (FindDistributionsHandlerFunc) Handle

Handle executing the request and returning a response

type FindDistributionsOK

type FindDistributionsOK struct {

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

FindDistributionsOK distribution under the segment

swagger:response findDistributionsOK

func NewFindDistributionsOK

func NewFindDistributionsOK() *FindDistributionsOK

NewFindDistributionsOK creates FindDistributionsOK with default headers values

func (*FindDistributionsOK) SetPayload

func (o *FindDistributionsOK) SetPayload(payload []*models.Distribution)

SetPayload sets the payload to the find distributions o k response

func (*FindDistributionsOK) WithPayload

func (o *FindDistributionsOK) WithPayload(payload []*models.Distribution) *FindDistributionsOK

WithPayload adds the payload to the find distributions o k response

func (*FindDistributionsOK) WriteResponse

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

WriteResponse to the client

type FindDistributionsParams

type FindDistributionsParams 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
}

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

swagger:parameters findDistributions

func NewFindDistributionsParams

func NewFindDistributionsParams() FindDistributionsParams

NewFindDistributionsParams creates a new FindDistributionsParams object

There are no default values defined in the spec.

func (*FindDistributionsParams) BindRequest

func (o *FindDistributionsParams) 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 NewFindDistributionsParams() beforehand.

type FindDistributionsURL

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

FindDistributionsURL generates an URL for the find distributions operation

func (*FindDistributionsURL) Build

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

Build a url path and query string

func (*FindDistributionsURL) BuildFull

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

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

func (*FindDistributionsURL) Must

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

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

func (*FindDistributionsURL) SetBasePath

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

func (o *FindDistributionsURL) String() string

String returns the string representation of the path with query string

func (*FindDistributionsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*FindDistributionsURL) WithBasePath

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

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 PutDistributions

type PutDistributions struct {
	Context *middleware.Context
	Handler PutDistributionsHandler
}
PutDistributions swagger:route PUT /flags/{flagID}/segments/{segmentID}/distributions distribution putDistributions

replace the distribution with the new setting

func NewPutDistributions

func NewPutDistributions(ctx *middleware.Context, handler PutDistributionsHandler) *PutDistributions

NewPutDistributions creates a new http.Handler for the put distributions operation

func (*PutDistributions) ServeHTTP

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

type PutDistributionsDefault

type PutDistributionsDefault struct {

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

PutDistributionsDefault generic error response

swagger:response putDistributionsDefault

func NewPutDistributionsDefault

func NewPutDistributionsDefault(code int) *PutDistributionsDefault

NewPutDistributionsDefault creates PutDistributionsDefault with default headers values

func (*PutDistributionsDefault) SetPayload

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

SetPayload sets the payload to the put distributions default response

func (*PutDistributionsDefault) SetStatusCode

func (o *PutDistributionsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the put distributions default response

func (*PutDistributionsDefault) WithPayload

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

WithPayload adds the payload to the put distributions default response

func (*PutDistributionsDefault) WithStatusCode

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

WithStatusCode adds the status to the put distributions default response

func (*PutDistributionsDefault) WriteResponse

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

WriteResponse to the client

type PutDistributionsHandler

type PutDistributionsHandler interface {
	Handle(PutDistributionsParams) middleware.Responder
}

PutDistributionsHandler interface for that can handle valid put distributions params

type PutDistributionsHandlerFunc

type PutDistributionsHandlerFunc func(PutDistributionsParams) middleware.Responder

PutDistributionsHandlerFunc turns a function with the right signature into a put distributions handler

func (PutDistributionsHandlerFunc) Handle

Handle executing the request and returning a response

type PutDistributionsOK

type PutDistributionsOK struct {

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

PutDistributionsOK distribution under the segment

swagger:response putDistributionsOK

func NewPutDistributionsOK

func NewPutDistributionsOK() *PutDistributionsOK

NewPutDistributionsOK creates PutDistributionsOK with default headers values

func (*PutDistributionsOK) SetPayload

func (o *PutDistributionsOK) SetPayload(payload []*models.Distribution)

SetPayload sets the payload to the put distributions o k response

func (*PutDistributionsOK) WithPayload

func (o *PutDistributionsOK) WithPayload(payload []*models.Distribution) *PutDistributionsOK

WithPayload adds the payload to the put distributions o k response

func (*PutDistributionsOK) WriteResponse

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

WriteResponse to the client

type PutDistributionsParams

type PutDistributionsParams struct {

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

	/*array of distributions
	  Required: true
	  In: body
	*/
	Body *models.PutDistributionsRequest
	/*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
}

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

swagger:parameters putDistributions

func NewPutDistributionsParams

func NewPutDistributionsParams() PutDistributionsParams

NewPutDistributionsParams creates a new PutDistributionsParams object

There are no default values defined in the spec.

func (*PutDistributionsParams) BindRequest

func (o *PutDistributionsParams) 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 NewPutDistributionsParams() beforehand.

type PutDistributionsURL

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

PutDistributionsURL generates an URL for the put distributions operation

func (*PutDistributionsURL) Build

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

Build a url path and query string

func (*PutDistributionsURL) BuildFull

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

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

func (*PutDistributionsURL) Must

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

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

func (*PutDistributionsURL) SetBasePath

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

func (o *PutDistributionsURL) String() string

String returns the string representation of the path with query string

func (*PutDistributionsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*PutDistributionsURL) WithBasePath

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

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