meetup

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

GetMeetupNotFoundCode is the HTTP code returned for type GetMeetupNotFound

View Source
const GetMeetupOKCode int = 200

GetMeetupOKCode is the HTTP code returned for type GetMeetupOK

View Source
const GetMeetupsNotFoundCode int = 404

GetMeetupsNotFoundCode is the HTTP code returned for type GetMeetupsNotFound

View Source
const GetMeetupsOKCode int = 200

GetMeetupsOKCode is the HTTP code returned for type GetMeetupsOK

View Source
const PatchMeetupNoContentCode int = 204

PatchMeetupNoContentCode is the HTTP code returned for type PatchMeetupNoContent

View Source
const PutMeetupOKCode int = 200

PutMeetupOKCode is the HTTP code returned for type PutMeetupOK

Variables

This section is empty.

Functions

This section is empty.

Types

type GetMeetup

type GetMeetup struct {
	Context *middleware.Context
	Handler GetMeetupHandler
}
GetMeetup swagger:route GET /meetups/{meetup_id} meetup getMeetup

Returns a meetup.

A meetup object in json

func NewGetMeetup

func NewGetMeetup(ctx *middleware.Context, handler GetMeetupHandler) *GetMeetup

NewGetMeetup creates a new http.Handler for the get meetup operation

func (*GetMeetup) ServeHTTP

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

type GetMeetupDefault

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

GetMeetupDefault Unexpected error

swagger:response getMeetupDefault

func NewGetMeetupDefault

func NewGetMeetupDefault(code int) *GetMeetupDefault

NewGetMeetupDefault creates GetMeetupDefault with default headers values

func (*GetMeetupDefault) SetStatusCode

