characters

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2020 License: MIT Imports: 28 Imported by: 2

Documentation

Overview

Package characters is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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

Cause function returns cause value.

func (ChangeClothesRequestValidationError) Error

Error satisfies the builtin error interface

func (ChangeClothesRequestValidationError) ErrorName

ErrorName returns error name.

func (ChangeClothesRequestValidationError) Field

Field function returns field value.

func (ChangeClothesRequestValidationError) Key

Key function returns key value.

func (ChangeClothesRequestValidationError) Reason

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

Cause function returns cause value.

func (ChangeClothesResponseValidationError) Error

Error satisfies the builtin error interface

func (ChangeClothesResponseValidationError) ErrorName

ErrorName returns error name.

func (ChangeClothesResponseValidationError) Field

Field function returns field value.

func (ChangeClothesResponseValidationError) Key

Key function returns key value.

func (ChangeClothesResponseValidationError) Reason

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) Descriptor() ([]byte, []int)

Deprecated: Use Character.ProtoReflect.Descriptor instead.

func (*Character) GetAge

func (x *Character) GetAge() uint32

func (*Character) GetClothesId

func (x *Character) GetClothesId() uint32

func (*Character) GetFirstName

func (x *Character) GetFirstName() string

func (*Character) GetId

func (x *Character) GetId() uint32

func (*Character) GetOwnerId

func (x *Character) GetOwnerId() uint32

func (*Character) GetSecondName

func (x *Character) GetSecondName() string

func (*Character) GetSex

func (x *Character) GetSex() uint32

func (*Character) GetX

func (x *Character) GetX() float32

func (*Character) GetY

func (x *Character) GetY() float32

func (*Character) GetZ

func (x *Character) GetZ() float32

func (*Character) ProtoMessage

func (*Character) ProtoMessage()

func (*Character) ProtoReflect added in v0.8.4

func (x *Character) ProtoReflect() protoreflect.Message

func (*Character) Reset

func (x *Character) Reset()

func (*Character) String

func (x *Character) String() string

func (*Character) Validate

func (m *Character) Validate() error

Validate checks the field values on Character with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

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

Cause function returns cause value.

func (CharacterIDValidationError) Error

Error satisfies the builtin error interface

func (CharacterIDValidationError) ErrorName

func (e CharacterIDValidationError) ErrorName() string

ErrorName returns error name.

func (CharacterIDValidationError) Field

Field function returns field value.

func (CharacterIDValidationError) Key

Key function returns key value.

func (CharacterIDValidationError) Reason

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

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

Cause function returns cause value.

func (CreateCharacterRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateCharacterRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateCharacterRequestValidationError) Field

Field function returns field value.

func (CreateCharacterRequestValidationError) Key

Key function returns key value.

func (CreateCharacterRequestValidationError) Reason

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

Cause function returns cause value.

func (CreateCharacterResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateCharacterResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateCharacterResponseValidationError) Field

Field function returns field value.

func (CreateCharacterResponseValidationError) Key

Key function returns key value.

func (CreateCharacterResponseValidationError) Reason

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

Cause function returns cause value.

func (DeathStreamRequestValidationError) Error

Error satisfies the builtin error interface

func (DeathStreamRequestValidationError) ErrorName

ErrorName returns error name.

func (DeathStreamRequestValidationError) Field

Field function returns field value.

func (DeathStreamRequestValidationError) Key

Key function returns key value.

func (DeathStreamRequestValidationError) Reason

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

Cause function returns cause value.

func (DeathStreamResponseValidationError) Error

Error satisfies the builtin error interface

func (DeathStreamResponseValidationError) ErrorName

ErrorName returns error name.

func (DeathStreamResponseValidationError) Field

Field function returns field value.

func (DeathStreamResponseValidationError) Key

Key function returns key value.

func (DeathStreamResponseValidationError) Reason

Reason function returns reason value.

type DeathType

type DeathType int32
const (
	DeathType_DEATH_TYPE_NONE    DeathType = 0
	DeathType_DEATH_TYPE_BW      DeathType = 1
	DeathType_DEATH_TYPE_BW_KILL DeathType = 2
	DeathType_DEATH_TYPE_CK      DeathType = 3
)

func (DeathType) Descriptor added in v0.8.4

func (DeathType) Descriptor() protoreflect.EnumDescriptor

func (DeathType) Enum added in v0.8.4

func (x DeathType) Enum() *DeathType

func (DeathType) EnumDescriptor deprecated

func (DeathType) EnumDescriptor() ([]byte, []int)

Deprecated: Use DeathType.Descriptor instead.

func (DeathType) Number added in v0.8.4

func (x DeathType) Number() protoreflect.EnumNumber

func (DeathType) String

func (x DeathType) String() string

func (DeathType) Type added in v0.8.4

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

Cause function returns cause value.

func (DeleteCharacterRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteCharacterRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteCharacterRequestValidationError) Field

Field function returns field value.

func (DeleteCharacterRequestValidationError) Key

Key function returns key value.

func (DeleteCharacterRequestValidationError) Reason

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

Cause function returns cause value.

func (DeleteCharacterResponseValidationError) Error

Error satisfies the builtin error interface

func (DeleteCharacterResponseValidationError) ErrorName

ErrorName returns error name.

func (DeleteCharacterResponseValidationError) Field

Field function returns field value.

func (DeleteCharacterResponseValidationError) Key

Key function returns key value.

func (DeleteCharacterResponseValidationError) Reason

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

Cause function returns cause value.

func (GetCharacterRequestValidationError) Error

Error satisfies the builtin error interface

func (GetCharacterRequestValidationError) ErrorName

ErrorName returns error name.

func (GetCharacterRequestValidationError) Field

Field function returns field value.

func (GetCharacterRequestValidationError) Key

Key function returns key value.

func (GetCharacterRequestValidationError) Reason

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

Cause function returns cause value.

func (GetCharacterResponseValidationError) Error

Error satisfies the builtin error interface

func (GetCharacterResponseValidationError) ErrorName

ErrorName returns error name.

func (GetCharacterResponseValidationError) Field

Field function returns field value.

func (GetCharacterResponseValidationError) Key

Key function returns key value.

func (GetCharacterResponseValidationError) Reason

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.

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) CreateCharacter

func (*UnimplementedMruVCharactersServiceServer) DeathsStream

func (*UnimplementedMruVCharactersServiceServer) DeleteCharacter

func (*UnimplementedMruVCharactersServiceServer) GetCharacter

func (*UnimplementedMruVCharactersServiceServer) GetServiceStatus

func (*UnimplementedMruVCharactersServiceServer) GetServiceVersion

func (*UnimplementedMruVCharactersServiceServer) PermanentCharacterKill

func (*UnimplementedMruVCharactersServiceServer) UpdateCharacter

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

Cause function returns cause value.

func (UpdateCharacterRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateCharacterRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateCharacterRequestValidationError) Field

Field function returns field value.

func (UpdateCharacterRequestValidationError) Key

Key function returns key value.

func (UpdateCharacterRequestValidationError) Reason

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

Cause function returns cause value.

func (UpdateCharacterResponseValidationError) Error

Error satisfies the builtin error interface

func (UpdateCharacterResponseValidationError) ErrorName

ErrorName returns error name.

func (UpdateCharacterResponseValidationError) Field

Field function returns field value.

func (UpdateCharacterResponseValidationError) Key

Key function returns key value.

func (UpdateCharacterResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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