Documentation
¶
Index ¶
- type Handler
- func (h *Handler) CreateBet(ctx context.Context, req *gen.CreateBetRequest) (*gen.CreateBetResponse, error)
- func (h *Handler) CreateEvent(ctx context.Context, req *gen.CreateEventRequest) (*gen.CreateEventResponse, error)
- func (h *Handler) GetBets(ctx context.Context, req *gen.BetsRequest) (*gen.BetsResponse, error)
- func (h *Handler) GetEvents(ctx context.Context, req *gen.GetEventsRequest) (*gen.GetEventsResponse, error)
- func (h *Handler) HealthCheck(ctx context.Context, req *emptypb.Empty) (*gen.HealthResponse, error)
- func (h *Handler) SetResult(ctx context.Context, req *gen.FightResultRequest) (*gen.FightResultResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
gen.UnimplementedEventServiceServer
// contains filtered or unexported fields
}
Handler defines a Event gRPC handler.
func (*Handler) CreateBet ¶
func (h *Handler) CreateBet(ctx context.Context, req *gen.CreateBetRequest) (*gen.CreateBetResponse, error)
func (*Handler) CreateEvent ¶
func (h *Handler) CreateEvent(ctx context.Context, req *gen.CreateEventRequest) (*gen.CreateEventResponse, error)
func (*Handler) GetBets ¶
func (h *Handler) GetBets(ctx context.Context, req *gen.BetsRequest) (*gen.BetsResponse, error)
func (*Handler) GetEvents ¶
func (h *Handler) GetEvents(ctx context.Context, req *gen.GetEventsRequest) (*gen.GetEventsResponse, error)
func (*Handler) HealthCheck ¶
HealthCheck handles the gRPC request for checking the health status of the application. It delegates the call to the controller and converts the result into a protobuf response.
func (*Handler) SetResult ¶
func (h *Handler) SetResult(ctx context.Context, req *gen.FightResultRequest) (*gen.FightResultResponse, error)
Click to show internal directories.
Click to hide internal directories.