Documentation ¶
Index ¶
- Variables
- func ErrorGameNotFound(format string, args ...interface{}) *errors.Error
- func ErrorUnknownError(format string, args ...interface{}) *errors.Error
- func IsGameNotFound(err error) bool
- func IsUnknownError(err error) bool
- func RegisterCatalogHTTPServer(s *http.Server, srv CatalogHTTPServer)
- func RegisterCatalogServer(s grpc.ServiceRegistrar, srv CatalogServer)
- type CatalogClient
- type CatalogHTTPClient
- type CatalogHTTPClientImpl
- type CatalogHTTPServer
- type CatalogServer
- type CatalogServiceErrorReason
- func (CatalogServiceErrorReason) Descriptor() protoreflect.EnumDescriptor
- func (x CatalogServiceErrorReason) Enum() *CatalogServiceErrorReason
- func (CatalogServiceErrorReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x CatalogServiceErrorReason) Number() protoreflect.EnumNumber
- func (x CatalogServiceErrorReason) String() string
- func (CatalogServiceErrorReason) Type() protoreflect.EnumType
- type CreateGameReply
- func (*CreateGameReply) Descriptor() ([]byte, []int)deprecated
- func (x *CreateGameReply) GetCount() int64
- func (x *CreateGameReply) GetDescription() string
- func (x *CreateGameReply) GetId() int64
- func (x *CreateGameReply) GetName() string
- func (*CreateGameReply) ProtoMessage()
- func (x *CreateGameReply) ProtoReflect() protoreflect.Message
- func (x *CreateGameReply) Reset()
- func (x *CreateGameReply) String() string
- type CreateGameReq
- func (*CreateGameReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateGameReq) GetCount() int64
- func (x *CreateGameReq) GetDescription() string
- func (x *CreateGameReq) GetName() string
- func (*CreateGameReq) ProtoMessage()
- func (x *CreateGameReq) ProtoReflect() protoreflect.Message
- func (x *CreateGameReq) Reset()
- func (x *CreateGameReq) String() string
- type DeleteGameReply
- type DeleteGameReq
- type GetGameReply
- func (*GetGameReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetGameReply) GetCount() int64
- func (x *GetGameReply) GetDescription() string
- func (x *GetGameReply) GetId() int64
- func (x *GetGameReply) GetName() string
- func (*GetGameReply) ProtoMessage()
- func (x *GetGameReply) ProtoReflect() protoreflect.Message
- func (x *GetGameReply) Reset()
- func (x *GetGameReply) String() string
- type GetGameReq
- type HealthReply
- type HealthReply_ServingStatus
- func (HealthReply_ServingStatus) Descriptor() protoreflect.EnumDescriptor
- func (x HealthReply_ServingStatus) Enum() *HealthReply_ServingStatus
- func (HealthReply_ServingStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x HealthReply_ServingStatus) Number() protoreflect.EnumNumber
- func (x HealthReply_ServingStatus) String() string
- func (HealthReply_ServingStatus) Type() protoreflect.EnumType
- type HealthReq
- type ListGameReply
- type ListGameReply_Game
- func (*ListGameReply_Game) Descriptor() ([]byte, []int)deprecated
- func (x *ListGameReply_Game) GetCount() int64
- func (x *ListGameReply_Game) GetDescription() string
- func (x *ListGameReply_Game) GetId() int64
- func (x *ListGameReply_Game) GetName() string
- func (*ListGameReply_Game) ProtoMessage()
- func (x *ListGameReply_Game) ProtoReflect() protoreflect.Message
- func (x *ListGameReply_Game) Reset()
- func (x *ListGameReply_Game) String() string
- type ListGameReq
- func (*ListGameReq) Descriptor() ([]byte, []int)deprecated
- func (x *ListGameReq) GetPageNum() int64
- func (x *ListGameReq) GetPageSize() int64
- func (*ListGameReq) ProtoMessage()
- func (x *ListGameReq) ProtoReflect() protoreflect.Message
- func (x *ListGameReq) Reset()
- func (x *ListGameReq) String() string
- type UnimplementedCatalogServer
- func (UnimplementedCatalogServer) CreateGame(context.Context, *CreateGameReq) (*CreateGameReply, error)
- func (UnimplementedCatalogServer) DeleteGame(context.Context, *DeleteGameReq) (*DeleteGameReply, error)
- func (UnimplementedCatalogServer) GetGame(context.Context, *GetGameReq) (*GetGameReply, error)
- func (UnimplementedCatalogServer) HealthCheck(context.Context, *HealthReq) (*HealthReply, error)
- func (UnimplementedCatalogServer) ListGame(context.Context, *ListGameReq) (*ListGameReply, error)
- func (UnimplementedCatalogServer) UpdateGame(context.Context, *UpdateGameReq) (*UpdateGameReply, error)
- type UnsafeCatalogServer
- type UpdateGameReply
- func (*UpdateGameReply) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateGameReply) GetCount() int64
- func (x *UpdateGameReply) GetDescription() string
- func (x *UpdateGameReply) GetId() int64
- func (x *UpdateGameReply) GetName() string
- func (*UpdateGameReply) ProtoMessage()
- func (x *UpdateGameReply) ProtoReflect() protoreflect.Message
- func (x *UpdateGameReply) Reset()
- func (x *UpdateGameReply) String() string
- type UpdateGameReq
- func (*UpdateGameReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateGameReq) GetCount() int64
- func (x *UpdateGameReq) GetDescription() string
- func (x *UpdateGameReq) GetId() int64
- func (x *UpdateGameReq) GetName() string
- func (*UpdateGameReq) ProtoMessage()
- func (x *UpdateGameReq) ProtoReflect() protoreflect.Message
- func (x *UpdateGameReq) Reset()
- func (x *UpdateGameReq) String() string
Constants ¶
This section is empty.
Variables ¶
var ( HealthReply_ServingStatus_name = map[int32]string{ 0: "UNKNOWN", 1: "SERVING", 2: "NOT_SERVING", 3: "SERVICE_UNKNOWN", } HealthReply_ServingStatus_value = map[string]int32{ "UNKNOWN": 0, "SERVING": 1, "NOT_SERVING": 2, "SERVICE_UNKNOWN": 3, } )
Enum value maps for HealthReply_ServingStatus.
var ( CatalogServiceErrorReason_name = map[int32]string{ 0: "UNKNOWN_ERROR", 1: "GAME_NOT_FOUND", } CatalogServiceErrorReason_value = map[string]int32{ "UNKNOWN_ERROR": 0, "GAME_NOT_FOUND": 1, } )
Enum value maps for CatalogServiceErrorReason.
var Catalog_ServiceDesc = grpc.ServiceDesc{ ServiceName: "catalog.service.v1.Catalog", HandlerType: (*CatalogServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListGame", Handler: _Catalog_ListGame_Handler, }, { MethodName: "CreateGame", Handler: _Catalog_CreateGame_Handler, }, { MethodName: "GetGame", Handler: _Catalog_GetGame_Handler, }, { MethodName: "UpdateGame", Handler: _Catalog_UpdateGame_Handler, }, { MethodName: "DeleteGame", Handler: _Catalog_DeleteGame_Handler, }, { MethodName: "HealthCheck", Handler: _Catalog_HealthCheck_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/catalog/service/v1/catalog.proto", }
Catalog_ServiceDesc is the grpc.ServiceDesc for Catalog service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_api_catalog_service_v1_catalog_error_proto protoreflect.FileDescriptor
var File_api_catalog_service_v1_catalog_proto protoreflect.FileDescriptor
Functions ¶
func ErrorGameNotFound ¶
func ErrorUnknownError ¶
func IsGameNotFound ¶
func IsUnknownError ¶
func RegisterCatalogHTTPServer ¶
func RegisterCatalogHTTPServer(s *http.Server, srv CatalogHTTPServer)
func RegisterCatalogServer ¶
func RegisterCatalogServer(s grpc.ServiceRegistrar, srv CatalogServer)
Types ¶
type CatalogClient ¶
type CatalogClient interface { ListGame(ctx context.Context, in *ListGameReq, opts ...grpc.CallOption) (*ListGameReply, error) CreateGame(ctx context.Context, in *CreateGameReq, opts ...grpc.CallOption) (*CreateGameReply, error) GetGame(ctx context.Context, in *GetGameReq, opts ...grpc.CallOption) (*GetGameReply, error) UpdateGame(ctx context.Context, in *UpdateGameReq, opts ...grpc.CallOption) (*UpdateGameReply, error) DeleteGame(ctx context.Context, in *DeleteGameReq, opts ...grpc.CallOption) (*DeleteGameReply, error) HealthCheck(ctx context.Context, in *HealthReq, opts ...grpc.CallOption) (*HealthReply, error) }
CatalogClient is the client API for Catalog service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewCatalogClient ¶
func NewCatalogClient(cc grpc.ClientConnInterface) CatalogClient
type CatalogHTTPClient ¶
type CatalogHTTPClient interface {
HealthCheck(ctx context.Context, req *HealthReq, opts ...http.CallOption) (rsp *HealthReply, err error)
}
func NewCatalogHTTPClient ¶
func NewCatalogHTTPClient(client *http.Client) CatalogHTTPClient
type CatalogHTTPClientImpl ¶
type CatalogHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*CatalogHTTPClientImpl) HealthCheck ¶
func (c *CatalogHTTPClientImpl) HealthCheck(ctx context.Context, in *HealthReq, opts ...http.CallOption) (*HealthReply, error)
type CatalogHTTPServer ¶
type CatalogHTTPServer interface {
HealthCheck(context.Context, *HealthReq) (*HealthReply, error)
}
type CatalogServer ¶
type CatalogServer interface { ListGame(context.Context, *ListGameReq) (*ListGameReply, error) CreateGame(context.Context, *CreateGameReq) (*CreateGameReply, error) GetGame(context.Context, *GetGameReq) (*GetGameReply, error) UpdateGame(context.Context, *UpdateGameReq) (*UpdateGameReply, error) DeleteGame(context.Context, *DeleteGameReq) (*DeleteGameReply, error) HealthCheck(context.Context, *HealthReq) (*HealthReply, error) // contains filtered or unexported methods }
CatalogServer is the server API for Catalog service. All implementations must embed UnimplementedCatalogServer for forward compatibility
type CatalogServiceErrorReason ¶
type CatalogServiceErrorReason int32
const ( CatalogServiceErrorReason_UNKNOWN_ERROR CatalogServiceErrorReason = 0 CatalogServiceErrorReason_GAME_NOT_FOUND CatalogServiceErrorReason = 1 )
func (CatalogServiceErrorReason) Descriptor ¶
func (CatalogServiceErrorReason) Descriptor() protoreflect.EnumDescriptor
func (CatalogServiceErrorReason) Enum ¶
func (x CatalogServiceErrorReason) Enum() *CatalogServiceErrorReason
func (CatalogServiceErrorReason) EnumDescriptor
deprecated
func (CatalogServiceErrorReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use CatalogServiceErrorReason.Descriptor instead.
func (CatalogServiceErrorReason) Number ¶
func (x CatalogServiceErrorReason) Number() protoreflect.EnumNumber
func (CatalogServiceErrorReason) String ¶
func (x CatalogServiceErrorReason) String() string
func (CatalogServiceErrorReason) Type ¶
func (CatalogServiceErrorReason) Type() protoreflect.EnumType
type CreateGameReply ¶
type CreateGameReply struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` Count int64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*CreateGameReply) Descriptor
deprecated
func (*CreateGameReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateGameReply.ProtoReflect.Descriptor instead.
func (*CreateGameReply) GetCount ¶
func (x *CreateGameReply) GetCount() int64
func (*CreateGameReply) GetDescription ¶
func (x *CreateGameReply) GetDescription() string
func (*CreateGameReply) GetId ¶
func (x *CreateGameReply) GetId() int64
func (*CreateGameReply) GetName ¶
func (x *CreateGameReply) GetName() string
func (*CreateGameReply) ProtoMessage ¶
func (*CreateGameReply) ProtoMessage()
func (*CreateGameReply) ProtoReflect ¶
func (x *CreateGameReply) ProtoReflect() protoreflect.Message
func (*CreateGameReply) Reset ¶
func (x *CreateGameReply) Reset()
func (*CreateGameReply) String ¶
func (x *CreateGameReply) String() string
type CreateGameReq ¶
type CreateGameReq struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` Count int64 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*CreateGameReq) Descriptor
deprecated
func (*CreateGameReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateGameReq.ProtoReflect.Descriptor instead.
func (*CreateGameReq) GetCount ¶
func (x *CreateGameReq) GetCount() int64
func (*CreateGameReq) GetDescription ¶
func (x *CreateGameReq) GetDescription() string
func (*CreateGameReq) GetName ¶
func (x *CreateGameReq) GetName() string
func (*CreateGameReq) ProtoMessage ¶
func (*CreateGameReq) ProtoMessage()
func (*CreateGameReq) ProtoReflect ¶
func (x *CreateGameReq) ProtoReflect() protoreflect.Message
func (*CreateGameReq) Reset ¶
func (x *CreateGameReq) Reset()
func (*CreateGameReq) String ¶
func (x *CreateGameReq) String() string
type DeleteGameReply ¶
type DeleteGameReply struct {
// contains filtered or unexported fields
}
func (*DeleteGameReply) Descriptor
deprecated
func (*DeleteGameReply) Descriptor() ([]byte, []int)
Deprecated: Use DeleteGameReply.ProtoReflect.Descriptor instead.
func (*DeleteGameReply) ProtoMessage ¶
func (*DeleteGameReply) ProtoMessage()
func (*DeleteGameReply) ProtoReflect ¶
func (x *DeleteGameReply) ProtoReflect() protoreflect.Message
func (*DeleteGameReply) Reset ¶
func (x *DeleteGameReply) Reset()
func (*DeleteGameReply) String ¶
func (x *DeleteGameReply) String() string
type DeleteGameReq ¶
type DeleteGameReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteGameReq) Descriptor
deprecated
func (*DeleteGameReq) Descriptor() ([]byte, []int)
Deprecated: Use DeleteGameReq.ProtoReflect.Descriptor instead.
func (*DeleteGameReq) GetId ¶
func (x *DeleteGameReq) GetId() int64
func (*DeleteGameReq) ProtoMessage ¶
func (*DeleteGameReq) ProtoMessage()
func (*DeleteGameReq) ProtoReflect ¶
func (x *DeleteGameReq) ProtoReflect() protoreflect.Message
func (*DeleteGameReq) Reset ¶
func (x *DeleteGameReq) Reset()
func (*DeleteGameReq) String ¶
func (x *DeleteGameReq) String() string
type GetGameReply ¶
type GetGameReply struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` Count int64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*GetGameReply) Descriptor
deprecated
func (*GetGameReply) Descriptor() ([]byte, []int)
Deprecated: Use GetGameReply.ProtoReflect.Descriptor instead.
func (*GetGameReply) GetCount ¶
func (x *GetGameReply) GetCount() int64
func (*GetGameReply) GetDescription ¶
func (x *GetGameReply) GetDescription() string
func (*GetGameReply) GetId ¶
func (x *GetGameReply) GetId() int64
func (*GetGameReply) GetName ¶
func (x *GetGameReply) GetName() string
func (*GetGameReply) ProtoMessage ¶
func (*GetGameReply) ProtoMessage()
func (*GetGameReply) ProtoReflect ¶
func (x *GetGameReply) ProtoReflect() protoreflect.Message
func (*GetGameReply) Reset ¶
func (x *GetGameReply) Reset()
func (*GetGameReply) String ¶
func (x *GetGameReply) String() string
type GetGameReq ¶
type GetGameReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetGameReq) Descriptor
deprecated
func (*GetGameReq) Descriptor() ([]byte, []int)
Deprecated: Use GetGameReq.ProtoReflect.Descriptor instead.
func (*GetGameReq) GetId ¶
func (x *GetGameReq) GetId() int64
func (*GetGameReq) ProtoMessage ¶
func (*GetGameReq) ProtoMessage()
func (*GetGameReq) ProtoReflect ¶
func (x *GetGameReq) ProtoReflect() protoreflect.Message
func (*GetGameReq) Reset ¶
func (x *GetGameReq) Reset()
func (*GetGameReq) String ¶
func (x *GetGameReq) String() string
type HealthReply ¶
type HealthReply struct { Status HealthReply_ServingStatus `protobuf:"varint,1,opt,name=status,proto3,enum=catalog.service.v1.HealthReply_ServingStatus" json:"status,omitempty"` // contains filtered or unexported fields }
func (*HealthReply) Descriptor
deprecated
func (*HealthReply) Descriptor() ([]byte, []int)
Deprecated: Use HealthReply.ProtoReflect.Descriptor instead.
func (*HealthReply) GetStatus ¶
func (x *HealthReply) GetStatus() HealthReply_ServingStatus
func (*HealthReply) ProtoMessage ¶
func (*HealthReply) ProtoMessage()
func (*HealthReply) ProtoReflect ¶
func (x *HealthReply) ProtoReflect() protoreflect.Message
func (*HealthReply) Reset ¶
func (x *HealthReply) Reset()
func (*HealthReply) String ¶
func (x *HealthReply) String() string
type HealthReply_ServingStatus ¶
type HealthReply_ServingStatus int32
const ( HealthReply_UNKNOWN HealthReply_ServingStatus = 0 HealthReply_SERVING HealthReply_ServingStatus = 1 HealthReply_NOT_SERVING HealthReply_ServingStatus = 2 HealthReply_SERVICE_UNKNOWN HealthReply_ServingStatus = 3 )
func (HealthReply_ServingStatus) Descriptor ¶
func (HealthReply_ServingStatus) Descriptor() protoreflect.EnumDescriptor
func (HealthReply_ServingStatus) Enum ¶
func (x HealthReply_ServingStatus) Enum() *HealthReply_ServingStatus
func (HealthReply_ServingStatus) EnumDescriptor
deprecated
func (HealthReply_ServingStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use HealthReply_ServingStatus.Descriptor instead.
func (HealthReply_ServingStatus) Number ¶
func (x HealthReply_ServingStatus) Number() protoreflect.EnumNumber
func (HealthReply_ServingStatus) String ¶
func (x HealthReply_ServingStatus) String() string
func (HealthReply_ServingStatus) Type ¶
func (HealthReply_ServingStatus) Type() protoreflect.EnumType
type HealthReq ¶
type HealthReq struct {
// contains filtered or unexported fields
}
func (*HealthReq) Descriptor
deprecated
func (*HealthReq) ProtoMessage ¶
func (*HealthReq) ProtoMessage()
func (*HealthReq) ProtoReflect ¶
func (x *HealthReq) ProtoReflect() protoreflect.Message
type ListGameReply ¶
type ListGameReply struct { Results []*ListGameReply_Game `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` // contains filtered or unexported fields }
func (*ListGameReply) Descriptor
deprecated
func (*ListGameReply) Descriptor() ([]byte, []int)
Deprecated: Use ListGameReply.ProtoReflect.Descriptor instead.
func (*ListGameReply) GetResults ¶
func (x *ListGameReply) GetResults() []*ListGameReply_Game
func (*ListGameReply) ProtoMessage ¶
func (*ListGameReply) ProtoMessage()
func (*ListGameReply) ProtoReflect ¶
func (x *ListGameReply) ProtoReflect() protoreflect.Message
func (*ListGameReply) Reset ¶
func (x *ListGameReply) Reset()
func (*ListGameReply) String ¶
func (x *ListGameReply) String() string
type ListGameReply_Game ¶
type ListGameReply_Game struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` Count int64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*ListGameReply_Game) Descriptor
deprecated
func (*ListGameReply_Game) Descriptor() ([]byte, []int)
Deprecated: Use ListGameReply_Game.ProtoReflect.Descriptor instead.
func (*ListGameReply_Game) GetCount ¶
func (x *ListGameReply_Game) GetCount() int64
func (*ListGameReply_Game) GetDescription ¶
func (x *ListGameReply_Game) GetDescription() string
func (*ListGameReply_Game) GetId ¶
func (x *ListGameReply_Game) GetId() int64
func (*ListGameReply_Game) GetName ¶
func (x *ListGameReply_Game) GetName() string
func (*ListGameReply_Game) ProtoMessage ¶
func (*ListGameReply_Game) ProtoMessage()
func (*ListGameReply_Game) ProtoReflect ¶
func (x *ListGameReply_Game) ProtoReflect() protoreflect.Message
func (*ListGameReply_Game) Reset ¶
func (x *ListGameReply_Game) Reset()
func (*ListGameReply_Game) String ¶
func (x *ListGameReply_Game) String() string
type ListGameReq ¶
type ListGameReq struct { PageNum int64 `protobuf:"varint,1,opt,name=page_num,json=pageNum,proto3" json:"page_num,omitempty"` PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // contains filtered or unexported fields }
func (*ListGameReq) Descriptor
deprecated
func (*ListGameReq) Descriptor() ([]byte, []int)
Deprecated: Use ListGameReq.ProtoReflect.Descriptor instead.
func (*ListGameReq) GetPageNum ¶
func (x *ListGameReq) GetPageNum() int64
func (*ListGameReq) GetPageSize ¶
func (x *ListGameReq) GetPageSize() int64
func (*ListGameReq) ProtoMessage ¶
func (*ListGameReq) ProtoMessage()
func (*ListGameReq) ProtoReflect ¶
func (x *ListGameReq) ProtoReflect() protoreflect.Message
func (*ListGameReq) Reset ¶
func (x *ListGameReq) Reset()
func (*ListGameReq) String ¶
func (x *ListGameReq) String() string
type UnimplementedCatalogServer ¶
type UnimplementedCatalogServer struct { }
UnimplementedCatalogServer must be embedded to have forward compatible implementations.
func (UnimplementedCatalogServer) CreateGame ¶
func (UnimplementedCatalogServer) CreateGame(context.Context, *CreateGameReq) (*CreateGameReply, error)
func (UnimplementedCatalogServer) DeleteGame ¶
func (UnimplementedCatalogServer) DeleteGame(context.Context, *DeleteGameReq) (*DeleteGameReply, error)
func (UnimplementedCatalogServer) GetGame ¶
func (UnimplementedCatalogServer) GetGame(context.Context, *GetGameReq) (*GetGameReply, error)
func (UnimplementedCatalogServer) HealthCheck ¶
func (UnimplementedCatalogServer) HealthCheck(context.Context, *HealthReq) (*HealthReply, error)
func (UnimplementedCatalogServer) ListGame ¶
func (UnimplementedCatalogServer) ListGame(context.Context, *ListGameReq) (*ListGameReply, error)
func (UnimplementedCatalogServer) UpdateGame ¶
func (UnimplementedCatalogServer) UpdateGame(context.Context, *UpdateGameReq) (*UpdateGameReply, error)
type UnsafeCatalogServer ¶
type UnsafeCatalogServer interface {
// contains filtered or unexported methods
}
UnsafeCatalogServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CatalogServer will result in compilation errors.
type UpdateGameReply ¶
type UpdateGameReply struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` Count int64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*UpdateGameReply) Descriptor
deprecated
func (*UpdateGameReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateGameReply.ProtoReflect.Descriptor instead.
func (*UpdateGameReply) GetCount ¶
func (x *UpdateGameReply) GetCount() int64
func (*UpdateGameReply) GetDescription ¶
func (x *UpdateGameReply) GetDescription() string
func (*UpdateGameReply) GetId ¶
func (x *UpdateGameReply) GetId() int64
func (*UpdateGameReply) GetName ¶
func (x *UpdateGameReply) GetName() string
func (*UpdateGameReply) ProtoMessage ¶
func (*UpdateGameReply) ProtoMessage()
func (*UpdateGameReply) ProtoReflect ¶
func (x *UpdateGameReply) ProtoReflect() protoreflect.Message
func (*UpdateGameReply) Reset ¶
func (x *UpdateGameReply) Reset()
func (*UpdateGameReply) String ¶
func (x *UpdateGameReply) String() string
type UpdateGameReq ¶
type UpdateGameReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` Count int64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*UpdateGameReq) Descriptor
deprecated
func (*UpdateGameReq) Descriptor() ([]byte, []int)
Deprecated: Use UpdateGameReq.ProtoReflect.Descriptor instead.
func (*UpdateGameReq) GetCount ¶
func (x *UpdateGameReq) GetCount() int64
func (*UpdateGameReq) GetDescription ¶
func (x *UpdateGameReq) GetDescription() string
func (*UpdateGameReq) GetId ¶
func (x *UpdateGameReq) GetId() int64
func (*UpdateGameReq) GetName ¶
func (x *UpdateGameReq) GetName() string
func (*UpdateGameReq) ProtoMessage ¶
func (*UpdateGameReq) ProtoMessage()
func (*UpdateGameReq) ProtoReflect ¶
func (x *UpdateGameReq) ProtoReflect() protoreflect.Message
func (*UpdateGameReq) Reset ¶
func (x *UpdateGameReq) Reset()
func (*UpdateGameReq) String ¶
func (x *UpdateGameReq) String() string