Documentation
¶
Index ¶
- func AuditCount(ctx context.Context, database *sql.DB) (int, error)
- func SeedRoster(ctx context.Context, database *sql.DB) error
- type MatchServer
- func (s *MatchServer) CreateMatch(ctx context.Context, req *connect.Request[pb.CreateMatchRequest]) (*connect.Response[pb.Match], error)
- func (s *MatchServer) DeleteMatch(ctx context.Context, req *connect.Request[pb.DeleteMatchRequest]) (*connect.Response[emptypb.Empty], error)
- func (s *MatchServer) GetMatchByID(ctx context.Context, req *connect.Request[pb.GetMatchByIDRequest]) (*connect.Response[pb.Match], error)
- func (s *MatchServer) ListAllMatch(ctx context.Context, req *connect.Request[pb.ListAllMatchRequest]) (*connect.Response[pb.ListAllMatchResponse], error)
- type PlayerServer
- func (s *PlayerServer) GetPlayerByName(ctx context.Context, req *connect.Request[pb.GetPlayerByNameRequest]) (*connect.Response[pb.Player], error)
- func (s *PlayerServer) ListAllPlayer(ctx context.Context, req *connect.Request[pb.ListAllPlayerRequest]) (*connect.Response[pb.ListAllPlayerResponse], error)
- type StandingServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuditCount ¶
AuditCount reports how many audit rows are stored, used by the /audit endpoint
Types ¶
type MatchServer ¶
type MatchServer struct {
// contains filtered or unexported fields
}
func NewMatchServiceServer ¶
func NewMatchServiceServer(db *sql.DB) *MatchServer
func (*MatchServer) CreateMatch ¶ added in v0.0.5
func (*MatchServer) DeleteMatch ¶ added in v0.0.5
func (*MatchServer) GetMatchByID ¶ added in v0.0.5
func (*MatchServer) ListAllMatch ¶ added in v0.0.5
func (s *MatchServer) ListAllMatch( ctx context.Context, req *connect.Request[pb.ListAllMatchRequest], ) (*connect.Response[pb.ListAllMatchResponse], error)
type PlayerServer ¶ added in v0.0.3
type PlayerServer struct {
// contains filtered or unexported fields
}
func NewPlayerServiceServer ¶ added in v0.0.3
func NewPlayerServiceServer(db *sql.DB) *PlayerServer
func (*PlayerServer) GetPlayerByName ¶ added in v0.0.5
func (s *PlayerServer) GetPlayerByName( ctx context.Context, req *connect.Request[pb.GetPlayerByNameRequest], ) (*connect.Response[pb.Player], error)
GetByName reads one roster entry, index.Primary("name") makes the name the key, and the read only contract gives no write rpc
func (*PlayerServer) ListAllPlayer ¶ added in v0.0.5
func (s *PlayerServer) ListAllPlayer( ctx context.Context, req *connect.Request[pb.ListAllPlayerRequest], ) (*connect.Response[pb.ListAllPlayerResponse], error)
type StandingServer ¶
type StandingServer struct {
// contains filtered or unexported fields
}
func NewStandingServiceServer ¶
func NewStandingServiceServer(db *sql.DB) *StandingServer
func (*StandingServer) ListAllStanding ¶ added in v0.0.5
func (s *StandingServer) ListAllStanding( ctx context.Context, req *connect.Request[pb.ListAllStandingRequest], ) (*connect.Response[pb.ListAllStandingResponse], error)
ListAll counts the standings from matches, Standing has no table to read from
Click to show internal directories.
Click to hide internal directories.