speaker

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 GetSpeakersNotFoundCode int = 404

GetSpeakersNotFoundCode is the HTTP code returned for type GetSpeakersNotFound

View Source
const GetSpeakersOKCode int = 200

GetSpeakersOKCode is the HTTP code returned for type GetSpeakersOK

View Source
const PatchSpeakerNoContentCode int = 204

PatchSpeakerNoContentCode is the HTTP code returned for type PatchSpeakerNoContent

View Source
const PutSpeakerNotFoundCode int = 404

PutSpeakerNotFoundCode is the HTTP code returned for type PutSpeakerNotFound

View Source
const PutSpeakerOKCode int = 200

PutSpeakerOKCode is the HTTP code returned for type PutSpeakerOK

Variables

This section is empty.

Functions

This section is empty.

Types

type GetSpeakers

type GetSpeakers struct {
	Context *middleware.Context
	Handler GetSpeakersHandler
}
GetSpeakers swagger:route GET /meetups/{meetup_id}/speakers speaker getSpeakers

Returns a list of speakers in meetup.

A JSON array of speakers

func NewGetSpeakers

func NewGetSpeakers(ctx *middleware.Context, handler GetSpeakersHandler) *GetSpeakers

NewGetSpeakers creates a new http.Handler for the get speakers operation

func (*GetSpeakers) ServeHTTP

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

type GetSpeakersDefault

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

GetSpeakersDefault Unexpected error

swagger:response getSpeakersDefault

func NewGetSpeakersDefault

func NewGetSpeakersDefault(code int) *GetSpeakersDefault

NewGetSpeakersDefault creates GetSpeakersDefault with default headers values

func (*GetSpeakersDefault) SetStatusCode

