server

package
v0.0.0-...-a3a9e33 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	pb.UnimplementedFortedServer
	// contains filtered or unexported fields
}

func NewServer

func NewServer(cfg *config.Config, log *zap.SugaredLogger, handler *handler.Handler) *Server

func (*Server) CheckLine

func (s *Server) CheckLine(ctx context.Context, req *pb.CheckLineRequest) (*pb.CheckLineResponse, error)

func (*Server) Close

func (s *Server) Close()

func (*Server) GetResults

func (s *Server) GetResults(ctx context.Context, req *pb.GetResultsRequest) (*pb.GetResultsResponse, error)

func (*Server) Ping

func (s *Server) Ping(ctx context.Context, req *pb.PingRequest) (*pb.PingResponse, error)

func (*Server) PlaceBet

func (s *Server) PlaceBet(ctx context.Context, req *pb.PlaceBetRequest) (*pb.PlaceBetResponse, error)

func (*Server) ReleaseCheck

func (s *Server) ReleaseCheck(ctx context.Context, req *pb.ReleaseCheckRequest) (*pb.ReleaseCheckResponse, error)

func (*Server) Serve

func (s *Server) Serve() error

Jump to

Keyboard shortcuts

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