func (o *GetMeetupDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get meetup default response

func (*GetMeetupDefault) WithStatusCode

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

WithStatusCode adds the status to the get meetup default response

func (*GetMeetupDefault) WriteResponse

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

WriteResponse to the client

type GetMeetupHandler

type GetMeetupHandler interface {
	Handle(GetMeetupParams) middleware.Responder
}

GetMeetupHandler interface for that can handle valid get meetup params

type GetMeetupHandlerFunc

type GetMeetupHandlerFunc func(GetMeetupParams) middleware.Responder

GetMeetupHandlerFunc turns a function with the right signature into a get meetup handler

func (GetMeetupHandlerFunc) Handle

Handle executing the request and returning a response

type GetMeetupNotFound

type GetMeetupNotFound struct {
}

GetMeetupNotFound Meetup not found

swagger:response getMeetupNotFound

func NewGetMeetupNotFound

func NewGetMeetupNotFound() *GetMeetupNotFound

NewGetMeetupNotFound creates GetMeetupNotFound with default headers values

func (*GetMeetupNotFound) WriteResponse

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

WriteResponse to the client

type GetMeetupOK

type GetMeetupOK struct {

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

GetMeetupOK Success

swagger:response getMeetupOK

func NewGetMeetupOK

func NewGetMeetupOK() *GetMeetupOK

NewGetMeetupOK creates GetMeetupOK with default headers values

func (*GetMeetupOK) SetPayload

func (o *GetMeetupOK) SetPayload(payload *models.Meetup)

SetPayload sets the payload to the get meetup o k response

func (*GetMeetupOK) WithPayload

func (o *GetMeetupOK) WithPayload(payload *models.Meetup) *GetMeetupOK

WithPayload adds the payload to the get meetup o k response

func (*GetMeetupOK) WriteResponse

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

WriteResponse to the client

type GetMeetupParams

type GetMeetupParams struct {

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

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

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

swagger:parameters getMeetup

func NewGetMeetupParams

func NewGetMeetupParams() GetMeetupParams

NewGetMeetupParams creates a new GetMeetupParams object

There are no default values defined in the spec.

func (*GetMeetupParams) BindRequest

func (o *GetMeetupParams) 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 NewGetMeetupParams() beforehand.

type GetMeetupURL

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

GetMeetupURL generates an URL for the get meetup operation

func (*GetMeetupURL) Build

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

Build a url path and query string

func (*GetMeetupURL) BuildFull

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

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

func (*GetMeetupURL) Must

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

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

func (*GetMeetupURL) SetBasePath

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

func (o *GetMeetupURL) String() string

String returns the string representation of the path with query string

func (*GetMeetupURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetMeetupURL) WithBasePath

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

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 GetMeetups

type GetMeetups struct {
	Context *middleware.Context
	Handler GetMeetupsHandler
}
GetMeetups swagger:route GET /meetups meetup getMeetups

Returns a list of meetups.

A JSON array of meetups

func NewGetMeetups

func NewGetMeetups(ctx *middleware.Context, handler GetMeetupsHandler) *GetMeetups

NewGetMeetups creates a new http.Handler for the get meetups operation

func (*GetMeetups) ServeHTTP

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

type GetMeetupsDefault

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

GetMeetupsDefault Unexpected error

swagger:response getMeetupsDefault

func NewGetMeetupsDefault

func NewGetMeetupsDefault(code int) *GetMeetupsDefault

NewGetMeetupsDefault creates GetMeetupsDefault with default headers values

func (*GetMeetupsDefault) SetStatusCode

func (o *GetMeetupsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get meetups default response

func (*GetMeetupsDefault) WithStatusCode

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

WithStatusCode adds the status to the get meetups default response

func (*GetMeetupsDefault) WriteResponse

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

WriteResponse to the client

type GetMeetupsHandler

type GetMeetupsHandler interface {
	Handle(GetMeetupsParams) middleware.Responder
}

GetMeetupsHandler interface for that can handle valid get meetups params

type GetMeetupsHandlerFunc

type GetMeetupsHandlerFunc func(GetMeetupsParams) middleware.Responder

GetMeetupsHandlerFunc turns a function with the right signature into a get meetups handler

func (GetMeetupsHandlerFunc) Handle

Handle executing the request and returning a response

type GetMeetupsNotFound

type GetMeetupsNotFound struct {
}

GetMeetupsNotFound Meetups not found

swagger:response getMeetupsNotFound

func NewGetMeetupsNotFound

func NewGetMeetupsNotFound() *GetMeetupsNotFound

NewGetMeetupsNotFound creates GetMeetupsNotFound with default headers values

func (*GetMeetupsNotFound) WriteResponse

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

WriteResponse to the client

type GetMeetupsOK

type GetMeetupsOK struct {

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

GetMeetupsOK A JSON array of meetups

swagger:response getMeetupsOK

func NewGetMeetupsOK

func NewGetMeetupsOK() *GetMeetupsOK

NewGetMeetupsOK creates GetMeetupsOK with default headers values

func (*GetMeetupsOK) SetPayload

func (o *GetMeetupsOK) SetPayload(payload []*models.Meetup)

SetPayload sets the payload to the get meetups o k response

func (*GetMeetupsOK) WithPayload

func (o *GetMeetupsOK) WithPayload(payload []*models.Meetup) *GetMeetupsOK

WithPayload adds the payload to the get meetups o k response

func (*GetMeetupsOK) WriteResponse

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

WriteResponse to the client

type GetMeetupsParams

type GetMeetupsParams struct {

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

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

swagger:parameters getMeetups

func NewGetMeetupsParams

func NewGetMeetupsParams() GetMeetupsParams

NewGetMeetupsParams creates a new GetMeetupsParams object

There are no default values defined in the spec.

func (*GetMeetupsParams) BindRequest

func (o *GetMeetupsParams) 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 NewGetMeetupsParams() beforehand.

type GetMeetupsURL

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

GetMeetupsURL generates an URL for the get meetups operation

func (*GetMeetupsURL) Build

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

Build a url path and query string

func (*GetMeetupsURL) BuildFull

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

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

func (*GetMeetupsURL) Must

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

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

func (*GetMeetupsURL) SetBasePath

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

func (o *GetMeetupsURL) String() string

String returns the string representation of the path with query string

func (*GetMeetupsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetMeetupsURL) WithBasePath

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

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 PatchMeetup

type PatchMeetup struct {
	Context *middleware.Context
	Handler PatchMeetupHandler
}
PatchMeetup swagger:route PATCH /meetups/{meetup_id} meetup patchMeetup

Patch meetup data.

update meetup

func NewPatchMeetup

func NewPatchMeetup(ctx *middleware.Context, handler PatchMeetupHandler) *PatchMeetup

NewPatchMeetup creates a new http.Handler for the patch meetup operation

func (*PatchMeetup) ServeHTTP

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

type PatchMeetupDefault

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

PatchMeetupDefault Unexpected error

swagger:response patchMeetupDefault

func NewPatchMeetupDefault

func NewPatchMeetupDefault(code int) *PatchMeetupDefault

NewPatchMeetupDefault creates PatchMeetupDefault with default headers values

func (*PatchMeetupDefault) SetStatusCode

func (o *PatchMeetupDefault) SetStatusCode(code int)

SetStatusCode sets the status to the patch meetup default response

func (*PatchMeetupDefault) WithStatusCode

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

WithStatusCode adds the status to the patch meetup default response

func (*PatchMeetupDefault) WriteResponse

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

WriteResponse to the client

type PatchMeetupHandler

type PatchMeetupHandler interface {
	Handle(PatchMeetupParams) middleware.Responder
}

PatchMeetupHandler interface for that can handle valid patch meetup params

type PatchMeetupHandlerFunc

type PatchMeetupHandlerFunc func(PatchMeetupParams) middleware.Responder

PatchMeetupHandlerFunc turns a function with the right signature into a patch meetup handler

func (PatchMeetupHandlerFunc) Handle

Handle executing the request and returning a response

type PatchMeetupNoContent

type PatchMeetupNoContent struct {
}

PatchMeetupNoContent updated

swagger:response patchMeetupNoContent

func NewPatchMeetupNoContent

func NewPatchMeetupNoContent() *PatchMeetupNoContent

NewPatchMeetupNoContent creates PatchMeetupNoContent with default headers values

func (*PatchMeetupNoContent) WriteResponse

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

WriteResponse to the client

type PatchMeetupParams

type PatchMeetupParams struct {

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

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

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

swagger:parameters patchMeetup

func NewPatchMeetupParams

func NewPatchMeetupParams() PatchMeetupParams

NewPatchMeetupParams creates a new PatchMeetupParams object

There are no default values defined in the spec.

func (*PatchMeetupParams) BindRequest

func (o *PatchMeetupParams) 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 NewPatchMeetupParams() beforehand.

type PatchMeetupURL

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

PatchMeetupURL generates an URL for the patch meetup operation

func (*PatchMeetupURL) Build

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

Build a url path and query string

func (*PatchMeetupURL) BuildFull

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

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

func (*PatchMeetupURL) Must

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

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

func (*PatchMeetupURL) SetBasePath

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

func (o *PatchMeetupURL) String() string

String returns the string representation of the path with query string

func (*PatchMeetupURL) StringFull

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

StringFull returns the string representation of a complete url

func (*PatchMeetupURL) WithBasePath

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

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 PutMeetup

type PutMeetup struct {
	Context *middleware.Context
	Handler PutMeetupHandler
}
PutMeetup swagger:route PUT /meetups meetup putMeetup

Put meetup data.

create meetup

func NewPutMeetup

func NewPutMeetup(ctx *middleware.Context, handler PutMeetupHandler) *PutMeetup

NewPutMeetup creates a new http.Handler for the put meetup operation

func (*PutMeetup) ServeHTTP

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

type PutMeetupDefault

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

PutMeetupDefault Unexpected error

swagger:response putMeetupDefault

func NewPutMeetupDefault

func NewPutMeetupDefault(code int) *PutMeetupDefault

NewPutMeetupDefault creates PutMeetupDefault with default headers values

func (*PutMeetupDefault) SetStatusCode

func (o *PutMeetupDefault) SetStatusCode(code int)

SetStatusCode sets the status to the put meetup default response

func (*PutMeetupDefault) WithStatusCode

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

WithStatusCode adds the status to the put meetup default response

func (*PutMeetupDefault) WriteResponse

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

WriteResponse to the client

type PutMeetupHandler

type PutMeetupHandler interface {
	Handle(PutMeetupParams) middleware.Responder
}

PutMeetupHandler interface for that can handle valid put meetup params

type PutMeetupHandlerFunc

type PutMeetupHandlerFunc func(PutMeetupParams) middleware.Responder

PutMeetupHandlerFunc turns a function with the right signature into a put meetup handler

func (PutMeetupHandlerFunc) Handle

Handle executing the request and returning a response

type PutMeetupOK

type PutMeetupOK struct {

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

PutMeetupOK object uuid & status

swagger:response putMeetupOK

func NewPutMeetupOK

func NewPutMeetupOK() *PutMeetupOK

NewPutMeetupOK creates PutMeetupOK with default headers values

func (*PutMeetupOK) SetPayload

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

SetPayload sets the payload to the put meetup o k response

func (*PutMeetupOK) WithPayload

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

WithPayload adds the payload to the put meetup o k response

func (*PutMeetupOK) WriteResponse

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

WriteResponse to the client

type PutMeetupParams

type PutMeetupParams struct {

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

	/*The meetup to create.
	  Required: true
	  In: body
	*/
	Meetup *models.Meetup
}

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

swagger:parameters putMeetup

func NewPutMeetupParams

func NewPutMeetupParams() PutMeetupParams

NewPutMeetupParams creates a new PutMeetupParams object

There are no default values defined in the spec.

func (*PutMeetupParams) BindRequest

func (o *PutMeetupParams) 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 NewPutMeetupParams() beforehand.

type PutMeetupURL

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

PutMeetupURL generates an URL for the put meetup operation

func (*PutMeetupURL) Build

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

Build a url path and query string

func (*PutMeetupURL) BuildFull

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

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

func (*PutMeetupURL) Must

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

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

func (*PutMeetupURL) SetBasePath

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

func (o *PutMeetupURL) String() string

String returns the string representation of the path with query string

func (*PutMeetupURL) StringFull

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

StringFull returns the string representation of a complete url

func (*PutMeetupURL) WithBasePath

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

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