endpoints

package
v0.0.0-...-ed93953 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BestPlayersReply

type BestPlayersReply struct {
	Players []*service.Player
	Err     error
}

BestPlayersReply holds the response paramas for GetTeamBestPlayers

type BestPlayersRequest

type BestPlayersRequest struct {
	Team string
}

BestPlayersRequest holds the request paramas for GetTeamBestPlayers

type BestPositionReply

type BestPositionReply struct {
	Players []*service.Player
	Err     error
}

BestPositionReply holds the response paramas for GetBestDefenders

type BestPositionRequest

type BestPositionRequest struct {
	Position string `json:"position"`
}

BestPositionRequest holds the request paramas for GetBestDefenders

type Endpoints

type Endpoints struct {
	GetTableEndpoint               endpoint.Endpoint
	GetTeamBestPlayersEndpoint     endpoint.Endpoint
	GetPositionBestPlayersEndpoint endpoint.Endpoint
}

Endpoints holds all Stats Service enpoints

func MakeSiteEndpoints

func MakeSiteEndpoints(s service.SiteService) Endpoints

MakeSiteEndpoints initialize all service Endpoints

type TableReply

type TableReply struct {
	Teams []*service.Table `json:"teams"`
	Err   error            `json:"err"`
}

TableReply holds the response params for ListTables

type TableRequest

type TableRequest struct {
	League string
}

TableRequest holds the request params for ListTables

Jump to

Keyboard shortcuts

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