Documentation
¶
Index ¶
- Constants
- Variables
- func NewMatchServiceHandler(svc MatchServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- func NewPlayerServiceHandler(svc PlayerServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- func NewStandingServiceHandler(svc StandingServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- type CreateMatchRequest
- func (*CreateMatchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateMatchRequest) GetBlack() string
- func (x *CreateMatchRequest) GetMoves() int32
- func (x *CreateMatchRequest) GetOpening() string
- func (x *CreateMatchRequest) GetPlayedAt() *timestamppb.Timestamp
- func (x *CreateMatchRequest) GetResult() string
- func (x *CreateMatchRequest) GetWhite() string
- func (*CreateMatchRequest) ProtoMessage()
- func (x *CreateMatchRequest) ProtoReflect() protoreflect.Message
- func (x *CreateMatchRequest) Reset()
- func (x *CreateMatchRequest) String() string
- func (r *CreateMatchRequest) Validate() error
- type DeleteMatchRequest
- type GetMatchByIdRequest
- func (*GetMatchByIdRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetMatchByIdRequest) GetId() int32
- func (*GetMatchByIdRequest) ProtoMessage()
- func (x *GetMatchByIdRequest) ProtoReflect() protoreflect.Message
- func (x *GetMatchByIdRequest) Reset()
- func (x *GetMatchByIdRequest) String() string
- type GetPlayerByNameRequest
- func (*GetPlayerByNameRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetPlayerByNameRequest) GetName() string
- func (*GetPlayerByNameRequest) ProtoMessage()
- func (x *GetPlayerByNameRequest) ProtoReflect() protoreflect.Message
- func (x *GetPlayerByNameRequest) Reset()
- func (x *GetPlayerByNameRequest) String() string
- type ListAllMatchRequest
- type ListAllMatchResponse
- func (*ListAllMatchResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListAllMatchResponse) GetRows() []*Match
- func (*ListAllMatchResponse) ProtoMessage()
- func (x *ListAllMatchResponse) ProtoReflect() protoreflect.Message
- func (x *ListAllMatchResponse) Reset()
- func (x *ListAllMatchResponse) String() string
- type ListAllPlayerRequest
- type ListAllPlayerResponse
- func (*ListAllPlayerResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListAllPlayerResponse) GetRows() []*Player
- func (*ListAllPlayerResponse) ProtoMessage()
- func (x *ListAllPlayerResponse) ProtoReflect() protoreflect.Message
- func (x *ListAllPlayerResponse) Reset()
- func (x *ListAllPlayerResponse) String() string
- type ListAllStandingRequest
- type ListAllStandingResponse
- func (*ListAllStandingResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListAllStandingResponse) GetRows() []*Standing
- func (*ListAllStandingResponse) ProtoMessage()
- func (x *ListAllStandingResponse) ProtoReflect() protoreflect.Message
- func (x *ListAllStandingResponse) Reset()
- func (x *ListAllStandingResponse) String() string
- type Match
- func (*Match) Descriptor() ([]byte, []int)deprecated
- func (x *Match) GetBlack() string
- func (x *Match) GetCreatedAt() *timestamppb.Timestamp
- func (x *Match) GetId() int32
- func (x *Match) GetMoves() int32
- func (x *Match) GetOpening() string
- func (x *Match) GetPlayedAt() *timestamppb.Timestamp
- func (x *Match) GetResult() string
- func (x *Match) GetWhite() string
- func (*Match) ProtoMessage()
- func (x *Match) ProtoReflect() protoreflect.Message
- func (x *Match) Reset()
- func (x *Match) String() string
- type MatchServiceClient
- type MatchServiceHandler
- type Player
- func (*Player) Descriptor() ([]byte, []int)deprecated
- func (x *Player) GetJoinedAt() *timestamppb.Timestamp
- func (x *Player) GetName() string
- func (x *Player) GetRating() int32
- func (x *Player) GetTitle() string
- func (*Player) ProtoMessage()
- func (x *Player) ProtoReflect() protoreflect.Message
- func (x *Player) Reset()
- func (x *Player) String() string
- type PlayerServiceClient
- type PlayerServiceHandler
- type Standing
- func (*Standing) Descriptor() ([]byte, []int)deprecated
- func (x *Standing) GetDraws() int32
- func (x *Standing) GetId() int32
- func (x *Standing) GetLosses() int32
- func (x *Standing) GetPlayed() int32
- func (x *Standing) GetPlayer() string
- func (x *Standing) GetPoints() float64
- func (x *Standing) GetWins() int32
- func (*Standing) ProtoMessage()
- func (x *Standing) ProtoReflect() protoreflect.Message
- func (x *Standing) Reset()
- func (x *Standing) String() string
- type StandingServiceClient
- type StandingServiceHandler
- type UnimplementedMatchServiceHandler
- func (UnimplementedMatchServiceHandler) CreateMatch(context.Context, *connect.Request[CreateMatchRequest]) (*connect.Response[Match], error)
- func (UnimplementedMatchServiceHandler) DeleteMatch(context.Context, *connect.Request[DeleteMatchRequest]) (*connect.Response[emptypb.Empty], error)
- func (UnimplementedMatchServiceHandler) GetMatchById(context.Context, *connect.Request[GetMatchByIdRequest]) (*connect.Response[Match], error)
- func (UnimplementedMatchServiceHandler) ListAllMatch(context.Context, *connect.Request[ListAllMatchRequest]) (*connect.Response[ListAllMatchResponse], error)
- type UnimplementedPlayerServiceHandler
- func (UnimplementedPlayerServiceHandler) GetPlayerByName(context.Context, *connect.Request[GetPlayerByNameRequest]) (*connect.Response[Player], error)
- func (UnimplementedPlayerServiceHandler) ListAllPlayer(context.Context, *connect.Request[ListAllPlayerRequest]) (*connect.Response[ListAllPlayerResponse], error)
- type UnimplementedStandingServiceHandler
- type ValidateInterceptor
- func (i *ValidateInterceptor) WrapStreamingClient(next connect.StreamingClientFunc) connect.StreamingClientFunc
- func (i *ValidateInterceptor) WrapStreamingHandler(next connect.StreamingHandlerFunc) connect.StreamingHandlerFunc
- func (i *ValidateInterceptor) WrapUnary(next connect.UnaryFunc) connect.UnaryFunc
Constants ¶
const ( // MatchServiceName is the fully-qualified name of the MatchService service. MatchServiceName = "proto.MatchService" // PlayerServiceName is the fully-qualified name of the PlayerService service. PlayerServiceName = "proto.PlayerService" // StandingServiceName is the fully-qualified name of the StandingService service. StandingServiceName = "proto.StandingService" )
const ( // MatchServiceCreateMatchProcedure is the fully-qualified name of the MatchService's CreateMatch // RPC. MatchServiceCreateMatchProcedure = "/proto.MatchService/CreateMatch" // MatchServiceGetMatchByIdProcedure is the fully-qualified name of the MatchService's GetMatchById // RPC. MatchServiceGetMatchByIdProcedure = "/proto.MatchService/GetMatchById" // MatchServiceDeleteMatchProcedure is the fully-qualified name of the MatchService's DeleteMatch // RPC. MatchServiceDeleteMatchProcedure = "/proto.MatchService/DeleteMatch" // MatchServiceListAllMatchProcedure is the fully-qualified name of the MatchService's ListAllMatch // RPC. MatchServiceListAllMatchProcedure = "/proto.MatchService/ListAllMatch" // PlayerServiceGetPlayerByNameProcedure is the fully-qualified name of the PlayerService's // GetPlayerByName RPC. PlayerServiceGetPlayerByNameProcedure = "/proto.PlayerService/GetPlayerByName" // PlayerServiceListAllPlayerProcedure is the fully-qualified name of the PlayerService's // ListAllPlayer RPC. PlayerServiceListAllPlayerProcedure = "/proto.PlayerService/ListAllPlayer" // StandingServiceListAllStandingProcedure is the fully-qualified name of the StandingService's // ListAllStanding RPC. StandingServiceListAllStandingProcedure = "/proto.StandingService/ListAllStanding" )
These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.
Variables ¶
var File_schema_proto protoreflect.FileDescriptor
Functions ¶
func NewMatchServiceHandler ¶
func NewMatchServiceHandler(svc MatchServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewMatchServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.
By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.
func NewPlayerServiceHandler ¶ added in v0.0.3
func NewPlayerServiceHandler(svc PlayerServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewPlayerServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.
By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.
func NewStandingServiceHandler ¶
func NewStandingServiceHandler(svc StandingServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewStandingServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.
By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.
Types ¶
type CreateMatchRequest ¶
type CreateMatchRequest struct {
White string `protobuf:"bytes,2,opt,name=white,proto3" json:"white,omitempty"`
Black string `protobuf:"bytes,3,opt,name=black,proto3" json:"black,omitempty"`
// 1-0 | 0-1 | 1/2-1/2
Result string `protobuf:"bytes,4,opt,name=result,proto3" json:"result,omitempty"`
// e.g. Sicilian Defence
Opening *string `protobuf:"bytes,5,opt,name=opening,proto3,oneof" json:"opening,omitempty"`
Moves int32 `protobuf:"varint,6,opt,name=moves,proto3" json:"moves,omitempty"`
PlayedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=played_at,json=playedAt,proto3,oneof" json:"played_at,omitempty"`
// contains filtered or unexported fields
}
func (*CreateMatchRequest) Descriptor
deprecated
func (*CreateMatchRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateMatchRequest.ProtoReflect.Descriptor instead.
func (*CreateMatchRequest) GetBlack ¶
func (x *CreateMatchRequest) GetBlack() string
func (*CreateMatchRequest) GetMoves ¶
func (x *CreateMatchRequest) GetMoves() int32
func (*CreateMatchRequest) GetOpening ¶
func (x *CreateMatchRequest) GetOpening() string
func (*CreateMatchRequest) GetPlayedAt ¶
func (x *CreateMatchRequest) GetPlayedAt() *timestamppb.Timestamp
func (*CreateMatchRequest) GetResult ¶
func (x *CreateMatchRequest) GetResult() string
func (*CreateMatchRequest) GetWhite ¶
func (x *CreateMatchRequest) GetWhite() string
func (*CreateMatchRequest) ProtoMessage ¶
func (*CreateMatchRequest) ProtoMessage()
func (*CreateMatchRequest) ProtoReflect ¶
func (x *CreateMatchRequest) ProtoReflect() protoreflect.Message
func (*CreateMatchRequest) Reset ¶
func (x *CreateMatchRequest) Reset()
func (*CreateMatchRequest) String ¶
func (x *CreateMatchRequest) String() string
func (*CreateMatchRequest) Validate ¶
func (r *CreateMatchRequest) Validate() error
type DeleteMatchRequest ¶
type DeleteMatchRequest struct {
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*DeleteMatchRequest) Descriptor
deprecated
func (*DeleteMatchRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteMatchRequest.ProtoReflect.Descriptor instead.
func (*DeleteMatchRequest) GetId ¶ added in v0.0.6
func (x *DeleteMatchRequest) GetId() int32
func (*DeleteMatchRequest) ProtoMessage ¶
func (*DeleteMatchRequest) ProtoMessage()
func (*DeleteMatchRequest) ProtoReflect ¶
func (x *DeleteMatchRequest) ProtoReflect() protoreflect.Message
func (*DeleteMatchRequest) Reset ¶
func (x *DeleteMatchRequest) Reset()
func (*DeleteMatchRequest) String ¶
func (x *DeleteMatchRequest) String() string
type GetMatchByIdRequest ¶ added in v0.0.6
type GetMatchByIdRequest struct {
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*GetMatchByIdRequest) Descriptor
deprecated
added in
v0.0.6
func (*GetMatchByIdRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetMatchByIdRequest.ProtoReflect.Descriptor instead.
func (*GetMatchByIdRequest) GetId ¶ added in v0.0.6
func (x *GetMatchByIdRequest) GetId() int32
func (*GetMatchByIdRequest) ProtoMessage ¶ added in v0.0.6
func (*GetMatchByIdRequest) ProtoMessage()
func (*GetMatchByIdRequest) ProtoReflect ¶ added in v0.0.6
func (x *GetMatchByIdRequest) ProtoReflect() protoreflect.Message
func (*GetMatchByIdRequest) Reset ¶ added in v0.0.6
func (x *GetMatchByIdRequest) Reset()
func (*GetMatchByIdRequest) String ¶ added in v0.0.6
func (x *GetMatchByIdRequest) String() string
type GetPlayerByNameRequest ¶ added in v0.0.5
type GetPlayerByNameRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
func (*GetPlayerByNameRequest) Descriptor
deprecated
added in
v0.0.5
func (*GetPlayerByNameRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPlayerByNameRequest.ProtoReflect.Descriptor instead.
func (*GetPlayerByNameRequest) GetName ¶ added in v0.0.5
func (x *GetPlayerByNameRequest) GetName() string
func (*GetPlayerByNameRequest) ProtoMessage ¶ added in v0.0.5
func (*GetPlayerByNameRequest) ProtoMessage()
func (*GetPlayerByNameRequest) ProtoReflect ¶ added in v0.0.5
func (x *GetPlayerByNameRequest) ProtoReflect() protoreflect.Message
func (*GetPlayerByNameRequest) Reset ¶ added in v0.0.5
func (x *GetPlayerByNameRequest) Reset()
func (*GetPlayerByNameRequest) String ¶ added in v0.0.5
func (x *GetPlayerByNameRequest) String() string
type ListAllMatchRequest ¶
type ListAllMatchRequest struct {
// contains filtered or unexported fields
}
func (*ListAllMatchRequest) Descriptor
deprecated
func (*ListAllMatchRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListAllMatchRequest.ProtoReflect.Descriptor instead.
func (*ListAllMatchRequest) ProtoMessage ¶
func (*ListAllMatchRequest) ProtoMessage()
func (*ListAllMatchRequest) ProtoReflect ¶
func (x *ListAllMatchRequest) ProtoReflect() protoreflect.Message
func (*ListAllMatchRequest) Reset ¶
func (x *ListAllMatchRequest) Reset()
func (*ListAllMatchRequest) String ¶
func (x *ListAllMatchRequest) String() string
type ListAllMatchResponse ¶
type ListAllMatchResponse struct {
Rows []*Match `protobuf:"bytes,1,rep,name=rows,proto3" json:"rows,omitempty"`
// contains filtered or unexported fields
}
func (*ListAllMatchResponse) Descriptor
deprecated
func (*ListAllMatchResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListAllMatchResponse.ProtoReflect.Descriptor instead.
func (*ListAllMatchResponse) GetRows ¶ added in v0.0.5
func (x *ListAllMatchResponse) GetRows() []*Match
func (*ListAllMatchResponse) ProtoMessage ¶
func (*ListAllMatchResponse) ProtoMessage()
func (*ListAllMatchResponse) ProtoReflect ¶
func (x *ListAllMatchResponse) ProtoReflect() protoreflect.Message
func (*ListAllMatchResponse) Reset ¶
func (x *ListAllMatchResponse) Reset()
func (*ListAllMatchResponse) String ¶
func (x *ListAllMatchResponse) String() string
type ListAllPlayerRequest ¶ added in v0.0.3
type ListAllPlayerRequest struct {
// contains filtered or unexported fields
}
func (*ListAllPlayerRequest) Descriptor
deprecated
added in
v0.0.3
func (*ListAllPlayerRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListAllPlayerRequest.ProtoReflect.Descriptor instead.
func (*ListAllPlayerRequest) ProtoMessage ¶ added in v0.0.3
func (*ListAllPlayerRequest) ProtoMessage()
func (*ListAllPlayerRequest) ProtoReflect ¶ added in v0.0.3
func (x *ListAllPlayerRequest) ProtoReflect() protoreflect.Message
func (*ListAllPlayerRequest) Reset ¶ added in v0.0.3
func (x *ListAllPlayerRequest) Reset()
func (*ListAllPlayerRequest) String ¶ added in v0.0.3
func (x *ListAllPlayerRequest) String() string
type ListAllPlayerResponse ¶ added in v0.0.3
type ListAllPlayerResponse struct {
Rows []*Player `protobuf:"bytes,1,rep,name=rows,proto3" json:"rows,omitempty"`
// contains filtered or unexported fields
}
func (*ListAllPlayerResponse) Descriptor
deprecated
added in
v0.0.3
func (*ListAllPlayerResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListAllPlayerResponse.ProtoReflect.Descriptor instead.
func (*ListAllPlayerResponse) GetRows ¶ added in v0.0.5
func (x *ListAllPlayerResponse) GetRows() []*Player
func (*ListAllPlayerResponse) ProtoMessage ¶ added in v0.0.3
func (*ListAllPlayerResponse) ProtoMessage()
func (*ListAllPlayerResponse) ProtoReflect ¶ added in v0.0.3
func (x *ListAllPlayerResponse) ProtoReflect() protoreflect.Message
func (*ListAllPlayerResponse) Reset ¶ added in v0.0.3
func (x *ListAllPlayerResponse) Reset()
func (*ListAllPlayerResponse) String ¶ added in v0.0.3
func (x *ListAllPlayerResponse) String() string
type ListAllStandingRequest ¶
type ListAllStandingRequest struct {
// contains filtered or unexported fields
}
func (*ListAllStandingRequest) Descriptor
deprecated
func (*ListAllStandingRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListAllStandingRequest.ProtoReflect.Descriptor instead.
func (*ListAllStandingRequest) ProtoMessage ¶
func (*ListAllStandingRequest) ProtoMessage()
func (*ListAllStandingRequest) ProtoReflect ¶
func (x *ListAllStandingRequest) ProtoReflect() protoreflect.Message
func (*ListAllStandingRequest) Reset ¶
func (x *ListAllStandingRequest) Reset()
func (*ListAllStandingRequest) String ¶
func (x *ListAllStandingRequest) String() string
type ListAllStandingResponse ¶
type ListAllStandingResponse struct {
Rows []*Standing `protobuf:"bytes,1,rep,name=rows,proto3" json:"rows,omitempty"`
// contains filtered or unexported fields
}
func (*ListAllStandingResponse) Descriptor
deprecated
func (*ListAllStandingResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListAllStandingResponse.ProtoReflect.Descriptor instead.
func (*ListAllStandingResponse) GetRows ¶ added in v0.0.5
func (x *ListAllStandingResponse) GetRows() []*Standing
func (*ListAllStandingResponse) ProtoMessage ¶
func (*ListAllStandingResponse) ProtoMessage()
func (*ListAllStandingResponse) ProtoReflect ¶
func (x *ListAllStandingResponse) ProtoReflect() protoreflect.Message
func (*ListAllStandingResponse) Reset ¶
func (x *ListAllStandingResponse) Reset()
func (*ListAllStandingResponse) String ¶
func (x *ListAllStandingResponse) String() string
type Match ¶
type Match struct {
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
White string `protobuf:"bytes,2,opt,name=white,proto3" json:"white,omitempty"`
Black string `protobuf:"bytes,3,opt,name=black,proto3" json:"black,omitempty"`
// 1-0 | 0-1 | 1/2-1/2
Result string `protobuf:"bytes,4,opt,name=result,proto3" json:"result,omitempty"`
// e.g. Sicilian Defence
Opening *string `protobuf:"bytes,5,opt,name=opening,proto3,oneof" json:"opening,omitempty"`
Moves int32 `protobuf:"varint,6,opt,name=moves,proto3" json:"moves,omitempty"`
PlayedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=played_at,json=playedAt,proto3" json:"played_at,omitempty"`
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
// contains filtered or unexported fields
}
Match represents as match entity
func (*Match) Descriptor
deprecated
func (*Match) GetCreatedAt ¶
func (x *Match) GetCreatedAt() *timestamppb.Timestamp
func (*Match) GetOpening ¶
func (*Match) GetPlayedAt ¶
func (x *Match) GetPlayedAt() *timestamppb.Timestamp
func (*Match) ProtoMessage ¶
func (*Match) ProtoMessage()
func (*Match) ProtoReflect ¶
func (x *Match) ProtoReflect() protoreflect.Message
type MatchServiceClient ¶
type MatchServiceClient interface {
CreateMatch(context.Context, *connect.Request[CreateMatchRequest]) (*connect.Response[Match], error)
GetMatchById(context.Context, *connect.Request[GetMatchByIdRequest]) (*connect.Response[Match], error)
DeleteMatch(context.Context, *connect.Request[DeleteMatchRequest]) (*connect.Response[emptypb.Empty], error)
ListAllMatch(context.Context, *connect.Request[ListAllMatchRequest]) (*connect.Response[ListAllMatchResponse], error)
}
MatchServiceClient is a client for the proto.MatchService service.
func NewMatchServiceClient ¶
func NewMatchServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) MatchServiceClient
NewMatchServiceClient constructs a client for the proto.MatchService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.
The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).
type MatchServiceHandler ¶
type MatchServiceHandler interface {
CreateMatch(context.Context, *connect.Request[CreateMatchRequest]) (*connect.Response[Match], error)
GetMatchById(context.Context, *connect.Request[GetMatchByIdRequest]) (*connect.Response[Match], error)
DeleteMatch(context.Context, *connect.Request[DeleteMatchRequest]) (*connect.Response[emptypb.Empty], error)
ListAllMatch(context.Context, *connect.Request[ListAllMatchRequest]) (*connect.Response[ListAllMatchResponse], error)
}
MatchServiceHandler is an implementation of the proto.MatchService service.
type Player ¶ added in v0.0.3
type Player struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Elo rating, kept by the secretary
Rating int32 `protobuf:"varint,2,opt,name=rating,proto3" json:"rating,omitempty"`
// e.g. GM, IM, FM
Title *string `protobuf:"bytes,3,opt,name=title,proto3,oneof" json:"title,omitempty"`
JoinedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=joined_at,json=joinedAt,proto3" json:"joined_at,omitempty"`
// contains filtered or unexported fields
}
Player is the club roster, written on the server and read by members.
func (*Player) Descriptor
deprecated
added in
v0.0.3
func (*Player) GetJoinedAt ¶ added in v0.0.3
func (x *Player) GetJoinedAt() *timestamppb.Timestamp
func (*Player) ProtoMessage ¶ added in v0.0.3
func (*Player) ProtoMessage()
func (*Player) ProtoReflect ¶ added in v0.0.3
func (x *Player) ProtoReflect() protoreflect.Message
type PlayerServiceClient ¶ added in v0.0.3
type PlayerServiceClient interface {
GetPlayerByName(context.Context, *connect.Request[GetPlayerByNameRequest]) (*connect.Response[Player], error)
ListAllPlayer(context.Context, *connect.Request[ListAllPlayerRequest]) (*connect.Response[ListAllPlayerResponse], error)
}
PlayerServiceClient is a client for the proto.PlayerService service.
func NewPlayerServiceClient ¶ added in v0.0.3
func NewPlayerServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) PlayerServiceClient
NewPlayerServiceClient constructs a client for the proto.PlayerService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.
The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).
type PlayerServiceHandler ¶ added in v0.0.3
type PlayerServiceHandler interface {
GetPlayerByName(context.Context, *connect.Request[GetPlayerByNameRequest]) (*connect.Response[Player], error)
ListAllPlayer(context.Context, *connect.Request[ListAllPlayerRequest]) (*connect.Response[ListAllPlayerResponse], error)
}
PlayerServiceHandler is an implementation of the proto.PlayerService service.
type Standing ¶
type Standing struct {
// Place in the table, 1 is best
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Player string `protobuf:"bytes,2,opt,name=player,proto3" json:"player,omitempty"`
Played int32 `protobuf:"varint,3,opt,name=played,proto3" json:"played,omitempty"`
Wins int32 `protobuf:"varint,4,opt,name=wins,proto3" json:"wins,omitempty"`
Draws int32 `protobuf:"varint,5,opt,name=draws,proto3" json:"draws,omitempty"`
Losses int32 `protobuf:"varint,6,opt,name=losses,proto3" json:"losses,omitempty"`
// Win 1, draw 0.5
Points float64 `protobuf:"fixed64,7,opt,name=points,proto3" json:"points,omitempty"`
// contains filtered or unexported fields
}
Standing represents as standing entity
func (*Standing) Descriptor
deprecated
func (*Standing) ProtoMessage ¶
func (*Standing) ProtoMessage()
func (*Standing) ProtoReflect ¶
func (x *Standing) ProtoReflect() protoreflect.Message
type StandingServiceClient ¶
type StandingServiceClient interface {
ListAllStanding(context.Context, *connect.Request[ListAllStandingRequest]) (*connect.Response[ListAllStandingResponse], error)
}
StandingServiceClient is a client for the proto.StandingService service.
func NewStandingServiceClient ¶
func NewStandingServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) StandingServiceClient
NewStandingServiceClient constructs a client for the proto.StandingService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.
The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).
type StandingServiceHandler ¶
type StandingServiceHandler interface {
ListAllStanding(context.Context, *connect.Request[ListAllStandingRequest]) (*connect.Response[ListAllStandingResponse], error)
}
StandingServiceHandler is an implementation of the proto.StandingService service.
type UnimplementedMatchServiceHandler ¶
type UnimplementedMatchServiceHandler struct{}
UnimplementedMatchServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedMatchServiceHandler) CreateMatch ¶ added in v0.0.5
func (UnimplementedMatchServiceHandler) CreateMatch(context.Context, *connect.Request[CreateMatchRequest]) (*connect.Response[Match], error)
func (UnimplementedMatchServiceHandler) DeleteMatch ¶ added in v0.0.5
func (UnimplementedMatchServiceHandler) GetMatchById ¶ added in v0.0.6
func (UnimplementedMatchServiceHandler) GetMatchById(context.Context, *connect.Request[GetMatchByIdRequest]) (*connect.Response[Match], error)
func (UnimplementedMatchServiceHandler) ListAllMatch ¶ added in v0.0.5
func (UnimplementedMatchServiceHandler) ListAllMatch(context.Context, *connect.Request[ListAllMatchRequest]) (*connect.Response[ListAllMatchResponse], error)
type UnimplementedPlayerServiceHandler ¶ added in v0.0.3
type UnimplementedPlayerServiceHandler struct{}
UnimplementedPlayerServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedPlayerServiceHandler) GetPlayerByName ¶ added in v0.0.5
func (UnimplementedPlayerServiceHandler) GetPlayerByName(context.Context, *connect.Request[GetPlayerByNameRequest]) (*connect.Response[Player], error)
func (UnimplementedPlayerServiceHandler) ListAllPlayer ¶ added in v0.0.5
func (UnimplementedPlayerServiceHandler) ListAllPlayer(context.Context, *connect.Request[ListAllPlayerRequest]) (*connect.Response[ListAllPlayerResponse], error)
type UnimplementedStandingServiceHandler ¶
type UnimplementedStandingServiceHandler struct{}
UnimplementedStandingServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedStandingServiceHandler) ListAllStanding ¶ added in v0.0.5
func (UnimplementedStandingServiceHandler) ListAllStanding(context.Context, *connect.Request[ListAllStandingRequest]) (*connect.Response[ListAllStandingResponse], error)
type ValidateInterceptor ¶
type ValidateInterceptor struct{}
ValidateInterceptor calls the generated Validate() method on any request message that implements it
func NewValidateInterceptor ¶
func NewValidateInterceptor() *ValidateInterceptor
func (*ValidateInterceptor) WrapStreamingClient ¶
func (i *ValidateInterceptor) WrapStreamingClient(next connect.StreamingClientFunc) connect.StreamingClientFunc
WrapStreamingClient implements connect.Interceptor.
func (*ValidateInterceptor) WrapStreamingHandler ¶
func (i *ValidateInterceptor) WrapStreamingHandler(next connect.StreamingHandlerFunc) connect.StreamingHandlerFunc
WrapStreamingHandler implements connect.Interceptor.