Documentation ¶
Overview ¶
Package characters is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterMruVCharactersServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterMruVCharactersServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MruVCharactersServiceClient) error
- func RegisterMruVCharactersServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterMruVCharactersServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MruVCharactersServiceServer) error
- func RegisterMruVCharactersServiceServer(s *grpc.Server, srv MruVCharactersServiceServer)
- type ChangeClothesRequest
- func (*ChangeClothesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ChangeClothesRequest) GetClothesId() uint32
- func (x *ChangeClothesRequest) GetId() uint32
- func (*ChangeClothesRequest) ProtoMessage()
- func (x *ChangeClothesRequest) ProtoReflect() protoreflect.Message
- func (x *ChangeClothesRequest) Reset()
- func (x *ChangeClothesRequest) String() string
- func (m *ChangeClothesRequest) Validate() error
- type ChangeClothesRequestValidationError
- func (e ChangeClothesRequestValidationError) Cause() error
- func (e ChangeClothesRequestValidationError) Error() string
- func (e ChangeClothesRequestValidationError) ErrorName() string
- func (e ChangeClothesRequestValidationError) Field() string
- func (e ChangeClothesRequestValidationError) Key() bool
- func (e ChangeClothesRequestValidationError) Reason() string
- type ChangeClothesResponse
- func (*ChangeClothesResponse) Descriptor() ([]byte, []int)deprecated
- func (*ChangeClothesResponse) ProtoMessage()
- func (x *ChangeClothesResponse) ProtoReflect() protoreflect.Message
- func (x *ChangeClothesResponse) Reset()
- func (x *ChangeClothesResponse) String() string
- func (m *ChangeClothesResponse) Validate() error
- type ChangeClothesResponseValidationError
- func (e ChangeClothesResponseValidationError) Cause() error
- func (e ChangeClothesResponseValidationError) Error() string
- func (e ChangeClothesResponseValidationError) ErrorName() string
- func (e ChangeClothesResponseValidationError) Field() string
- func (e ChangeClothesResponseValidationError) Key() bool
- func (e ChangeClothesResponseValidationError) Reason() string
- type Character
- func (*Character) Descriptor() ([]byte, []int)deprecated
- func (x *Character) GetAge() uint32
- func (x *Character) GetClothesId() uint32
- func (x *Character) GetFirstName() string
- func (x *Character) GetId() uint32
- func (x *Character) GetOwnerId() uint32
- func (x *Character) GetSecondName() string
- func (x *Character) GetSex() uint32
- func (x *Character) GetX() float32
- func (x *Character) GetY() float32
- func (x *Character) GetZ() float32
- func (*Character) ProtoMessage()
- func (x *Character) ProtoReflect() protoreflect.Message
- func (x *Character) Reset()
- func (x *Character) String() string
- func (m *Character) Validate() error
- type CharacterID
- type CharacterIDValidationError
- func (e CharacterIDValidationError) Cause() error
- func (e CharacterIDValidationError) Error() string
- func (e CharacterIDValidationError) ErrorName() string
- func (e CharacterIDValidationError) Field() string
- func (e CharacterIDValidationError) Key() bool
- func (e CharacterIDValidationError) Reason() string
- type CharacterValidationError
- type CreateCharacterRequest
- func (*CreateCharacterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCharacterRequest) GetAge() uint32
- func (x *CreateCharacterRequest) GetFirstName() string
- func (x *CreateCharacterRequest) GetId() uint32
- func (x *CreateCharacterRequest) GetOwnerId() uint32
- func (x *CreateCharacterRequest) GetSecondName() string
- func (x *CreateCharacterRequest) GetSex() uint32
- func (*CreateCharacterRequest) ProtoMessage()
- func (x *CreateCharacterRequest) ProtoReflect() protoreflect.Message
- func (x *CreateCharacterRequest) Reset()
- func (x *CreateCharacterRequest) String() string
- func (m *CreateCharacterRequest) Validate() error
- type CreateCharacterRequestValidationError
- func (e CreateCharacterRequestValidationError) Cause() error
- func (e CreateCharacterRequestValidationError) Error() string
- func (e CreateCharacterRequestValidationError) ErrorName() string
- func (e CreateCharacterRequestValidationError) Field() string
- func (e CreateCharacterRequestValidationError) Key() bool
- func (e CreateCharacterRequestValidationError) Reason() string
- type CreateCharacterResponse
- func (*CreateCharacterResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCharacterResponse) GetId() uint32
- func (*CreateCharacterResponse) ProtoMessage()
- func (x *CreateCharacterResponse) ProtoReflect() protoreflect.Message
- func (x *CreateCharacterResponse) Reset()
- func (x *CreateCharacterResponse) String() string
- func (m *CreateCharacterResponse) Validate() error
- type CreateCharacterResponseValidationError
- func (e CreateCharacterResponseValidationError) Cause() error
- func (e CreateCharacterResponseValidationError) Error() string
- func (e CreateCharacterResponseValidationError) ErrorName() string
- func (e CreateCharacterResponseValidationError) Field() string
- func (e CreateCharacterResponseValidationError) Key() bool
- func (e CreateCharacterResponseValidationError) Reason() string
- type DeathStreamRequest
- func (*DeathStreamRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeathStreamRequest) GetDeathTypes() []DeathType
- func (*DeathStreamRequest) ProtoMessage()
- func (x *DeathStreamRequest) ProtoReflect() protoreflect.Message
- func (x *DeathStreamRequest) Reset()
- func (x *DeathStreamRequest) String() string
- func (m *DeathStreamRequest) Validate() error
- type DeathStreamRequestValidationError
- func (e DeathStreamRequestValidationError) Cause() error
- func (e DeathStreamRequestValidationError) Error() string
- func (e DeathStreamRequestValidationError) ErrorName() string
- func (e DeathStreamRequestValidationError) Field() string
- func (e DeathStreamRequestValidationError) Key() bool
- func (e DeathStreamRequestValidationError) Reason() string
- type DeathStreamResponse
- func (*DeathStreamResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeathStreamResponse) GetCharacter() *Character
- func (x *DeathStreamResponse) GetDeathType() DeathType
- func (*DeathStreamResponse) ProtoMessage()
- func (x *DeathStreamResponse) ProtoReflect() protoreflect.Message
- func (x *DeathStreamResponse) Reset()
- func (x *DeathStreamResponse) String() string
- func (m *DeathStreamResponse) Validate() error
- type DeathStreamResponseValidationError
- func (e DeathStreamResponseValidationError) Cause() error
- func (e DeathStreamResponseValidationError) Error() string
- func (e DeathStreamResponseValidationError) ErrorName() string
- func (e DeathStreamResponseValidationError) Field() string
- func (e DeathStreamResponseValidationError) Key() bool
- func (e DeathStreamResponseValidationError) Reason() string
- type DeathType
- type DeleteCharacterRequest
- func (*DeleteCharacterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteCharacterRequest) GetId() uint32
- func (*DeleteCharacterRequest) ProtoMessage()
- func (x *DeleteCharacterRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteCharacterRequest) Reset()
- func (x *DeleteCharacterRequest) String() string
- func (m *DeleteCharacterRequest) Validate() error
- type DeleteCharacterRequestValidationError
- func (e DeleteCharacterRequestValidationError) Cause() error
- func (e DeleteCharacterRequestValidationError) Error() string
- func (e DeleteCharacterRequestValidationError) ErrorName() string
- func (e DeleteCharacterRequestValidationError) Field() string
- func (e DeleteCharacterRequestValidationError) Key() bool
- func (e DeleteCharacterRequestValidationError) Reason() string
- type DeleteCharacterResponse
- func (*DeleteCharacterResponse) Descriptor() ([]byte, []int)deprecated
- func (*DeleteCharacterResponse) ProtoMessage()
- func (x *DeleteCharacterResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteCharacterResponse) Reset()
- func (x *DeleteCharacterResponse) String() string
- func (m *DeleteCharacterResponse) Validate() error
- type DeleteCharacterResponseValidationError
- func (e DeleteCharacterResponseValidationError) Cause() error
- func (e DeleteCharacterResponseValidationError) Error() string
- func (e DeleteCharacterResponseValidationError) ErrorName() string
- func (e DeleteCharacterResponseValidationError) Field() string
- func (e DeleteCharacterResponseValidationError) Key() bool
- func (e DeleteCharacterResponseValidationError) Reason() string
- type GetCharacterRequest
- func (*GetCharacterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetCharacterRequest) GetId() uint32
- func (*GetCharacterRequest) ProtoMessage()
- func (x *GetCharacterRequest) ProtoReflect() protoreflect.Message
- func (x *GetCharacterRequest) Reset()
- func (x *GetCharacterRequest) String() string
- func (m *GetCharacterRequest) Validate() error
- type GetCharacterRequestValidationError
- func (e GetCharacterRequestValidationError) Cause() error
- func (e GetCharacterRequestValidationError) Error() string
- func (e GetCharacterRequestValidationError) ErrorName() string
- func (e GetCharacterRequestValidationError) Field() string
- func (e GetCharacterRequestValidationError) Key() bool
- func (e GetCharacterRequestValidationError) Reason() string
- type GetCharacterResponse
- func (*GetCharacterResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetCharacterResponse) GetAge() uint32
- func (x *GetCharacterResponse) GetClothesId() uint32
- func (x *GetCharacterResponse) GetFirstName() string
- func (x *GetCharacterResponse) GetId() uint32
- func (x *GetCharacterResponse) GetOwnerId() uint32
- func (x *GetCharacterResponse) GetSecondName() string
- func (x *GetCharacterResponse) GetSex() uint32
- func (x *GetCharacterResponse) GetX() float32
- func (x *GetCharacterResponse) GetY() float32
- func (x *GetCharacterResponse) GetZ() float32
- func (*GetCharacterResponse) ProtoMessage()
- func (x *GetCharacterResponse) ProtoReflect() protoreflect.Message
- func (x *GetCharacterResponse) Reset()
- func (x *GetCharacterResponse) String() string
- func (m *GetCharacterResponse) Validate() error
- type GetCharacterResponseValidationError
- func (e GetCharacterResponseValidationError) Cause() error
- func (e GetCharacterResponseValidationError) Error() string
- func (e GetCharacterResponseValidationError) ErrorName() string
- func (e GetCharacterResponseValidationError) Field() string
- func (e GetCharacterResponseValidationError) Key() bool
- func (e GetCharacterResponseValidationError) Reason() string
- type MruVCharactersServiceClient
- type MruVCharactersServiceServer
- type MruVCharactersService_DeathsStreamClient
- type MruVCharactersService_DeathsStreamServer
- type UnimplementedMruVCharactersServiceServer
- func (*UnimplementedMruVCharactersServiceServer) ChangeClothes(context.Context, *ChangeClothesRequest) (*ChangeClothesResponse, error)
- func (*UnimplementedMruVCharactersServiceServer) CreateCharacter(context.Context, *CreateCharacterRequest) (*CreateCharacterResponse, error)
- func (*UnimplementedMruVCharactersServiceServer) DeathsStream(*DeathStreamRequest, MruVCharactersService_DeathsStreamServer) error
- func (*UnimplementedMruVCharactersServiceServer) DeleteCharacter(context.Context, *DeleteCharacterRequest) (*DeleteCharacterResponse, error)
- func (*UnimplementedMruVCharactersServiceServer) GetCharacter(context.Context, *GetCharacterRequest) (*GetCharacterResponse, error)
- func (*UnimplementedMruVCharactersServiceServer) GetServiceStatus(context.Context, *common.ServiceStatusRequest) (*common.ServiceStatusResponse, error)
- func (*UnimplementedMruVCharactersServiceServer) GetServiceVersion(context.Context, *common.VersionRequest) (*common.VersionResponse, error)
- func (*UnimplementedMruVCharactersServiceServer) PermanentCharacterKill(context.Context, *CharacterID) (*CharacterID, error)
- func (*UnimplementedMruVCharactersServiceServer) UpdateCharacter(context.Context, *UpdateCharacterRequest) (*UpdateCharacterResponse, error)
- type UpdateCharacterRequest
- func (*UpdateCharacterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateCharacterRequest) GetId() uint32
- func (*UpdateCharacterRequest) ProtoMessage()
- func (x *UpdateCharacterRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateCharacterRequest) Reset()
- func (x *UpdateCharacterRequest) String() string
- func (m *UpdateCharacterRequest) Validate() error
- type UpdateCharacterRequestValidationError
- func (e UpdateCharacterRequestValidationError) Cause() error
- func (e UpdateCharacterRequestValidationError) Error() string
- func (e UpdateCharacterRequestValidationError) ErrorName() string
- func (e UpdateCharacterRequestValidationError) Field() string
- func (e UpdateCharacterRequestValidationError) Key() bool
- func (e UpdateCharacterRequestValidationError) Reason() string
- type UpdateCharacterResponse
- func (*UpdateCharacterResponse) Descriptor() ([]byte, []int)deprecated
- func (*UpdateCharacterResponse) ProtoMessage()
- func (x *UpdateCharacterResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateCharacterResponse) Reset()
- func (x *UpdateCharacterResponse) String() string
- func (m *UpdateCharacterResponse) Validate() error
- type UpdateCharacterResponseValidationError
- func (e UpdateCharacterResponseValidationError) Cause() error
- func (e UpdateCharacterResponseValidationError) Error() string
- func (e UpdateCharacterResponseValidationError) ErrorName() string
- func (e UpdateCharacterResponseValidationError) Field() string
- func (e UpdateCharacterResponseValidationError) Key() bool
- func (e UpdateCharacterResponseValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var ( DeathType_name = map[int32]string{ 0: "DEATH_TYPE_NONE", 1: "DEATH_TYPE_BW", 2: "DEATH_TYPE_BW_KILL", 3: "DEATH_TYPE_CK", } DeathType_value = map[string]int32{ "DEATH_TYPE_NONE": 0, "DEATH_TYPE_BW": 1, "DEATH_TYPE_BW_KILL": 2, "DEATH_TYPE_CK": 3, } )
Enum value maps for DeathType.
var File_characters_characters_proto protoreflect.FileDescriptor
Functions ¶
func RegisterMruVCharactersServiceHandler ¶
func RegisterMruVCharactersServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterMruVCharactersServiceHandler registers the http handlers for service MruVCharactersService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterMruVCharactersServiceHandlerClient ¶
func RegisterMruVCharactersServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MruVCharactersServiceClient) error
RegisterMruVCharactersServiceHandlerClient registers the http handlers for service MruVCharactersService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "MruVCharactersServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "MruVCharactersServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "MruVCharactersServiceClient" to call the correct interceptors.
func RegisterMruVCharactersServiceHandlerFromEndpoint ¶
func RegisterMruVCharactersServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterMruVCharactersServiceHandlerFromEndpoint is same as RegisterMruVCharactersServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterMruVCharactersServiceHandlerServer ¶
func RegisterMruVCharactersServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MruVCharactersServiceServer) error
RegisterMruVCharactersServiceHandlerServer registers the http handlers for service MruVCharactersService to "mux". UnaryRPC :call MruVCharactersServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterMruVCharactersServiceHandlerFromEndpoint instead.
func RegisterMruVCharactersServiceServer ¶
func RegisterMruVCharactersServiceServer(s *grpc.Server, srv MruVCharactersServiceServer)
Types ¶
type ChangeClothesRequest ¶
type ChangeClothesRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` ClothesId uint32 `protobuf:"varint,2,opt,name=clothes_id,json=clothesId,proto3" json:"clothes_id,omitempty"` // contains filtered or unexported fields }
Request message for rpc `ChangeClothes`.
func (*ChangeClothesRequest) Descriptor
deprecated
func (*ChangeClothesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ChangeClothesRequest.ProtoReflect.Descriptor instead.
func (*ChangeClothesRequest) GetClothesId ¶
func (x *ChangeClothesRequest) GetClothesId() uint32
func (*ChangeClothesRequest) GetId ¶
func (x *ChangeClothesRequest) GetId() uint32
func (*ChangeClothesRequest) ProtoMessage ¶
func (*ChangeClothesRequest) ProtoMessage()
func (*ChangeClothesRequest) ProtoReflect ¶ added in v0.8.4
func (x *ChangeClothesRequest) ProtoReflect() protoreflect.Message
func (*ChangeClothesRequest) Reset ¶
func (x *ChangeClothesRequest) Reset()
func (*ChangeClothesRequest) String ¶
func (x *ChangeClothesRequest) String() string
func (*ChangeClothesRequest) Validate ¶
func (m *ChangeClothesRequest) Validate() error
Validate checks the field values on ChangeClothesRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ChangeClothesRequestValidationError ¶
type ChangeClothesRequestValidationError struct {
// contains filtered or unexported fields
}
ChangeClothesRequestValidationError is the validation error returned by ChangeClothesRequest.Validate if the designated constraints aren't met.
func (ChangeClothesRequestValidationError) Cause ¶
func (e ChangeClothesRequestValidationError) Cause() error
Cause function returns cause value.
func (ChangeClothesRequestValidationError) Error ¶
func (e ChangeClothesRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ChangeClothesRequestValidationError) ErrorName ¶
func (e ChangeClothesRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ChangeClothesRequestValidationError) Field ¶
func (e ChangeClothesRequestValidationError) Field() string
Field function returns field value.
func (ChangeClothesRequestValidationError) Key ¶
func (e ChangeClothesRequestValidationError) Key() bool
Key function returns key value.
func (ChangeClothesRequestValidationError) Reason ¶
func (e ChangeClothesRequestValidationError) Reason() string
Reason function returns reason value.
type ChangeClothesResponse ¶
type ChangeClothesResponse struct {
// contains filtered or unexported fields
}
Response message for rpc `ChangeClothes`.
func (*ChangeClothesResponse) Descriptor
deprecated
func (*ChangeClothesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ChangeClothesResponse.ProtoReflect.Descriptor instead.
func (*ChangeClothesResponse) ProtoMessage ¶
func (*ChangeClothesResponse) ProtoMessage()
func (*ChangeClothesResponse) ProtoReflect ¶ added in v0.8.4
func (x *ChangeClothesResponse) ProtoReflect() protoreflect.Message
func (*ChangeClothesResponse) Reset ¶
func (x *ChangeClothesResponse) Reset()
func (*ChangeClothesResponse) String ¶
func (x *ChangeClothesResponse) String() string
func (*ChangeClothesResponse) Validate ¶
func (m *ChangeClothesResponse) Validate() error
Validate checks the field values on ChangeClothesResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ChangeClothesResponseValidationError ¶
type ChangeClothesResponseValidationError struct {
// contains filtered or unexported fields
}
ChangeClothesResponseValidationError is the validation error returned by ChangeClothesResponse.Validate if the designated constraints aren't met.
func (ChangeClothesResponseValidationError) Cause ¶
func (e ChangeClothesResponseValidationError) Cause() error
Cause function returns cause value.
func (ChangeClothesResponseValidationError) Error ¶
func (e ChangeClothesResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ChangeClothesResponseValidationError) ErrorName ¶
func (e ChangeClothesResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ChangeClothesResponseValidationError) Field ¶
func (e ChangeClothesResponseValidationError) Field() string
Field function returns field value.
func (ChangeClothesResponseValidationError) Key ¶
func (e ChangeClothesResponseValidationError) Key() bool
Key function returns key value.
func (ChangeClothesResponseValidationError) Reason ¶
func (e ChangeClothesResponseValidationError) Reason() string
Reason function returns reason value.
type Character ¶
type Character struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` OwnerId uint32 `protobuf:"varint,2,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` FirstName string `protobuf:"bytes,3,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` SecondName string `protobuf:"bytes,4,opt,name=second_name,json=secondName,proto3" json:"second_name,omitempty"` Age uint32 `protobuf:"varint,5,opt,name=age,proto3" json:"age,omitempty"` Sex uint32 `protobuf:"varint,6,opt,name=sex,proto3" json:"sex,omitempty"` ClothesId uint32 `protobuf:"varint,7,opt,name=clothes_id,json=clothesId,proto3" json:"clothes_id,omitempty"` //TODO: create clothes api X float32 `protobuf:"fixed32,8,opt,name=x,proto3" json:"x,omitempty"` Y float32 `protobuf:"fixed32,9,opt,name=y,proto3" json:"y,omitempty"` Z float32 `protobuf:"fixed32,10,opt,name=z,proto3" json:"z,omitempty"` // contains filtered or unexported fields }
func (*Character) Descriptor
deprecated
func (*Character) GetClothesId ¶
func (*Character) GetFirstName ¶
func (*Character) GetOwnerId ¶
func (*Character) GetSecondName ¶
func (*Character) ProtoMessage ¶
func (*Character) ProtoMessage()
func (*Character) ProtoReflect ¶ added in v0.8.4
func (x *Character) ProtoReflect() protoreflect.Message
type CharacterID ¶
type CharacterID struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*CharacterID) Descriptor
deprecated
func (*CharacterID) Descriptor() ([]byte, []int)
Deprecated: Use CharacterID.ProtoReflect.Descriptor instead.
func (*CharacterID) GetId ¶
func (x *CharacterID) GetId() uint32
func (*CharacterID) ProtoMessage ¶
func (*CharacterID) ProtoMessage()
func (*CharacterID) ProtoReflect ¶ added in v0.8.4
func (x *CharacterID) ProtoReflect() protoreflect.Message
func (*CharacterID) Reset ¶
func (x *CharacterID) Reset()
func (*CharacterID) String ¶
func (x *CharacterID) String() string
func (*CharacterID) Validate ¶
func (m *CharacterID) Validate() error
Validate checks the field values on CharacterID with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type CharacterIDValidationError ¶
type CharacterIDValidationError struct {
// contains filtered or unexported fields
}
CharacterIDValidationError is the validation error returned by CharacterID.Validate if the designated constraints aren't met.
func (CharacterIDValidationError) Cause ¶
func (e CharacterIDValidationError) Cause() error
Cause function returns cause value.
func (CharacterIDValidationError) Error ¶
func (e CharacterIDValidationError) Error() string
Error satisfies the builtin error interface
func (CharacterIDValidationError) ErrorName ¶
func (e CharacterIDValidationError) ErrorName() string
ErrorName returns error name.
func (CharacterIDValidationError) Field ¶
func (e CharacterIDValidationError) Field() string
Field function returns field value.
func (CharacterIDValidationError) Key ¶
func (e CharacterIDValidationError) Key() bool
Key function returns key value.
func (CharacterIDValidationError) Reason ¶
func (e CharacterIDValidationError) Reason() string
Reason function returns reason value.
type CharacterValidationError ¶
type CharacterValidationError struct {
// contains filtered or unexported fields
}
CharacterValidationError is the validation error returned by Character.Validate if the designated constraints aren't met.
func (CharacterValidationError) Cause ¶
func (e CharacterValidationError) Cause() error
Cause function returns cause value.
func (CharacterValidationError) Error ¶
func (e CharacterValidationError) Error() string
Error satisfies the builtin error interface
func (CharacterValidationError) ErrorName ¶
func (e CharacterValidationError) ErrorName() string
ErrorName returns error name.
func (CharacterValidationError) Field ¶
func (e CharacterValidationError) Field() string
Field function returns field value.
func (CharacterValidationError) Key ¶
func (e CharacterValidationError) Key() bool
Key function returns key value.
func (CharacterValidationError) Reason ¶
func (e CharacterValidationError) Reason() string
Reason function returns reason value.
type CreateCharacterRequest ¶
type CreateCharacterRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` OwnerId uint32 `protobuf:"varint,2,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` FirstName string `protobuf:"bytes,3,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` SecondName string `protobuf:"bytes,4,opt,name=second_name,json=secondName,proto3" json:"second_name,omitempty"` Age uint32 `protobuf:"varint,5,opt,name=age,proto3" json:"age,omitempty"` Sex uint32 `protobuf:"varint,6,opt,name=sex,proto3" json:"sex,omitempty"` // contains filtered or unexported fields }
Request message for rpc `CreateCharacter`.
func (*CreateCharacterRequest) Descriptor
deprecated
func (*CreateCharacterRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateCharacterRequest.ProtoReflect.Descriptor instead.
func (*CreateCharacterRequest) GetAge ¶
func (x *CreateCharacterRequest) GetAge() uint32
func (*CreateCharacterRequest) GetFirstName ¶
func (x *CreateCharacterRequest) GetFirstName() string
func (*CreateCharacterRequest) GetId ¶
func (x *CreateCharacterRequest) GetId() uint32
func (*CreateCharacterRequest) GetOwnerId ¶
func (x *CreateCharacterRequest) GetOwnerId() uint32
func (*CreateCharacterRequest) GetSecondName ¶
func (x *CreateCharacterRequest) GetSecondName() string
func (*CreateCharacterRequest) GetSex ¶
func (x *CreateCharacterRequest) GetSex() uint32
func (*CreateCharacterRequest) ProtoMessage ¶
func (*CreateCharacterRequest) ProtoMessage()
func (*CreateCharacterRequest) ProtoReflect ¶ added in v0.8.4
func (x *CreateCharacterRequest) ProtoReflect() protoreflect.Message
func (*CreateCharacterRequest) Reset ¶
func (x *CreateCharacterRequest) Reset()
func (*CreateCharacterRequest) String ¶
func (x *CreateCharacterRequest) String() string
func (*CreateCharacterRequest) Validate ¶
func (m *CreateCharacterRequest) Validate() error
Validate checks the field values on CreateCharacterRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type CreateCharacterRequestValidationError ¶
type CreateCharacterRequestValidationError struct {
// contains filtered or unexported fields
}
CreateCharacterRequestValidationError is the validation error returned by CreateCharacterRequest.Validate if the designated constraints aren't met.
func (CreateCharacterRequestValidationError) Cause ¶
func (e CreateCharacterRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateCharacterRequestValidationError) Error ¶
func (e CreateCharacterRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateCharacterRequestValidationError) ErrorName ¶
func (e CreateCharacterRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateCharacterRequestValidationError) Field ¶
func (e CreateCharacterRequestValidationError) Field() string
Field function returns field value.
func (CreateCharacterRequestValidationError) Key ¶
func (e CreateCharacterRequestValidationError) Key() bool
Key function returns key value.
func (CreateCharacterRequestValidationError) Reason ¶
func (e CreateCharacterRequestValidationError) Reason() string
Reason function returns reason value.
type CreateCharacterResponse ¶
type CreateCharacterResponse struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
Response message for rpc `CreateCharacter`.
func (*CreateCharacterResponse) Descriptor
deprecated
func (*CreateCharacterResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateCharacterResponse.ProtoReflect.Descriptor instead.
func (*CreateCharacterResponse) GetId ¶
func (x *CreateCharacterResponse) GetId() uint32
func (*CreateCharacterResponse) ProtoMessage ¶
func (*CreateCharacterResponse) ProtoMessage()
func (*CreateCharacterResponse) ProtoReflect ¶ added in v0.8.4
func (x *CreateCharacterResponse) ProtoReflect() protoreflect.Message
func (*CreateCharacterResponse) Reset ¶
func (x *CreateCharacterResponse) Reset()
func (*CreateCharacterResponse) String ¶
func (x *CreateCharacterResponse) String() string
func (*CreateCharacterResponse) Validate ¶
func (m *CreateCharacterResponse) Validate() error
Validate checks the field values on CreateCharacterResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type CreateCharacterResponseValidationError ¶
type CreateCharacterResponseValidationError struct {
// contains filtered or unexported fields
}
CreateCharacterResponseValidationError is the validation error returned by CreateCharacterResponse.Validate if the designated constraints aren't met.
func (CreateCharacterResponseValidationError) Cause ¶
func (e CreateCharacterResponseValidationError) Cause() error
Cause function returns cause value.
func (CreateCharacterResponseValidationError) Error ¶
func (e CreateCharacterResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreateCharacterResponseValidationError) ErrorName ¶
func (e CreateCharacterResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreateCharacterResponseValidationError) Field ¶
func (e CreateCharacterResponseValidationError) Field() string
Field function returns field value.
func (CreateCharacterResponseValidationError) Key ¶
func (e CreateCharacterResponseValidationError) Key() bool
Key function returns key value.
func (CreateCharacterResponseValidationError) Reason ¶
func (e CreateCharacterResponseValidationError) Reason() string
Reason function returns reason value.
type DeathStreamRequest ¶
type DeathStreamRequest struct { DeathTypes []DeathType `` /* 130-byte string literal not displayed */ // contains filtered or unexported fields }
func (*DeathStreamRequest) Descriptor
deprecated
func (*DeathStreamRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeathStreamRequest.ProtoReflect.Descriptor instead.
func (*DeathStreamRequest) GetDeathTypes ¶
func (x *DeathStreamRequest) GetDeathTypes() []DeathType
func (*DeathStreamRequest) ProtoMessage ¶
func (*DeathStreamRequest) ProtoMessage()
func (*DeathStreamRequest) ProtoReflect ¶ added in v0.8.4
func (x *DeathStreamRequest) ProtoReflect() protoreflect.Message
func (*DeathStreamRequest) Reset ¶
func (x *DeathStreamRequest) Reset()
func (*DeathStreamRequest) String ¶
func (x *DeathStreamRequest) String() string
func (*DeathStreamRequest) Validate ¶
func (m *DeathStreamRequest) Validate() error
Validate checks the field values on DeathStreamRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type DeathStreamRequestValidationError ¶
type DeathStreamRequestValidationError struct {
// contains filtered or unexported fields
}
DeathStreamRequestValidationError is the validation error returned by DeathStreamRequest.Validate if the designated constraints aren't met.
func (DeathStreamRequestValidationError) Cause ¶
func (e DeathStreamRequestValidationError) Cause() error
Cause function returns cause value.
func (DeathStreamRequestValidationError) Error ¶
func (e DeathStreamRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeathStreamRequestValidationError) ErrorName ¶
func (e DeathStreamRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeathStreamRequestValidationError) Field ¶
func (e DeathStreamRequestValidationError) Field() string
Field function returns field value.
func (DeathStreamRequestValidationError) Key ¶
func (e DeathStreamRequestValidationError) Key() bool
Key function returns key value.
func (DeathStreamRequestValidationError) Reason ¶
func (e DeathStreamRequestValidationError) Reason() string
Reason function returns reason value.
type DeathStreamResponse ¶
type DeathStreamResponse struct { Character *Character `protobuf:"bytes,1,opt,name=character,proto3" json:"character,omitempty"` DeathType DeathType `protobuf:"varint,2,opt,name=death_type,json=deathType,proto3,enum=mruv.characters.DeathType" json:"death_type,omitempty"` // contains filtered or unexported fields }
func (*DeathStreamResponse) Descriptor
deprecated
func (*DeathStreamResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeathStreamResponse.ProtoReflect.Descriptor instead.
func (*DeathStreamResponse) GetCharacter ¶
func (x *DeathStreamResponse) GetCharacter() *Character
func (*DeathStreamResponse) GetDeathType ¶
func (x *DeathStreamResponse) GetDeathType() DeathType
func (*DeathStreamResponse) ProtoMessage ¶
func (*DeathStreamResponse) ProtoMessage()
func (*DeathStreamResponse) ProtoReflect ¶ added in v0.8.4
func (x *DeathStreamResponse) ProtoReflect() protoreflect.Message
func (*DeathStreamResponse) Reset ¶
func (x *DeathStreamResponse) Reset()
func (*DeathStreamResponse) String ¶
func (x *DeathStreamResponse) String() string
func (*DeathStreamResponse) Validate ¶
func (m *DeathStreamResponse) Validate() error
Validate checks the field values on DeathStreamResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type DeathStreamResponseValidationError ¶
type DeathStreamResponseValidationError struct {
// contains filtered or unexported fields
}
DeathStreamResponseValidationError is the validation error returned by DeathStreamResponse.Validate if the designated constraints aren't met.
func (DeathStreamResponseValidationError) Cause ¶
func (e DeathStreamResponseValidationError) Cause() error
Cause function returns cause value.
func (DeathStreamResponseValidationError) Error ¶
func (e DeathStreamResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DeathStreamResponseValidationError) ErrorName ¶
func (e DeathStreamResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DeathStreamResponseValidationError) Field ¶
func (e DeathStreamResponseValidationError) Field() string
Field function returns field value.
func (DeathStreamResponseValidationError) Key ¶
func (e DeathStreamResponseValidationError) Key() bool
Key function returns key value.
func (DeathStreamResponseValidationError) Reason ¶
func (e DeathStreamResponseValidationError) Reason() string
Reason function returns reason value.
type DeathType ¶
type DeathType int32
func (DeathType) Descriptor ¶ added in v0.8.4
func (DeathType) Descriptor() protoreflect.EnumDescriptor
func (DeathType) EnumDescriptor
deprecated
func (DeathType) Number ¶ added in v0.8.4
func (x DeathType) Number() protoreflect.EnumNumber
func (DeathType) Type ¶ added in v0.8.4
func (DeathType) Type() protoreflect.EnumType
type DeleteCharacterRequest ¶
type DeleteCharacterRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
Request message for rpc `DeleteCharacter`.
func (*DeleteCharacterRequest) Descriptor
deprecated
func (*DeleteCharacterRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteCharacterRequest.ProtoReflect.Descriptor instead.
func (*DeleteCharacterRequest) GetId ¶
func (x *DeleteCharacterRequest) GetId() uint32
func (*DeleteCharacterRequest) ProtoMessage ¶
func (*DeleteCharacterRequest) ProtoMessage()
func (*DeleteCharacterRequest) ProtoReflect ¶ added in v0.8.4
func (x *DeleteCharacterRequest) ProtoReflect() protoreflect.Message
func (*DeleteCharacterRequest) Reset ¶
func (x *DeleteCharacterRequest) Reset()
func (*DeleteCharacterRequest) String ¶
func (x *DeleteCharacterRequest) String() string
func (*DeleteCharacterRequest) Validate ¶
func (m *DeleteCharacterRequest) Validate() error
Validate checks the field values on DeleteCharacterRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type DeleteCharacterRequestValidationError ¶
type DeleteCharacterRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteCharacterRequestValidationError is the validation error returned by DeleteCharacterRequest.Validate if the designated constraints aren't met.
func (DeleteCharacterRequestValidationError) Cause ¶
func (e DeleteCharacterRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteCharacterRequestValidationError) Error ¶
func (e DeleteCharacterRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteCharacterRequestValidationError) ErrorName ¶
func (e DeleteCharacterRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteCharacterRequestValidationError) Field ¶
func (e DeleteCharacterRequestValidationError) Field() string
Field function returns field value.
func (DeleteCharacterRequestValidationError) Key ¶
func (e DeleteCharacterRequestValidationError) Key() bool
Key function returns key value.
func (DeleteCharacterRequestValidationError) Reason ¶
func (e DeleteCharacterRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteCharacterResponse ¶
type DeleteCharacterResponse struct {
// contains filtered or unexported fields
}
Response message for rpc `DeleteCharacter`.
func (*DeleteCharacterResponse) Descriptor
deprecated
func (*DeleteCharacterResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteCharacterResponse.ProtoReflect.Descriptor instead.
func (*DeleteCharacterResponse) ProtoMessage ¶
func (*DeleteCharacterResponse) ProtoMessage()
func (*DeleteCharacterResponse) ProtoReflect ¶ added in v0.8.4
func (x *DeleteCharacterResponse) ProtoReflect() protoreflect.Message
func (*DeleteCharacterResponse) Reset ¶
func (x *DeleteCharacterResponse) Reset()
func (*DeleteCharacterResponse) String ¶
func (x *DeleteCharacterResponse) String() string
func (*DeleteCharacterResponse) Validate ¶
func (m *DeleteCharacterResponse) Validate() error
Validate checks the field values on DeleteCharacterResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type DeleteCharacterResponseValidationError ¶
type DeleteCharacterResponseValidationError struct {
// contains filtered or unexported fields
}
DeleteCharacterResponseValidationError is the validation error returned by DeleteCharacterResponse.Validate if the designated constraints aren't met.
func (DeleteCharacterResponseValidationError) Cause ¶
func (e DeleteCharacterResponseValidationError) Cause() error
Cause function returns cause value.
func (DeleteCharacterResponseValidationError) Error ¶
func (e DeleteCharacterResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteCharacterResponseValidationError) ErrorName ¶
func (e DeleteCharacterResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteCharacterResponseValidationError) Field ¶
func (e DeleteCharacterResponseValidationError) Field() string
Field function returns field value.
func (DeleteCharacterResponseValidationError) Key ¶
func (e DeleteCharacterResponseValidationError) Key() bool
Key function returns key value.
func (DeleteCharacterResponseValidationError) Reason ¶
func (e DeleteCharacterResponseValidationError) Reason() string
Reason function returns reason value.
type GetCharacterRequest ¶
type GetCharacterRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
Request message for rpc `GetCharacter`.
func (*GetCharacterRequest) Descriptor
deprecated
func (*GetCharacterRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCharacterRequest.ProtoReflect.Descriptor instead.
func (*GetCharacterRequest) GetId ¶
func (x *GetCharacterRequest) GetId() uint32
func (*GetCharacterRequest) ProtoMessage ¶
func (*GetCharacterRequest) ProtoMessage()
func (*GetCharacterRequest) ProtoReflect ¶ added in v0.8.4
func (x *GetCharacterRequest) ProtoReflect() protoreflect.Message
func (*GetCharacterRequest) Reset ¶
func (x *GetCharacterRequest) Reset()
func (*GetCharacterRequest) String ¶
func (x *GetCharacterRequest) String() string
func (*GetCharacterRequest) Validate ¶
func (m *GetCharacterRequest) Validate() error
Validate checks the field values on GetCharacterRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type GetCharacterRequestValidationError ¶
type GetCharacterRequestValidationError struct {
// contains filtered or unexported fields
}
GetCharacterRequestValidationError is the validation error returned by GetCharacterRequest.Validate if the designated constraints aren't met.
func (GetCharacterRequestValidationError) Cause ¶
func (e GetCharacterRequestValidationError) Cause() error
Cause function returns cause value.
func (GetCharacterRequestValidationError) Error ¶
func (e GetCharacterRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetCharacterRequestValidationError) ErrorName ¶
func (e GetCharacterRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetCharacterRequestValidationError) Field ¶
func (e GetCharacterRequestValidationError) Field() string
Field function returns field value.
func (GetCharacterRequestValidationError) Key ¶
func (e GetCharacterRequestValidationError) Key() bool
Key function returns key value.
func (GetCharacterRequestValidationError) Reason ¶
func (e GetCharacterRequestValidationError) Reason() string
Reason function returns reason value.
type GetCharacterResponse ¶
type GetCharacterResponse struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` OwnerId uint32 `protobuf:"varint,2,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` FirstName string `protobuf:"bytes,3,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` SecondName string `protobuf:"bytes,4,opt,name=second_name,json=secondName,proto3" json:"second_name,omitempty"` Age uint32 `protobuf:"varint,5,opt,name=age,proto3" json:"age,omitempty"` Sex uint32 `protobuf:"varint,6,opt,name=sex,proto3" json:"sex,omitempty"` ClothesId uint32 `protobuf:"varint,7,opt,name=clothes_id,json=clothesId,proto3" json:"clothes_id,omitempty"` X float32 `protobuf:"fixed32,8,opt,name=x,proto3" json:"x,omitempty"` Y float32 `protobuf:"fixed32,9,opt,name=y,proto3" json:"y,omitempty"` Z float32 `protobuf:"fixed32,10,opt,name=z,proto3" json:"z,omitempty"` // contains filtered or unexported fields }
Response message for rpc `GetCharacter`.
func (*GetCharacterResponse) Descriptor
deprecated
func (*GetCharacterResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetCharacterResponse.ProtoReflect.Descriptor instead.
func (*GetCharacterResponse) GetAge ¶
func (x *GetCharacterResponse) GetAge() uint32
func (*GetCharacterResponse) GetClothesId ¶
func (x *GetCharacterResponse) GetClothesId() uint32
func (*GetCharacterResponse) GetFirstName ¶
func (x *GetCharacterResponse) GetFirstName() string
func (*GetCharacterResponse) GetId ¶
func (x *GetCharacterResponse) GetId() uint32
func (*GetCharacterResponse) GetOwnerId ¶
func (x *GetCharacterResponse) GetOwnerId() uint32
func (*GetCharacterResponse) GetSecondName ¶
func (x *GetCharacterResponse) GetSecondName() string
func (*GetCharacterResponse) GetSex ¶
func (x *GetCharacterResponse) GetSex() uint32
func (*GetCharacterResponse) GetX ¶
func (x *GetCharacterResponse) GetX() float32
func (*GetCharacterResponse) GetY ¶
func (x *GetCharacterResponse) GetY() float32
func (*GetCharacterResponse) GetZ ¶
func (x *GetCharacterResponse) GetZ() float32
func (*GetCharacterResponse) ProtoMessage ¶
func (*GetCharacterResponse) ProtoMessage()
func (*GetCharacterResponse) ProtoReflect ¶ added in v0.8.4
func (x *GetCharacterResponse) ProtoReflect() protoreflect.Message
func (*GetCharacterResponse) Reset ¶
func (x *GetCharacterResponse) Reset()
func (*GetCharacterResponse) String ¶
func (x *GetCharacterResponse) String() string
func (*GetCharacterResponse) Validate ¶
func (m *GetCharacterResponse) Validate() error
Validate checks the field values on GetCharacterResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type GetCharacterResponseValidationError ¶
type GetCharacterResponseValidationError struct {
// contains filtered or unexported fields
}
GetCharacterResponseValidationError is the validation error returned by GetCharacterResponse.Validate if the designated constraints aren't met.
func (GetCharacterResponseValidationError) Cause ¶
func (e GetCharacterResponseValidationError) Cause() error
Cause function returns cause value.
func (GetCharacterResponseValidationError) Error ¶
func (e GetCharacterResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetCharacterResponseValidationError) ErrorName ¶
func (e GetCharacterResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetCharacterResponseValidationError) Field ¶
func (e GetCharacterResponseValidationError) Field() string
Field function returns field value.
func (GetCharacterResponseValidationError) Key ¶
func (e GetCharacterResponseValidationError) Key() bool
Key function returns key value.
func (GetCharacterResponseValidationError) Reason ¶
func (e GetCharacterResponseValidationError) Reason() string
Reason function returns reason value.
type MruVCharactersServiceClient ¶
type MruVCharactersServiceClient interface { // Create a character. CreateCharacter(ctx context.Context, in *CreateCharacterRequest, opts ...grpc.CallOption) (*CreateCharacterResponse, error) // Get a character. GetCharacter(ctx context.Context, in *GetCharacterRequest, opts ...grpc.CallOption) (*GetCharacterResponse, error) // Update a character. UpdateCharacter(ctx context.Context, in *UpdateCharacterRequest, opts ...grpc.CallOption) (*UpdateCharacterResponse, error) // Delete a character. DeleteCharacter(ctx context.Context, in *DeleteCharacterRequest, opts ...grpc.CallOption) (*DeleteCharacterResponse, error) // Kill a character. A character that is killed cannot be played anymore. PermanentCharacterKill(ctx context.Context, in *CharacterID, opts ...grpc.CallOption) (*CharacterID, error) // Change player clothes. ChangeClothes(ctx context.Context, in *ChangeClothesRequest, opts ...grpc.CallOption) (*ChangeClothesResponse, error) // Stream of deaths. DeathsStream(ctx context.Context, in *DeathStreamRequest, opts ...grpc.CallOption) (MruVCharactersService_DeathsStreamClient, error) //Service status GetServiceStatus(ctx context.Context, in *common.ServiceStatusRequest, opts ...grpc.CallOption) (*common.ServiceStatusResponse, error) GetServiceVersion(ctx context.Context, in *common.VersionRequest, opts ...grpc.CallOption) (*common.VersionResponse, error) }
MruVCharactersServiceClient is the client API for MruVCharactersService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMruVCharactersServiceClient ¶
func NewMruVCharactersServiceClient(cc grpc.ClientConnInterface) MruVCharactersServiceClient
type MruVCharactersServiceServer ¶
type MruVCharactersServiceServer interface { // Create a character. CreateCharacter(context.Context, *CreateCharacterRequest) (*CreateCharacterResponse, error) // Get a character. GetCharacter(context.Context, *GetCharacterRequest) (*GetCharacterResponse, error) // Update a character. UpdateCharacter(context.Context, *UpdateCharacterRequest) (*UpdateCharacterResponse, error) // Delete a character. DeleteCharacter(context.Context, *DeleteCharacterRequest) (*DeleteCharacterResponse, error) // Kill a character. A character that is killed cannot be played anymore. PermanentCharacterKill(context.Context, *CharacterID) (*CharacterID, error) // Change player clothes. ChangeClothes(context.Context, *ChangeClothesRequest) (*ChangeClothesResponse, error) // Stream of deaths. DeathsStream(*DeathStreamRequest, MruVCharactersService_DeathsStreamServer) error //Service status GetServiceStatus(context.Context, *common.ServiceStatusRequest) (*common.ServiceStatusResponse, error) GetServiceVersion(context.Context, *common.VersionRequest) (*common.VersionResponse, error) }
MruVCharactersServiceServer is the server API for MruVCharactersService service.
type MruVCharactersService_DeathsStreamClient ¶
type MruVCharactersService_DeathsStreamClient interface { Recv() (*DeathStreamResponse, error) grpc.ClientStream }
type MruVCharactersService_DeathsStreamServer ¶
type MruVCharactersService_DeathsStreamServer interface { Send(*DeathStreamResponse) error grpc.ServerStream }
type UnimplementedMruVCharactersServiceServer ¶
type UnimplementedMruVCharactersServiceServer struct { }
UnimplementedMruVCharactersServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedMruVCharactersServiceServer) ChangeClothes ¶
func (*UnimplementedMruVCharactersServiceServer) ChangeClothes(context.Context, *ChangeClothesRequest) (*ChangeClothesResponse, error)
func (*UnimplementedMruVCharactersServiceServer) CreateCharacter ¶
func (*UnimplementedMruVCharactersServiceServer) CreateCharacter(context.Context, *CreateCharacterRequest) (*CreateCharacterResponse, error)
func (*UnimplementedMruVCharactersServiceServer) DeathsStream ¶
func (*UnimplementedMruVCharactersServiceServer) DeathsStream(*DeathStreamRequest, MruVCharactersService_DeathsStreamServer) error
func (*UnimplementedMruVCharactersServiceServer) DeleteCharacter ¶
func (*UnimplementedMruVCharactersServiceServer) DeleteCharacter(context.Context, *DeleteCharacterRequest) (*DeleteCharacterResponse, error)
func (*UnimplementedMruVCharactersServiceServer) GetCharacter ¶
func (*UnimplementedMruVCharactersServiceServer) GetCharacter(context.Context, *GetCharacterRequest) (*GetCharacterResponse, error)
func (*UnimplementedMruVCharactersServiceServer) GetServiceStatus ¶
func (*UnimplementedMruVCharactersServiceServer) GetServiceStatus(context.Context, *common.ServiceStatusRequest) (*common.ServiceStatusResponse, error)
func (*UnimplementedMruVCharactersServiceServer) GetServiceVersion ¶
func (*UnimplementedMruVCharactersServiceServer) GetServiceVersion(context.Context, *common.VersionRequest) (*common.VersionResponse, error)
func (*UnimplementedMruVCharactersServiceServer) PermanentCharacterKill ¶
func (*UnimplementedMruVCharactersServiceServer) PermanentCharacterKill(context.Context, *CharacterID) (*CharacterID, error)
func (*UnimplementedMruVCharactersServiceServer) UpdateCharacter ¶
func (*UnimplementedMruVCharactersServiceServer) UpdateCharacter(context.Context, *UpdateCharacterRequest) (*UpdateCharacterResponse, error)
type UpdateCharacterRequest ¶
type UpdateCharacterRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
Request message for rpc `UpdateCharacter`.
func (*UpdateCharacterRequest) Descriptor
deprecated
func (*UpdateCharacterRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateCharacterRequest.ProtoReflect.Descriptor instead.
func (*UpdateCharacterRequest) GetId ¶
func (x *UpdateCharacterRequest) GetId() uint32
func (*UpdateCharacterRequest) ProtoMessage ¶
func (*UpdateCharacterRequest) ProtoMessage()
func (*UpdateCharacterRequest) ProtoReflect ¶ added in v0.8.4
func (x *UpdateCharacterRequest) ProtoReflect() protoreflect.Message
func (*UpdateCharacterRequest) Reset ¶
func (x *UpdateCharacterRequest) Reset()
func (*UpdateCharacterRequest) String ¶
func (x *UpdateCharacterRequest) String() string
func (*UpdateCharacterRequest) Validate ¶
func (m *UpdateCharacterRequest) Validate() error
Validate checks the field values on UpdateCharacterRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type UpdateCharacterRequestValidationError ¶
type UpdateCharacterRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateCharacterRequestValidationError is the validation error returned by UpdateCharacterRequest.Validate if the designated constraints aren't met.
func (UpdateCharacterRequestValidationError) Cause ¶
func (e UpdateCharacterRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateCharacterRequestValidationError) Error ¶
func (e UpdateCharacterRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateCharacterRequestValidationError) ErrorName ¶
func (e UpdateCharacterRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateCharacterRequestValidationError) Field ¶
func (e UpdateCharacterRequestValidationError) Field() string
Field function returns field value.
func (UpdateCharacterRequestValidationError) Key ¶
func (e UpdateCharacterRequestValidationError) Key() bool
Key function returns key value.
func (UpdateCharacterRequestValidationError) Reason ¶
func (e UpdateCharacterRequestValidationError) Reason() string
Reason function returns reason value.
type UpdateCharacterResponse ¶
type UpdateCharacterResponse struct {
// contains filtered or unexported fields
}
Response message for rpc `UpdateCharacter`.
func (*UpdateCharacterResponse) Descriptor
deprecated
func (*UpdateCharacterResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateCharacterResponse.ProtoReflect.Descriptor instead.
func (*UpdateCharacterResponse) ProtoMessage ¶
func (*UpdateCharacterResponse) ProtoMessage()
func (*UpdateCharacterResponse) ProtoReflect ¶ added in v0.8.4
func (x *UpdateCharacterResponse) ProtoReflect() protoreflect.Message
func (*UpdateCharacterResponse) Reset ¶
func (x *UpdateCharacterResponse) Reset()
func (*UpdateCharacterResponse) String ¶
func (x *UpdateCharacterResponse) String() string
func (*UpdateCharacterResponse) Validate ¶
func (m *UpdateCharacterResponse) Validate() error
Validate checks the field values on UpdateCharacterResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type UpdateCharacterResponseValidationError ¶
type UpdateCharacterResponseValidationError struct {
// contains filtered or unexported fields
}
UpdateCharacterResponseValidationError is the validation error returned by UpdateCharacterResponse.Validate if the designated constraints aren't met.
func (UpdateCharacterResponseValidationError) Cause ¶
func (e UpdateCharacterResponseValidationError) Cause() error
Cause function returns cause value.
func (UpdateCharacterResponseValidationError) Error ¶
func (e UpdateCharacterResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateCharacterResponseValidationError) ErrorName ¶
func (e UpdateCharacterResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateCharacterResponseValidationError) Field ¶
func (e UpdateCharacterResponseValidationError) Field() string
Field function returns field value.
func (UpdateCharacterResponseValidationError) Key ¶
func (e UpdateCharacterResponseValidationError) Key() bool
Key function returns key value.
func (UpdateCharacterResponseValidationError) Reason ¶
func (e UpdateCharacterResponseValidationError) Reason() string
Reason function returns reason value.