Documentation
¶
Index ¶
- type JiliAPI
- func (o *JiliAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator
- func (o *JiliAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer
- func (o *JiliAPI) DefaultConsumes() string
- func (o *JiliAPI) DefaultProduces() string
- func (o *JiliAPI) Formats() strfmt.Registry
- func (o *JiliAPI) HandlerFor(method, path string) (http.Handler, bool)
- func (o *JiliAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer
- func (o *JiliAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)
- func (o *JiliAPI) Serve(builder middleware.Builder) http.Handler
- func (o *JiliAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)
- func (o *JiliAPI) SetDefaultConsumes(mediaType string)
- func (o *JiliAPI) SetDefaultProduces(mediaType string)
- func (o *JiliAPI) SetSpec(spec *loads.Document)
- func (o *JiliAPI) Validate() error
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 ¶
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 ¶
ConsumersFor gets the consumers for the specified media types
func (*JiliAPI) DefaultConsumes ¶
DefaultConsumes returns the default consumes media type
func (*JiliAPI) DefaultProduces ¶
DefaultProduces returns the default produces media type
func (*JiliAPI) HandlerFor ¶
HandlerFor gets a http.Handler for the provided operation method and path
func (*JiliAPI) ProducersFor ¶
ProducersFor gets the producers for the specified media types
func (*JiliAPI) RegisterFormat ¶
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 ¶
ServeErrorFor gets a error handler for a given operation id
func (*JiliAPI) SetDefaultConsumes ¶
SetDefaultConsumes returns the default consumes media type
func (*JiliAPI) SetDefaultProduces ¶
SetDefaultProduces sets the default produces media type