func (o *GetSpeakersDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get speakers default response

func (*GetSpeakersDefault) WithStatusCode

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

WithStatusCode adds the status to the get speakers default response

func (*GetSpeakersDefault) WriteResponse

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

WriteResponse to the client

type GetSpeakersHandler

type GetSpeakersHandler interface {
	Handle(GetSpeakersParams) middleware.Responder
}

GetSpeakersHandler interface for that can handle valid get speakers params

type GetSpeakersHandlerFunc

type GetSpeakersHandlerFunc func(GetSpeakersParams) middleware.Responder

GetSpeakersHandlerFunc turns a function with the right signature into a get speakers handler

func (GetSpeakersHandlerFunc) Handle

Handle executing the request and returning a response

type GetSpeakersNotFound

type GetSpeakersNotFound struct {
}

GetSpeakersNotFound Speaker not found

swagger:response getSpeakersNotFound

func NewGetSpeakersNotFound

func NewGetSpeakersNotFound() *GetSpeakersNotFound

NewGetSpeakersNotFound creates GetSpeakersNotFound with default headers values

func (*GetSpeakersNotFound) WriteResponse

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

WriteResponse to the client

type GetSpeakersOK

type GetSpeakersOK struct {

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

GetSpeakersOK Success

swagger:response getSpeakersOK

func NewGetSpeakersOK

func NewGetSpeakersOK() *GetSpeakersOK

NewGetSpeakersOK creates GetSpeakersOK with default headers values

func (*GetSpeakersOK) SetPayload

func (o *GetSpeakersOK) SetPayload(payload []*models.Speaker)

SetPayload sets the payload to the get speakers o k response

func (*GetSpeakersOK) WithPayload

func (o *GetSpeakersOK) WithPayload(payload []*models.Speaker) *GetSpeakersOK

WithPayload adds the payload to the get speakers o k response

func (*GetSpeakersOK) WriteResponse

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

WriteResponse to the client

type GetSpeakersParams

type GetSpeakersParams struct {

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

	/*The ID of the meetup to return.
	  Required: true
	  In: path
	*/
	MeetupID string
}

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

swagger:parameters getSpeakers

func NewGetSpeakersParams

func NewGetSpeakersParams() GetSpeakersParams

NewGetSpeakersParams creates a new GetSpeakersParams object

There are no default values defined in the spec.

func (*GetSpeakersParams) BindRequest

func (o *GetSpeakersParams) 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 NewGetSpeakersParams() beforehand.

type GetSpeakersURL

type GetSpeakersURL struct {
	MeetupID string
	// contains filtered or unexported fields
}

GetSpeakersURL generates an URL for the get speakers operation

func (*GetSpeakersURL) Build

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

Build a url path and query string

func (*GetSpeakersURL) BuildFull

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

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

func (*GetSpeakersURL) Must

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

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

func (*GetSpeakersURL) SetBasePath

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

func (o *GetSpeakersURL) String() string

String returns the string representation of the path with query string

func (*GetSpeakersURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetSpeakersURL) WithBasePath

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

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 PatchSpeaker

type PatchSpeaker struct {
	Context *middleware.Context
	Handler PatchSpeakerHandler
}
PatchSpeaker swagger:route PATCH /meetups/{meetup_id}/speakers/{speaker_id} speaker patchSpeaker

Patch speaker data.

update speaker

func NewPatchSpeaker

func NewPatchSpeaker(ctx *middleware.Context, handler PatchSpeakerHandler) *PatchSpeaker

NewPatchSpeaker creates a new http.Handler for the patch speaker operation

func (*PatchSpeaker) ServeHTTP

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

type PatchSpeakerDefault

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

PatchSpeakerDefault Unexpected error

swagger:response patchSpeakerDefault

func NewPatchSpeakerDefault

func NewPatchSpeakerDefault(code int) *PatchSpeakerDefault

NewPatchSpeakerDefault creates PatchSpeakerDefault with default headers values

func (*PatchSpeakerDefault) SetStatusCode

func (o *PatchSpeakerDefault) SetStatusCode(code int)

SetStatusCode sets the status to the patch speaker default response

func (*PatchSpeakerDefault) WithStatusCode

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

WithStatusCode adds the status to the patch speaker default response

func (*PatchSpeakerDefault) WriteResponse

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

WriteResponse to the client

type PatchSpeakerHandler

type PatchSpeakerHandler interface {
	Handle(PatchSpeakerParams) middleware.Responder
}

PatchSpeakerHandler interface for that can handle valid patch speaker params

type PatchSpeakerHandlerFunc

type PatchSpeakerHandlerFunc func(PatchSpeakerParams) middleware.Responder

PatchSpeakerHandlerFunc turns a function with the right signature into a patch speaker handler

func (PatchSpeakerHandlerFunc) Handle

Handle executing the request and returning a response

type PatchSpeakerNoContent

type PatchSpeakerNoContent struct {
}

PatchSpeakerNoContent updated

swagger:response patchSpeakerNoContent

func NewPatchSpeakerNoContent

func NewPatchSpeakerNoContent() *PatchSpeakerNoContent

NewPatchSpeakerNoContent creates PatchSpeakerNoContent with default headers values

func (*PatchSpeakerNoContent) WriteResponse

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

WriteResponse to the client

type PatchSpeakerParams

type PatchSpeakerParams struct {

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

	/*The ID of the meetup.
	  Required: true
	  In: path
	*/
	MeetupID string
	/*The speaker to create.
	  Required: true
	  In: body
	*/
	Speaker *models.Speaker
	/*The ID of the speaker.
	  Required: true
	  In: path
	*/
	SpeakerID string
}

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

swagger:parameters patchSpeaker

func NewPatchSpeakerParams

func NewPatchSpeakerParams() PatchSpeakerParams

NewPatchSpeakerParams creates a new PatchSpeakerParams object

There are no default values defined in the spec.

func (*PatchSpeakerParams) BindRequest

func (o *PatchSpeakerParams) 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 NewPatchSpeakerParams() beforehand.

type PatchSpeakerURL

type PatchSpeakerURL struct {
	MeetupID  string
	SpeakerID string
	// contains filtered or unexported fields
}

PatchSpeakerURL generates an URL for the patch speaker operation

func (*PatchSpeakerURL) Build

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

Build a url path and query string

func (*PatchSpeakerURL) BuildFull

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

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

func (*PatchSpeakerURL) Must

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

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

func (*PatchSpeakerURL) SetBasePath

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

func (o *PatchSpeakerURL) String() string

String returns the string representation of the path with query string

func (*PatchSpeakerURL) StringFull

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

StringFull returns the string representation of a complete url

func (*PatchSpeakerURL) WithBasePath

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

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 PutSpeaker

type PutSpeaker struct {
	Context *middleware.Context
	Handler PutSpeakerHandler
}
PutSpeaker swagger:route PUT /meetups/{meetup_id}/speakers speaker putSpeaker

Put speaker data.

create speaker

func NewPutSpeaker

func NewPutSpeaker(ctx *middleware.Context, handler PutSpeakerHandler) *PutSpeaker

NewPutSpeaker creates a new http.Handler for the put speaker operation

func (*PutSpeaker) ServeHTTP

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

type PutSpeakerDefault

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

PutSpeakerDefault Unexpected error

swagger:response putSpeakerDefault

func NewPutSpeakerDefault

func NewPutSpeakerDefault(code int) *PutSpeakerDefault

NewPutSpeakerDefault creates PutSpeakerDefault with default headers values

func (*PutSpeakerDefault) SetStatusCode

func (o *PutSpeakerDefault) SetStatusCode(code int)

SetStatusCode sets the status to the put speaker default response

func (*PutSpeakerDefault) WithStatusCode

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

WithStatusCode adds the status to the put speaker default response

func (*PutSpeakerDefault) WriteResponse

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

WriteResponse to the client

type PutSpeakerHandler

type PutSpeakerHandler interface {
	Handle(PutSpeakerParams) middleware.Responder
}

PutSpeakerHandler interface for that can handle valid put speaker params

type PutSpeakerHandlerFunc

type PutSpeakerHandlerFunc func(PutSpeakerParams) middleware.Responder

PutSpeakerHandlerFunc turns a function with the right signature into a put speaker handler

func (PutSpeakerHandlerFunc) Handle

Handle executing the request and returning a response

type PutSpeakerNotFound

type PutSpeakerNotFound struct {
}

PutSpeakerNotFound Meetup not found

swagger:response putSpeakerNotFound

func NewPutSpeakerNotFound

func NewPutSpeakerNotFound() *PutSpeakerNotFound

NewPutSpeakerNotFound creates PutSpeakerNotFound with default headers values

func (*PutSpeakerNotFound) WriteResponse

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

WriteResponse to the client

type PutSpeakerOK

type PutSpeakerOK struct {

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

PutSpeakerOK object uuid & status

swagger:response putSpeakerOK

func NewPutSpeakerOK

func NewPutSpeakerOK() *PutSpeakerOK

NewPutSpeakerOK creates PutSpeakerOK with default headers values

func (*PutSpeakerOK) SetPayload

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

SetPayload sets the payload to the put speaker o k response

func (*PutSpeakerOK) WithPayload

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

WithPayload adds the payload to the put speaker o k response

func (*PutSpeakerOK) WriteResponse

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

WriteResponse to the client

type PutSpeakerParams

type PutSpeakerParams struct {

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

	/*The ID of the meetup.
	  Required: true
	  In: path
	*/
	MeetupID string
	/*The speaker to create.
	  Required: true
	  In: body
	*/
	Speaker *models.Speaker
}

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

swagger:parameters putSpeaker

func NewPutSpeakerParams

func NewPutSpeakerParams() PutSpeakerParams

NewPutSpeakerParams creates a new PutSpeakerParams object

There are no default values defined in the spec.

func (*PutSpeakerParams) BindRequest

func (o *PutSpeakerParams) 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 NewPutSpeakerParams() beforehand.

type PutSpeakerURL

type PutSpeakerURL struct {
	MeetupID string
	// contains filtered or unexported fields
}

PutSpeakerURL generates an URL for the put speaker operation

func (*PutSpeakerURL) Build

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

Build a url path and query string

func (*PutSpeakerURL) BuildFull

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

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

func (*PutSpeakerURL) Must

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

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

func (*PutSpeakerURL) SetBasePath

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

func (o *PutSpeakerURL) String() string

String returns the string representation of the path with query string

func (*PutSpeakerURL) StringFull

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

StringFull returns the string representation of a complete url

func (*PutSpeakerURL) WithBasePath

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

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