operations

package
v0.0.0-...-b618969 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2016 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JiliAPI

type JiliAPI struct {

	// UrlformConsumer registers a consumer for a "application/x-www-form-urlencoded" mime type
	UrlformConsumer runtime.Consumer

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

	// GameDeleteGameByUUIDHandler sets the operation handler for the delete game by UUID operation
	GameDeleteGameByUUIDHandler game.DeleteGameByUUIDHandler
	// LeagueDeleteLeagueByUUIDHandler sets the operation handler for the delete league by UUID operation
	LeagueDeleteLeagueByUUIDHandler league.DeleteLeagueByUUIDHandler
	// SeasonDeleteLeagueSeasonByUUIDHandler sets the operation handler for the delete league season by UUID operation
	SeasonDeleteLeagueSeasonByUUIDHandler season.DeleteLeagueSeasonByUUIDHandler
	// GameGetGameByUUIDHandler sets the operation handler for the get game by UUID operation
	GameGetGameByUUIDHandler game.GetGameByUUIDHandler
	// GameGetGamesHandler sets the operation handler for the get games operation
	GameGetGamesHandler game.GetGamesHandler
	// LeagueGetLeagueByUUIDHandler sets the operation handler for the get league by UUID operation
	LeagueGetLeagueByUUIDHandler league.GetLeagueByUUIDHandler
	// SeasonGetLeagueSeasonByUUIDHandler sets the operation handler for the get league season by UUID operation
	SeasonGetLeagueSeasonByUUIDHandler season.GetLeagueSeasonByUUIDHandler
	// SeasonGetLeagueSeasonsHandler sets the operation handler for the get league seasons operation
	SeasonGetLeagueSeasonsHandler season.GetLeagueSeasonsHandler
	// LeagueGetLeaguesHandler sets the operation handler for the get leagues operation
	LeagueGetLeaguesHandler league.GetLeaguesHandler
	// GamerPostGamersHandler sets the operation handler for the post gamers operation
	GamerPostGamersHandler gamer.PostGamersHandler
	// GamePostGamesHandler sets the operation handler for the post games operation
	GamePostGamesHandler game.PostGamesHandler
	// SeasonPostLeagueSeasonHandler sets the operation handler for the post league season operation
	SeasonPostLeagueSeasonHandler season.PostLeagueSeasonHandler
	// LeaguePostLeaguesHandler sets the operation handler for the post leagues operation
	LeaguePostLeaguesHandler league.PostLeaguesHandler
	// GamePutGameByUUIDHandler sets the operation handler for the put game by UUID operation
	GamePutGameByUUIDHandler game.PutGameByUUIDHandler
	// LeaguePutLeagueByUUIDHandler sets the operation handler for the put league by UUID operation
	LeaguePutLeagueByUUIDHandler league.PutLeagueByUUIDHandler
	// SeasonPutLeagueSeasonByUUIDHandler sets the operation handler for the put league season by UUID operation
	SeasonPutLeagueSeasonByUUIDHandler season.PutLeagueSeasonByUUIDHandler

	// 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)

	// ServerShutdown is called when the HTTP(S) server is shut down and done
	// handling all active connections and does not accept connections any more
	ServerShutdown func()

	// Custom command line argument groups with their descriptions
	CommandLineOptionsGroups []swag.CommandLineOptionsGroup

	// User defined logger function.
	Logger func(string, ...interface{})
	// contains filtered or unexported fields
}

JiliAPI 集历是一款赛事赛程日历APP,提供最新最精准的赛事直播日历,支持一键导入系统日历,不再错过任何一场喜欢的比赛,更不用忍受APP广告带来的痛苦

func NewJiliAPI

func NewJiliAPI(spec *loads.Document) *JiliAPI

NewJiliAPI creates a new Jili instance

func (*JiliAPI) AuthenticatorsFor

func (o *JiliAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator

AuthenticatorsFor gets the authenticators for the specified security schemes

func (*JiliAPI) ConsumersFor

func (o *JiliAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer

ConsumersFor gets the consumers for the specified media types

func (*JiliAPI) DefaultConsumes

func (o *JiliAPI) DefaultConsumes() string

DefaultConsumes returns the default consumes media type

func (*JiliAPI) DefaultProduces

func (o *JiliAPI) DefaultProduces() string

DefaultProduces returns the default produces media type

func (*JiliAPI) Formats

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

Formats returns the registered string formats

func (*JiliAPI) HandlerFor

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

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

func (*JiliAPI) ProducersFor

func (o *JiliAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer

ProducersFor gets the producers for the specified media types

func (*JiliAPI) RegisterFormat

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

RegisterFormat registers a custom format validator

func (*JiliAPI) Serve

func (o *JiliAPI) 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 (*JiliAPI) ServeErrorFor

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

ServeErrorFor gets a error handler for a given operation id

func (*JiliAPI) SetDefaultConsumes

func (o *JiliAPI) SetDefaultConsumes(mediaType string)

SetDefaultConsumes returns the default consumes media type

func (*JiliAPI) SetDefaultProduces

func (o *JiliAPI) SetDefaultProduces(mediaType string)

SetDefaultProduces sets the default produces media type

func (*JiliAPI) SetSpec

func (o *JiliAPI) SetSpec(spec *loads.Document)

SetSpec sets a spec that will be served for the clients.

func (*JiliAPI) Validate

func (o *JiliAPI) Validate() error

Validate validates the registrations in the JiliAPI

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL