Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGRPCTransport ¶
func NewGRPCTransport(ep *Endpoints, logger log.Logger) pb.PlayersServer
NewGRPCTransport returns a handler for GRPC transport
Types ¶
type Endpoints ¶
type Endpoints struct {
// contains filtered or unexported fields
}
Endpoints contains all the endpoints for the players service
type Service ¶
type Service interface { ListPlayers(context.Context, string) ([]models.Player, error) GetPlayer(context.Context, int) (*models.Player, error) SavePlayer(context.Context, *models.Player) (*models.Player, bool, error) DeletePlayer(context.Context, int) error }
Service defines the functions for a players service
func NewLoggingService ¶
NewLoggingService returns a new logging service
func NewService ¶
NewService returns a new service for interacting with players
Click to show internal directories.
Click to hide internal directories.