sponsor

package
v0.0.0-...-8982ac9 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const GetSponsorsNotFoundCode int = 404

GetSponsorsNotFoundCode is the HTTP code returned for type GetSponsorsNotFound

View Source
const GetSponsorsOKCode int = 200

GetSponsorsOKCode is the HTTP code returned for type GetSponsorsOK

View Source
const PatchSponsorNoContentCode int = 204

PatchSponsorNoContentCode is the HTTP code returned for type PatchSponsorNoContent

View Source
const PutSponsorOKCode int = 200

PutSponsorOKCode is the HTTP code returned for type PutSponsorOK

Variables

This section is empty.

Functions

This section is empty.

Types

type GetSponsors

type GetSponsors struct {
	Context *middleware.Context
	Handler GetSponsorsHandler
}
GetSponsors swagger:route GET /meetups/sponsors sponsor getSponsors

Returns a list of sponsors.

A JSON array of sponsors

func NewGetSponsors

func NewGetSponsors(ctx *middleware.Context, handler GetSponsorsHandler) *GetSponsors

NewGetSponsors creates a new http.Handler for the get sponsors operation

func (*GetSponsors) ServeHTTP

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

type GetSponsorsDefault

type GetSponsorsDefault struct {
	// contains filtered or unexported fields
}

GetSponsorsDefault Unexpected error

swagger:response getSponsorsDefault

func NewGetSponsorsDefault

func NewGetSponsorsDefault(code int) *GetSponsorsDefault

NewGetSponsorsDefault creates GetSponsorsDefault with default headers values

func (*GetSponsorsDefault) SetStatusCode

