operations

package
Version: v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2015 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventListAPI

type EventListAPI struct {

	// JSONConsumer registers a consumer for a "application/json" mime type
	JSONConsumer httpkit.Consumer

	// JSONProducer registers a producer for a "application/json" mime type
	JSONProducer httpkit.Producer

	// EventsDeleteEventByIDHandler sets the operation handler for the delete event by id operation
	EventsDeleteEventByIDHandler events.DeleteEventByIDHandler
	// EventsGetEventByIDHandler sets the operation handler for the get event by id operation
	EventsGetEventByIDHandler events.GetEventByIDHandler
	// EventsGetEventsHandler sets the operation handler for the get events operation
	EventsGetEventsHandler events.GetEventsHandler
	// EventsPostEventHandler sets the operation handler for the post event operation
	EventsPostEventHandler events.PostEventHandler
	// EventsPutEventByIDHandler sets the operation handler for the put event by id operation
	EventsPutEventByIDHandler events.PutEventByIDHandler

	// ServeError is called when an error is received, there is a default handler
	// but you can set your own with this
	ServeError func(http.ResponseWriter, *http.Request, error)
	// contains filtered or unexported fields
}

EventListAPI AttendList service.

func NewEventListAPI

func NewEventListAPI(spec *spec.Document) *EventListAPI

NewEventListAPI creates a new EventList instance

func (*EventListAPI) AuthenticatorsFor

func (o *EventListAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]httpkit.Authenticator

AuthenticatorsFor gets the authenticators for the specified security schemes

func (*EventListAPI) ConsumersFor

func (o *EventListAPI) ConsumersFor(mediaTypes []string) map[string]httpkit.Consumer

ConsumersFor gets the consumers for the specified media types

func (*EventListAPI) DefaultConsumes

func (o *EventListAPI) DefaultConsumes() string

DefaultConsumes returns the default consumes media type

func (*EventListAPI) DefaultProduces

func (o *EventListAPI) DefaultProduces() string

DefaultProduces returns the default produces media type

func (*EventListAPI) Formats

func (o *EventListAPI) Formats() strfmt.Registry

Formats returns the registered string formats

func (*EventListAPI) HandlerFor

func (o *EventListAPI) HandlerFor(method, path string) (http.Handler, bool)

HandlerFor gets a http.Handler for the provided operation method and path

func (*EventListAPI) ProducersFor

func (o *EventListAPI) ProducersFor(mediaTypes []string) map[string]httpkit.Producer

ProducersFor gets the producers for the specified media types

func (*EventListAPI) RegisterFormat

func (o *EventListAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)

RegisterFormat registers a custom format validator

func (*EventListAPI) Serve

func (o *EventListAPI) Serve(builder middleware.Builder) http.Handler

Serve creates a http handler to serve the API over HTTP can be used directly in http.ListenAndServe(":8000", api.Serve(nil))

func (*EventListAPI) ServeErrorFor

func (o *EventListAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)

ServeErrorFor gets a error handler for a given operation id

func (*EventListAPI) SetDefaultConsumes

func (o *EventListAPI) SetDefaultConsumes(mediaType string)

SetDefaultConsumes returns the default consumes media type

func (*EventListAPI) SetDefaultProduces

func (o *EventListAPI) SetDefaultProduces(mediaType string)

SetDefaultProduces sets the default produces media type

func (*EventListAPI) Validate

func (o *EventListAPI) Validate() error

Validate validates the registrations in the EventListAPI

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL