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 CreatePlayerReply

type CreatePlayerReply struct {
	Ops string
	Err error
}

CreatePlayerReply holds the response paramas for CeeatePLayer

type CreatePlayerRequest

type CreatePlayerRequest struct {
	NewPlayer *service.Player
}

CreatePlayerRequest holds the request paramas for CreatePlayer

type DeletePlayerReply

type DeletePlayerReply struct {
	Ops string
	Err error
}

DeletePlayerReply holds the response paramas for DeletePLayer

type DeletePlayerRequest

type DeletePlayerRequest struct {
	DelPlayer string
	TeamName  string
}

DeletePlayerRequest holds the request paramas for DeletePlayer

type Endpoints

type Endpoints struct {
	GetTableEndpoint               endpoint.Endpoint
	GetTeamBestPlayersEndpoint     endpoint.Endpoint
	GetPositionBestPlayersEndpoint endpoint.Endpoint
	CreatePlayerEndpoint           endpoint.Endpoint
	DeletePlayerEndpoint           endpoint.Endpoint
	TransferPlayerEndpoint         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

type TransferPlayerReply

type TransferPlayerReply struct {
	Ops string
	Err error
}

TransferPlayerReply holds the response paramas for TransferPLayer

type TransferPlayerRequest

type TransferPlayerRequest struct {
	PlayerName string
	TeamFrom   string
	TeamTo     string
}

TransferPlayerRequest holds the request paramas for TransferPlayer

Jump to

Keyboard shortcuts

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