func (o *GetSponsorsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get sponsors default response

func (*GetSponsorsDefault) WithStatusCode

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

WithStatusCode adds the status to the get sponsors default response

func (*GetSponsorsDefault) WriteResponse

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

WriteResponse to the client

type GetSponsorsHandler

type GetSponsorsHandler interface {
	Handle(GetSponsorsParams) middleware.Responder
}

GetSponsorsHandler interface for that can handle valid get sponsors params

type GetSponsorsHandlerFunc

type GetSponsorsHandlerFunc func(GetSponsorsParams) middleware.Responder

GetSponsorsHandlerFunc turns a function with the right signature into a get sponsors handler

func (GetSponsorsHandlerFunc) Handle

Handle executing the request and returning a response

type GetSponsorsNotFound

type GetSponsorsNotFound struct {
}

GetSponsorsNotFound Speaker not found

swagger:response getSponsorsNotFound

func NewGetSponsorsNotFound

func NewGetSponsorsNotFound() *GetSponsorsNotFound

NewGetSponsorsNotFound creates GetSponsorsNotFound with default headers values

func (*GetSponsorsNotFound) WriteResponse

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

WriteResponse to the client

type GetSponsorsOK

type GetSponsorsOK struct {

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

GetSponsorsOK Success

swagger:response getSponsorsOK

func NewGetSponsorsOK

func NewGetSponsorsOK() *GetSponsorsOK

NewGetSponsorsOK creates GetSponsorsOK with default headers values

func (*GetSponsorsOK) SetPayload

func (o *GetSponsorsOK) SetPayload(payload []*models.Sponsor)

SetPayload sets the payload to the get sponsors o k response

func (*GetSponsorsOK) WithPayload

func (o *GetSponsorsOK) WithPayload(payload []*models.Sponsor) *GetSponsorsOK

WithPayload adds the payload to the get sponsors o k response

func (*GetSponsorsOK) WriteResponse

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

WriteResponse to the client

type GetSponsorsParams

type GetSponsorsParams struct {

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

GetSponsorsParams contains all the bound params for the get sponsors operation typically these are obtained from a http.Request

swagger:parameters getSponsors

func NewGetSponsorsParams

func NewGetSponsorsParams() GetSponsorsParams

NewGetSponsorsParams creates a new GetSponsorsParams object

There are no default values defined in the spec.

func (*GetSponsorsParams) BindRequest

func (o *GetSponsorsParams) 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 NewGetSponsorsParams() beforehand.

type GetSponsorsURL

type GetSponsorsURL struct {
	// contains filtered or unexported fields
}

GetSponsorsURL generates an URL for the get sponsors operation

func (*GetSponsorsURL) Build

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

Build a url path and query string

func (*GetSponsorsURL) BuildFull

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

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

func (*GetSponsorsURL) Must

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

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

func (*GetSponsorsURL) SetBasePath

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

func (o *GetSponsorsURL) String() string

String returns the string representation of the path with query string

func (*GetSponsorsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetSponsorsURL) WithBasePath

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

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 PatchSponsor

type PatchSponsor struct {
	Context *middleware.Context
	Handler PatchSponsorHandler
}
PatchSponsor swagger:route PATCH /meetups/sponsors/{sponsor_id} sponsor patchSponsor

Patch sponsor data.

update sponsor

func NewPatchSponsor

func NewPatchSponsor(ctx *middleware.Context, handler PatchSponsorHandler) *PatchSponsor

NewPatchSponsor creates a new http.Handler for the patch sponsor operation

func (*PatchSponsor) ServeHTTP

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

type PatchSponsorDefault

type PatchSponsorDefault struct {
	// contains filtered or unexported fields
}

PatchSponsorDefault Unexpected error

swagger:response patchSponsorDefault

func NewPatchSponsorDefault

func NewPatchSponsorDefault(code int) *PatchSponsorDefault

NewPatchSponsorDefault creates PatchSponsorDefault with default headers values

func (*PatchSponsorDefault) SetStatusCode

func (o *PatchSponsorDefault) SetStatusCode(code int)

SetStatusCode sets the status to the patch sponsor default response

func (*PatchSponsorDefault) WithStatusCode

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

WithStatusCode adds the status to the patch sponsor default response

func (*PatchSponsorDefault) WriteResponse

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

WriteResponse to the client

type PatchSponsorHandler

type PatchSponsorHandler interface {
	Handle(PatchSponsorParams) middleware.Responder
}

PatchSponsorHandler interface for that can handle valid patch sponsor params

type PatchSponsorHandlerFunc

type PatchSponsorHandlerFunc func(PatchSponsorParams) middleware.Responder

PatchSponsorHandlerFunc turns a function with the right signature into a patch sponsor handler

func (PatchSponsorHandlerFunc) Handle

Handle executing the request and returning a response

type PatchSponsorNoContent

type PatchSponsorNoContent struct {
}

PatchSponsorNoContent updated

swagger:response patchSponsorNoContent

func NewPatchSponsorNoContent

func NewPatchSponsorNoContent() *PatchSponsorNoContent

NewPatchSponsorNoContent creates PatchSponsorNoContent with default headers values

func (*PatchSponsorNoContent) WriteResponse

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

WriteResponse to the client

type PatchSponsorParams

type PatchSponsorParams struct {

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

	/*The sponsor to create.
	  Required: true
	  In: body
	*/
	Sponsor *models.Sponsor
	/*The ID of the sponsor.
	  Required: true
	  In: path
	*/
	SponsorID string
}

PatchSponsorParams contains all the bound params for the patch sponsor operation typically these are obtained from a http.Request

swagger:parameters patchSponsor

func NewPatchSponsorParams

func NewPatchSponsorParams() PatchSponsorParams

NewPatchSponsorParams creates a new PatchSponsorParams object

There are no default values defined in the spec.

func (*PatchSponsorParams) BindRequest

func (o *PatchSponsorParams) 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 NewPatchSponsorParams() beforehand.

type PatchSponsorURL

type PatchSponsorURL struct {
	SponsorID string
	// contains filtered or unexported fields
}

PatchSponsorURL generates an URL for the patch sponsor operation

func (*PatchSponsorURL) Build

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

Build a url path and query string

func (*PatchSponsorURL) BuildFull

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

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

func (*PatchSponsorURL) Must

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

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

func (*PatchSponsorURL) SetBasePath

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

func (o *PatchSponsorURL) String() string

String returns the string representation of the path with query string

func (*PatchSponsorURL) StringFull

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

StringFull returns the string representation of a complete url

func (*PatchSponsorURL) WithBasePath

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

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 PutSponsor

type PutSponsor struct {
	Context *middleware.Context
	Handler PutSponsorHandler
}
PutSponsor swagger:route PUT /meetups/sponsors sponsor putSponsor

Put sponsor data.

create sponsor

func NewPutSponsor

func NewPutSponsor(ctx *middleware.Context, handler PutSponsorHandler) *PutSponsor

NewPutSponsor creates a new http.Handler for the put sponsor operation

func (*PutSponsor) ServeHTTP

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

type PutSponsorDefault

type PutSponsorDefault struct {
	// contains filtered or unexported fields
}

PutSponsorDefault Unexpected error

swagger:response putSponsorDefault

func NewPutSponsorDefault

func NewPutSponsorDefault(code int) *PutSponsorDefault

NewPutSponsorDefault creates PutSponsorDefault with default headers values

func (*PutSponsorDefault) SetStatusCode

func (o *PutSponsorDefault) SetStatusCode(code int)

SetStatusCode sets the status to the put sponsor default response

func (*PutSponsorDefault) WithStatusCode

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

WithStatusCode adds the status to the put sponsor default response

func (*PutSponsorDefault) WriteResponse

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

WriteResponse to the client

type PutSponsorHandler

type PutSponsorHandler interface {
	Handle(PutSponsorParams) middleware.Responder
}

PutSponsorHandler interface for that can handle valid put sponsor params

type PutSponsorHandlerFunc

type PutSponsorHandlerFunc func(PutSponsorParams) middleware.Responder

PutSponsorHandlerFunc turns a function with the right signature into a put sponsor handler

func (PutSponsorHandlerFunc) Handle

Handle executing the request and returning a response

type PutSponsorOK

type PutSponsorOK struct {

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

PutSponsorOK object uuid & status

swagger:response putSponsorOK

func NewPutSponsorOK

func NewPutSponsorOK() *PutSponsorOK

NewPutSponsorOK creates PutSponsorOK with default headers values

func (*PutSponsorOK) SetPayload

func (o *PutSponsorOK) SetPayload(payload *models.CreateObject)

SetPayload sets the payload to the put sponsor o k response

func (*PutSponsorOK) WithPayload

func (o *PutSponsorOK) WithPayload(payload *models.CreateObject) *PutSponsorOK

WithPayload adds the payload to the put sponsor o k response

func (*PutSponsorOK) WriteResponse

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

WriteResponse to the client

type PutSponsorParams

type PutSponsorParams struct {

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

	/*The sponsor to create.
	  Required: true
	  In: body
	*/
	Sponsor *models.Sponsor
}

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

swagger:parameters putSponsor

func NewPutSponsorParams

func NewPutSponsorParams() PutSponsorParams

NewPutSponsorParams creates a new PutSponsorParams object

There are no default values defined in the spec.

func (*PutSponsorParams) BindRequest

func (o *PutSponsorParams) 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 NewPutSponsorParams() beforehand.

type PutSponsorURL

type PutSponsorURL struct {
	// contains filtered or unexported fields
}

PutSponsorURL generates an URL for the put sponsor operation

func (*PutSponsorURL) Build

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

Build a url path and query string

func (*PutSponsorURL) BuildFull

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

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

func (*PutSponsorURL) Must

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

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

func (*PutSponsorURL) SetBasePath

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

func (o *PutSponsorURL) String() string

String returns the string representation of the path with query string

func (*PutSponsorURL) StringFull

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

StringFull returns the string representation of a complete url

func (*PutSponsorURL) WithBasePath

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

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