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 Endpoints

type Endpoints struct {
	ListTableEndpoint           endpoint.Endpoint
	ListTeamPlayersEndpoint     endpoint.Endpoint
	ListPositionPlayersEndpoint endpoint.Endpoint
}

Endpoints holds all Stats Service enpoints

func MakeStatsEndpoints

func MakeStatsEndpoints(s service.StatsService) Endpoints

MakeStatsEndpoints initialize all service Endpoints

type PositionReply

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

PositionReply holds the response paramas for ListPositionPlayers

type PositionRequest

type PositionRequest struct {
	Position string
}

PositionRequest holds the request paramas for ListPositionPlayers

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 TeamReply

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

TeamReply holds the response params for ListTeamPlayers

type TeamRequest

type TeamRequest struct {
	TeamName string
}

TeamRequest holds the request params for ListTeamPLayers

Jump to

Keyboard shortcuts

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