Documentation ¶
Overview ¶
Package accounts is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterMruVAccountsServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterMruVAccountsServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MruVAccountsServiceClient) error
- func RegisterMruVAccountsServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterMruVAccountsServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MruVAccountsServiceServer) error
- func RegisterMruVAccountsServiceServer(s *grpc.Server, srv MruVAccountsServiceServer)
- type GetAccountCharactersRequest
- func (*GetAccountCharactersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAccountCharactersRequest) GetLogin() string
- func (*GetAccountCharactersRequest) ProtoMessage()
- func (x *GetAccountCharactersRequest) ProtoReflect() protoreflect.Message
- func (x *GetAccountCharactersRequest) Reset()
- func (x *GetAccountCharactersRequest) String() string
- func (m *GetAccountCharactersRequest) Validate() error
- type GetAccountCharactersRequestValidationError
- func (e GetAccountCharactersRequestValidationError) Cause() error
- func (e GetAccountCharactersRequestValidationError) Error() string
- func (e GetAccountCharactersRequestValidationError) ErrorName() string
- func (e GetAccountCharactersRequestValidationError) Field() string
- func (e GetAccountCharactersRequestValidationError) Key() bool
- func (e GetAccountCharactersRequestValidationError) Reason() string
- type GetAccountCharactersResponse
- func (*GetAccountCharactersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAccountCharactersResponse) GetCharacterIds() []uint32
- func (*GetAccountCharactersResponse) ProtoMessage()
- func (x *GetAccountCharactersResponse) ProtoReflect() protoreflect.Message
- func (x *GetAccountCharactersResponse) Reset()
- func (x *GetAccountCharactersResponse) String() string
- func (m *GetAccountCharactersResponse) Validate() error
- type GetAccountCharactersResponseValidationError
- func (e GetAccountCharactersResponseValidationError) Cause() error
- func (e GetAccountCharactersResponseValidationError) Error() string
- func (e GetAccountCharactersResponseValidationError) ErrorName() string
- func (e GetAccountCharactersResponseValidationError) Field() string
- func (e GetAccountCharactersResponseValidationError) Key() bool
- func (e GetAccountCharactersResponseValidationError) Reason() string
- type GetAccountRequest
- func (*GetAccountRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAccountRequest) GetLogin() string
- func (*GetAccountRequest) ProtoMessage()
- func (x *GetAccountRequest) ProtoReflect() protoreflect.Message
- func (x *GetAccountRequest) Reset()
- func (x *GetAccountRequest) String() string
- func (m *GetAccountRequest) Validate() error
- type GetAccountRequestValidationError
- func (e GetAccountRequestValidationError) Cause() error
- func (e GetAccountRequestValidationError) Error() string
- func (e GetAccountRequestValidationError) ErrorName() string
- func (e GetAccountRequestValidationError) Field() string
- func (e GetAccountRequestValidationError) Key() bool
- func (e GetAccountRequestValidationError) Reason() string
- type GetAccountResponse
- func (*GetAccountResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAccountResponse) GetEmail() string
- func (x *GetAccountResponse) GetLogin() string
- func (*GetAccountResponse) ProtoMessage()
- func (x *GetAccountResponse) ProtoReflect() protoreflect.Message
- func (x *GetAccountResponse) Reset()
- func (x *GetAccountResponse) String() string
- func (m *GetAccountResponse) Validate() error
- type GetAccountResponseValidationError
- func (e GetAccountResponseValidationError) Cause() error
- func (e GetAccountResponseValidationError) Error() string
- func (e GetAccountResponseValidationError) ErrorName() string
- func (e GetAccountResponseValidationError) Field() string
- func (e GetAccountResponseValidationError) Key() bool
- func (e GetAccountResponseValidationError) Reason() string
- type IsAccountExistRequest
- func (*IsAccountExistRequest) Descriptor() ([]byte, []int)deprecated
- func (x *IsAccountExistRequest) GetLogin() string
- func (*IsAccountExistRequest) ProtoMessage()
- func (x *IsAccountExistRequest) ProtoReflect() protoreflect.Message
- func (x *IsAccountExistRequest) Reset()
- func (x *IsAccountExistRequest) String() string
- func (m *IsAccountExistRequest) Validate() error
- type IsAccountExistRequestValidationError
- func (e IsAccountExistRequestValidationError) Cause() error
- func (e IsAccountExistRequestValidationError) Error() string
- func (e IsAccountExistRequestValidationError) ErrorName() string
- func (e IsAccountExistRequestValidationError) Field() string
- func (e IsAccountExistRequestValidationError) Key() bool
- func (e IsAccountExistRequestValidationError) Reason() string
- type IsAccountExistResponse
- func (*IsAccountExistResponse) Descriptor() ([]byte, []int)deprecated
- func (x *IsAccountExistResponse) GetExists() bool
- func (x *IsAccountExistResponse) GetId() uint32
- func (*IsAccountExistResponse) ProtoMessage()
- func (x *IsAccountExistResponse) ProtoReflect() protoreflect.Message
- func (x *IsAccountExistResponse) Reset()
- func (x *IsAccountExistResponse) String() string
- func (m *IsAccountExistResponse) Validate() error
- type IsAccountExistResponseValidationError
- func (e IsAccountExistResponseValidationError) Cause() error
- func (e IsAccountExistResponseValidationError) Error() string
- func (e IsAccountExistResponseValidationError) ErrorName() string
- func (e IsAccountExistResponseValidationError) Field() string
- func (e IsAccountExistResponseValidationError) Key() bool
- func (e IsAccountExistResponseValidationError) Reason() string
- type LogInRequest
- func (*LogInRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LogInRequest) GetLogin() string
- func (x *LogInRequest) GetPassword() string
- func (*LogInRequest) ProtoMessage()
- func (x *LogInRequest) ProtoReflect() protoreflect.Message
- func (x *LogInRequest) Reset()
- func (x *LogInRequest) String() string
- func (m *LogInRequest) Validate() error
- type LogInRequestValidationError
- func (e LogInRequestValidationError) Cause() error
- func (e LogInRequestValidationError) Error() string
- func (e LogInRequestValidationError) ErrorName() string
- func (e LogInRequestValidationError) Field() string
- func (e LogInRequestValidationError) Key() bool
- func (e LogInRequestValidationError) Reason() string
- type LogInResponse
- func (*LogInResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LogInResponse) GetAccountId() uint32
- func (x *LogInResponse) GetSuccess() bool
- func (*LogInResponse) ProtoMessage()
- func (x *LogInResponse) ProtoReflect() protoreflect.Message
- func (x *LogInResponse) Reset()
- func (x *LogInResponse) String() string
- func (m *LogInResponse) Validate() error
- type LogInResponseValidationError
- func (e LogInResponseValidationError) Cause() error
- func (e LogInResponseValidationError) Error() string
- func (e LogInResponseValidationError) ErrorName() string
- func (e LogInResponseValidationError) Field() string
- func (e LogInResponseValidationError) Key() bool
- func (e LogInResponseValidationError) Reason() string
- type MruVAccountsServiceClient
- type MruVAccountsServiceServer
- type RegisterAccountRequest
- func (*RegisterAccountRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterAccountRequest) GetEmail() string
- func (x *RegisterAccountRequest) GetLogin() string
- func (x *RegisterAccountRequest) GetPassword() string
- func (*RegisterAccountRequest) ProtoMessage()
- func (x *RegisterAccountRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterAccountRequest) Reset()
- func (x *RegisterAccountRequest) String() string
- func (m *RegisterAccountRequest) Validate() error
- type RegisterAccountRequestValidationError
- func (e RegisterAccountRequestValidationError) Cause() error
- func (e RegisterAccountRequestValidationError) Error() string
- func (e RegisterAccountRequestValidationError) ErrorName() string
- func (e RegisterAccountRequestValidationError) Field() string
- func (e RegisterAccountRequestValidationError) Key() bool
- func (e RegisterAccountRequestValidationError) Reason() string
- type RegisterAccountResponse
- func (*RegisterAccountResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterAccountResponse) GetAccountId() uint32
- func (x *RegisterAccountResponse) GetSuccess() bool
- func (*RegisterAccountResponse) ProtoMessage()
- func (x *RegisterAccountResponse) ProtoReflect() protoreflect.Message
- func (x *RegisterAccountResponse) Reset()
- func (x *RegisterAccountResponse) String() string
- func (m *RegisterAccountResponse) Validate() error
- type RegisterAccountResponseValidationError
- func (e RegisterAccountResponseValidationError) Cause() error
- func (e RegisterAccountResponseValidationError) Error() string
- func (e RegisterAccountResponseValidationError) ErrorName() string
- func (e RegisterAccountResponseValidationError) Field() string
- func (e RegisterAccountResponseValidationError) Key() bool
- func (e RegisterAccountResponseValidationError) Reason() string
- type UnimplementedMruVAccountsServiceServer
- func (*UnimplementedMruVAccountsServiceServer) GetAccount(context.Context, *GetAccountRequest) (*GetAccountResponse, error)
- func (*UnimplementedMruVAccountsServiceServer) GetAccountCharacters(context.Context, *GetAccountCharactersRequest) (*GetAccountCharactersResponse, error)
- func (*UnimplementedMruVAccountsServiceServer) IsAccountExist(context.Context, *IsAccountExistRequest) (*IsAccountExistResponse, error)
- func (*UnimplementedMruVAccountsServiceServer) LogIn(context.Context, *LogInRequest) (*LogInResponse, error)
- func (*UnimplementedMruVAccountsServiceServer) RegisterAccount(context.Context, *RegisterAccountRequest) (*RegisterAccountResponse, error)
Constants ¶
This section is empty.
Variables ¶
var File_accounts_accounts_proto protoreflect.FileDescriptor
Functions ¶
func RegisterMruVAccountsServiceHandler ¶
func RegisterMruVAccountsServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterMruVAccountsServiceHandler registers the http handlers for service MruVAccountsService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterMruVAccountsServiceHandlerClient ¶
func RegisterMruVAccountsServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MruVAccountsServiceClient) error
RegisterMruVAccountsServiceHandlerClient registers the http handlers for service MruVAccountsService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "MruVAccountsServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "MruVAccountsServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "MruVAccountsServiceClient" to call the correct interceptors.
func RegisterMruVAccountsServiceHandlerFromEndpoint ¶
func RegisterMruVAccountsServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterMruVAccountsServiceHandlerFromEndpoint is same as RegisterMruVAccountsServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterMruVAccountsServiceHandlerServer ¶
func RegisterMruVAccountsServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MruVAccountsServiceServer) error
RegisterMruVAccountsServiceHandlerServer registers the http handlers for service MruVAccountsService to "mux". UnaryRPC :call MruVAccountsServiceServer 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 RegisterMruVAccountsServiceHandlerFromEndpoint instead.
func RegisterMruVAccountsServiceServer ¶
func RegisterMruVAccountsServiceServer(s *grpc.Server, srv MruVAccountsServiceServer)
Types ¶
type GetAccountCharactersRequest ¶
type GetAccountCharactersRequest struct { Login string `protobuf:"bytes,1,opt,name=login,proto3" json:"login,omitempty"` // contains filtered or unexported fields }
Request message for rpc `GetAccountCharacters`.
func (*GetAccountCharactersRequest) Descriptor
deprecated
func (*GetAccountCharactersRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAccountCharactersRequest.ProtoReflect.Descriptor instead.
func (*GetAccountCharactersRequest) GetLogin ¶
func (x *GetAccountCharactersRequest) GetLogin() string
func (*GetAccountCharactersRequest) ProtoMessage ¶
func (*GetAccountCharactersRequest) ProtoMessage()
func (*GetAccountCharactersRequest) ProtoReflect ¶ added in v0.8.4
func (x *GetAccountCharactersRequest) ProtoReflect() protoreflect.Message
func (*GetAccountCharactersRequest) Reset ¶
func (x *GetAccountCharactersRequest) Reset()
func (*GetAccountCharactersRequest) String ¶
func (x *GetAccountCharactersRequest) String() string
func (*GetAccountCharactersRequest) Validate ¶
func (m *GetAccountCharactersRequest) Validate() error
Validate checks the field values on GetAccountCharactersRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type GetAccountCharactersRequestValidationError ¶
type GetAccountCharactersRequestValidationError struct {
// contains filtered or unexported fields
}
GetAccountCharactersRequestValidationError is the validation error returned by GetAccountCharactersRequest.Validate if the designated constraints aren't met.
func (GetAccountCharactersRequestValidationError) Cause ¶
func (e GetAccountCharactersRequestValidationError) Cause() error
Cause function returns cause value.
func (GetAccountCharactersRequestValidationError) Error ¶
func (e GetAccountCharactersRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetAccountCharactersRequestValidationError) ErrorName ¶
func (e GetAccountCharactersRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetAccountCharactersRequestValidationError) Field ¶
func (e GetAccountCharactersRequestValidationError) Field() string
Field function returns field value.
func (GetAccountCharactersRequestValidationError) Key ¶
func (e GetAccountCharactersRequestValidationError) Key() bool
Key function returns key value.
func (GetAccountCharactersRequestValidationError) Reason ¶
func (e GetAccountCharactersRequestValidationError) Reason() string
Reason function returns reason value.
type GetAccountCharactersResponse ¶
type GetAccountCharactersResponse struct { CharacterIds []uint32 `protobuf:"varint,1,rep,packed,name=character_ids,json=characterIds,proto3" json:"character_ids,omitempty"` // contains filtered or unexported fields }
Response message for rpc `GetAccountCharacters`.
func (*GetAccountCharactersResponse) Descriptor
deprecated
func (*GetAccountCharactersResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAccountCharactersResponse.ProtoReflect.Descriptor instead.
func (*GetAccountCharactersResponse) GetCharacterIds ¶
func (x *GetAccountCharactersResponse) GetCharacterIds() []uint32
func (*GetAccountCharactersResponse) ProtoMessage ¶
func (*GetAccountCharactersResponse) ProtoMessage()
func (*GetAccountCharactersResponse) ProtoReflect ¶ added in v0.8.4
func (x *GetAccountCharactersResponse) ProtoReflect() protoreflect.Message
func (*GetAccountCharactersResponse) Reset ¶
func (x *GetAccountCharactersResponse) Reset()
func (*GetAccountCharactersResponse) String ¶
func (x *GetAccountCharactersResponse) String() string
func (*GetAccountCharactersResponse) Validate ¶
func (m *GetAccountCharactersResponse) Validate() error
Validate checks the field values on GetAccountCharactersResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type GetAccountCharactersResponseValidationError ¶
type GetAccountCharactersResponseValidationError struct {
// contains filtered or unexported fields
}
GetAccountCharactersResponseValidationError is the validation error returned by GetAccountCharactersResponse.Validate if the designated constraints aren't met.
func (GetAccountCharactersResponseValidationError) Cause ¶
func (e GetAccountCharactersResponseValidationError) Cause() error
Cause function returns cause value.
func (GetAccountCharactersResponseValidationError) Error ¶
func (e GetAccountCharactersResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetAccountCharactersResponseValidationError) ErrorName ¶
func (e GetAccountCharactersResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetAccountCharactersResponseValidationError) Field ¶
func (e GetAccountCharactersResponseValidationError) Field() string
Field function returns field value.
func (GetAccountCharactersResponseValidationError) Key ¶
func (e GetAccountCharactersResponseValidationError) Key() bool
Key function returns key value.
func (GetAccountCharactersResponseValidationError) Reason ¶
func (e GetAccountCharactersResponseValidationError) Reason() string
Reason function returns reason value.
type GetAccountRequest ¶
type GetAccountRequest struct { Login string `protobuf:"bytes,1,opt,name=login,proto3" json:"login,omitempty"` // contains filtered or unexported fields }
Request message for rpc `GetAccount`.
func (*GetAccountRequest) Descriptor
deprecated
func (*GetAccountRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAccountRequest.ProtoReflect.Descriptor instead.
func (*GetAccountRequest) GetLogin ¶
func (x *GetAccountRequest) GetLogin() string
func (*GetAccountRequest) ProtoMessage ¶
func (*GetAccountRequest) ProtoMessage()
func (*GetAccountRequest) ProtoReflect ¶ added in v0.8.4
func (x *GetAccountRequest) ProtoReflect() protoreflect.Message
func (*GetAccountRequest) Reset ¶
func (x *GetAccountRequest) Reset()
func (*GetAccountRequest) String ¶
func (x *GetAccountRequest) String() string
func (*GetAccountRequest) Validate ¶
func (m *GetAccountRequest) Validate() error
Validate checks the field values on GetAccountRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type GetAccountRequestValidationError ¶
type GetAccountRequestValidationError struct {
// contains filtered or unexported fields
}
GetAccountRequestValidationError is the validation error returned by GetAccountRequest.Validate if the designated constraints aren't met.
func (GetAccountRequestValidationError) Cause ¶
func (e GetAccountRequestValidationError) Cause() error
Cause function returns cause value.
func (GetAccountRequestValidationError) Error ¶
func (e GetAccountRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetAccountRequestValidationError) ErrorName ¶
func (e GetAccountRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetAccountRequestValidationError) Field ¶
func (e GetAccountRequestValidationError) Field() string
Field function returns field value.
func (GetAccountRequestValidationError) Key ¶
func (e GetAccountRequestValidationError) Key() bool
Key function returns key value.
func (GetAccountRequestValidationError) Reason ¶
func (e GetAccountRequestValidationError) Reason() string
Reason function returns reason value.
type GetAccountResponse ¶
type GetAccountResponse struct { Login string `protobuf:"bytes,1,opt,name=login,proto3" json:"login,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
Response message for rpc `GetAccount`.
func (*GetAccountResponse) Descriptor
deprecated
func (*GetAccountResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAccountResponse.ProtoReflect.Descriptor instead.
func (*GetAccountResponse) GetEmail ¶
func (x *GetAccountResponse) GetEmail() string
func (*GetAccountResponse) GetLogin ¶
func (x *GetAccountResponse) GetLogin() string
func (*GetAccountResponse) ProtoMessage ¶
func (*GetAccountResponse) ProtoMessage()
func (*GetAccountResponse) ProtoReflect ¶ added in v0.8.4
func (x *GetAccountResponse) ProtoReflect() protoreflect.Message
func (*GetAccountResponse) Reset ¶
func (x *GetAccountResponse) Reset()
func (*GetAccountResponse) String ¶
func (x *GetAccountResponse) String() string
func (*GetAccountResponse) Validate ¶
func (m *GetAccountResponse) Validate() error
Validate checks the field values on GetAccountResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type GetAccountResponseValidationError ¶
type GetAccountResponseValidationError struct {
// contains filtered or unexported fields
}
GetAccountResponseValidationError is the validation error returned by GetAccountResponse.Validate if the designated constraints aren't met.
func (GetAccountResponseValidationError) Cause ¶
func (e GetAccountResponseValidationError) Cause() error
Cause function returns cause value.
func (GetAccountResponseValidationError) Error ¶
func (e GetAccountResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetAccountResponseValidationError) ErrorName ¶
func (e GetAccountResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetAccountResponseValidationError) Field ¶
func (e GetAccountResponseValidationError) Field() string
Field function returns field value.
func (GetAccountResponseValidationError) Key ¶
func (e GetAccountResponseValidationError) Key() bool
Key function returns key value.
func (GetAccountResponseValidationError) Reason ¶
func (e GetAccountResponseValidationError) Reason() string
Reason function returns reason value.
type IsAccountExistRequest ¶
type IsAccountExistRequest struct { Login string `protobuf:"bytes,1,opt,name=login,proto3" json:"login,omitempty"` // contains filtered or unexported fields }
Request message for rpc `IsAccountExist`.
func (*IsAccountExistRequest) Descriptor
deprecated
func (*IsAccountExistRequest) Descriptor() ([]byte, []int)
Deprecated: Use IsAccountExistRequest.ProtoReflect.Descriptor instead.
func (*IsAccountExistRequest) GetLogin ¶
func (x *IsAccountExistRequest) GetLogin() string
func (*IsAccountExistRequest) ProtoMessage ¶
func (*IsAccountExistRequest) ProtoMessage()
func (*IsAccountExistRequest) ProtoReflect ¶ added in v0.8.4
func (x *IsAccountExistRequest) ProtoReflect() protoreflect.Message
func (*IsAccountExistRequest) Reset ¶
func (x *IsAccountExistRequest) Reset()
func (*IsAccountExistRequest) String ¶
func (x *IsAccountExistRequest) String() string
func (*IsAccountExistRequest) Validate ¶
func (m *IsAccountExistRequest) Validate() error
Validate checks the field values on IsAccountExistRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type IsAccountExistRequestValidationError ¶
type IsAccountExistRequestValidationError struct {
// contains filtered or unexported fields
}
IsAccountExistRequestValidationError is the validation error returned by IsAccountExistRequest.Validate if the designated constraints aren't met.
func (IsAccountExistRequestValidationError) Cause ¶
func (e IsAccountExistRequestValidationError) Cause() error
Cause function returns cause value.
func (IsAccountExistRequestValidationError) Error ¶
func (e IsAccountExistRequestValidationError) Error() string
Error satisfies the builtin error interface
func (IsAccountExistRequestValidationError) ErrorName ¶
func (e IsAccountExistRequestValidationError) ErrorName() string
ErrorName returns error name.
func (IsAccountExistRequestValidationError) Field ¶
func (e IsAccountExistRequestValidationError) Field() string
Field function returns field value.
func (IsAccountExistRequestValidationError) Key ¶
func (e IsAccountExistRequestValidationError) Key() bool
Key function returns key value.
func (IsAccountExistRequestValidationError) Reason ¶
func (e IsAccountExistRequestValidationError) Reason() string
Reason function returns reason value.
type IsAccountExistResponse ¶
type IsAccountExistResponse struct { Exists bool `protobuf:"varint,1,opt,name=exists,proto3" json:"exists,omitempty"` Id uint32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
Response message for rpc `IsAccountExist`.
func (*IsAccountExistResponse) Descriptor
deprecated
func (*IsAccountExistResponse) Descriptor() ([]byte, []int)
Deprecated: Use IsAccountExistResponse.ProtoReflect.Descriptor instead.
func (*IsAccountExistResponse) GetExists ¶
func (x *IsAccountExistResponse) GetExists() bool
func (*IsAccountExistResponse) GetId ¶
func (x *IsAccountExistResponse) GetId() uint32
func (*IsAccountExistResponse) ProtoMessage ¶
func (*IsAccountExistResponse) ProtoMessage()
func (*IsAccountExistResponse) ProtoReflect ¶ added in v0.8.4
func (x *IsAccountExistResponse) ProtoReflect() protoreflect.Message
func (*IsAccountExistResponse) Reset ¶
func (x *IsAccountExistResponse) Reset()
func (*IsAccountExistResponse) String ¶
func (x *IsAccountExistResponse) String() string
func (*IsAccountExistResponse) Validate ¶
func (m *IsAccountExistResponse) Validate() error
Validate checks the field values on IsAccountExistResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type IsAccountExistResponseValidationError ¶
type IsAccountExistResponseValidationError struct {
// contains filtered or unexported fields
}
IsAccountExistResponseValidationError is the validation error returned by IsAccountExistResponse.Validate if the designated constraints aren't met.
func (IsAccountExistResponseValidationError) Cause ¶
func (e IsAccountExistResponseValidationError) Cause() error
Cause function returns cause value.
func (IsAccountExistResponseValidationError) Error ¶
func (e IsAccountExistResponseValidationError) Error() string
Error satisfies the builtin error interface
func (IsAccountExistResponseValidationError) ErrorName ¶
func (e IsAccountExistResponseValidationError) ErrorName() string
ErrorName returns error name.
func (IsAccountExistResponseValidationError) Field ¶
func (e IsAccountExistResponseValidationError) Field() string
Field function returns field value.
func (IsAccountExistResponseValidationError) Key ¶
func (e IsAccountExistResponseValidationError) Key() bool
Key function returns key value.
func (IsAccountExistResponseValidationError) Reason ¶
func (e IsAccountExistResponseValidationError) Reason() string
Reason function returns reason value.
type LogInRequest ¶
type LogInRequest struct { Login string `protobuf:"bytes,1,opt,name=login,proto3" json:"login,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
Request message for rpc `LogIn`.
func (*LogInRequest) Descriptor
deprecated
func (*LogInRequest) Descriptor() ([]byte, []int)
Deprecated: Use LogInRequest.ProtoReflect.Descriptor instead.
func (*LogInRequest) GetLogin ¶
func (x *LogInRequest) GetLogin() string
func (*LogInRequest) GetPassword ¶
func (x *LogInRequest) GetPassword() string
func (*LogInRequest) ProtoMessage ¶
func (*LogInRequest) ProtoMessage()
func (*LogInRequest) ProtoReflect ¶ added in v0.8.4
func (x *LogInRequest) ProtoReflect() protoreflect.Message
func (*LogInRequest) Reset ¶
func (x *LogInRequest) Reset()
func (*LogInRequest) String ¶
func (x *LogInRequest) String() string
func (*LogInRequest) Validate ¶
func (m *LogInRequest) Validate() error
Validate checks the field values on LogInRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type LogInRequestValidationError ¶
type LogInRequestValidationError struct {
// contains filtered or unexported fields
}
LogInRequestValidationError is the validation error returned by LogInRequest.Validate if the designated constraints aren't met.
func (LogInRequestValidationError) Cause ¶
func (e LogInRequestValidationError) Cause() error
Cause function returns cause value.
func (LogInRequestValidationError) Error ¶
func (e LogInRequestValidationError) Error() string
Error satisfies the builtin error interface
func (LogInRequestValidationError) ErrorName ¶
func (e LogInRequestValidationError) ErrorName() string
ErrorName returns error name.
func (LogInRequestValidationError) Field ¶
func (e LogInRequestValidationError) Field() string
Field function returns field value.
func (LogInRequestValidationError) Key ¶
func (e LogInRequestValidationError) Key() bool
Key function returns key value.
func (LogInRequestValidationError) Reason ¶
func (e LogInRequestValidationError) Reason() string
Reason function returns reason value.
type LogInResponse ¶
type LogInResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` AccountId uint32 `protobuf:"varint,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` // contains filtered or unexported fields }
Response message for rpc `LogIn`.
func (*LogInResponse) Descriptor
deprecated
func (*LogInResponse) Descriptor() ([]byte, []int)
Deprecated: Use LogInResponse.ProtoReflect.Descriptor instead.
func (*LogInResponse) GetAccountId ¶
func (x *LogInResponse) GetAccountId() uint32
func (*LogInResponse) GetSuccess ¶
func (x *LogInResponse) GetSuccess() bool
func (*LogInResponse) ProtoMessage ¶
func (*LogInResponse) ProtoMessage()
func (*LogInResponse) ProtoReflect ¶ added in v0.8.4
func (x *LogInResponse) ProtoReflect() protoreflect.Message
func (*LogInResponse) Reset ¶
func (x *LogInResponse) Reset()
func (*LogInResponse) String ¶
func (x *LogInResponse) String() string
func (*LogInResponse) Validate ¶
func (m *LogInResponse) Validate() error
Validate checks the field values on LogInResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type LogInResponseValidationError ¶
type LogInResponseValidationError struct {
// contains filtered or unexported fields
}
LogInResponseValidationError is the validation error returned by LogInResponse.Validate if the designated constraints aren't met.
func (LogInResponseValidationError) Cause ¶
func (e LogInResponseValidationError) Cause() error
Cause function returns cause value.
func (LogInResponseValidationError) Error ¶
func (e LogInResponseValidationError) Error() string
Error satisfies the builtin error interface
func (LogInResponseValidationError) ErrorName ¶
func (e LogInResponseValidationError) ErrorName() string
ErrorName returns error name.
func (LogInResponseValidationError) Field ¶
func (e LogInResponseValidationError) Field() string
Field function returns field value.
func (LogInResponseValidationError) Key ¶
func (e LogInResponseValidationError) Key() bool
Key function returns key value.
func (LogInResponseValidationError) Reason ¶
func (e LogInResponseValidationError) Reason() string
Reason function returns reason value.
type MruVAccountsServiceClient ¶
type MruVAccountsServiceClient interface { // Register a new account. RegisterAccount(ctx context.Context, in *RegisterAccountRequest, opts ...grpc.CallOption) (*RegisterAccountResponse, error) // Sign into an existing account. LogIn(ctx context.Context, in *LogInRequest, opts ...grpc.CallOption) (*LogInResponse, error) // Check, is account with specified login exist. If yes, it returns account id. IsAccountExist(ctx context.Context, in *IsAccountExistRequest, opts ...grpc.CallOption) (*IsAccountExistResponse, error) // Get an account. GetAccount(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*GetAccountResponse, error) // Get an account characters. GetAccountCharacters(ctx context.Context, in *GetAccountCharactersRequest, opts ...grpc.CallOption) (*GetAccountCharactersResponse, error) }
MruVAccountsServiceClient is the client API for MruVAccountsService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMruVAccountsServiceClient ¶
func NewMruVAccountsServiceClient(cc grpc.ClientConnInterface) MruVAccountsServiceClient
type MruVAccountsServiceServer ¶
type MruVAccountsServiceServer interface { // Register a new account. RegisterAccount(context.Context, *RegisterAccountRequest) (*RegisterAccountResponse, error) // Sign into an existing account. LogIn(context.Context, *LogInRequest) (*LogInResponse, error) // Check, is account with specified login exist. If yes, it returns account id. IsAccountExist(context.Context, *IsAccountExistRequest) (*IsAccountExistResponse, error) // Get an account. GetAccount(context.Context, *GetAccountRequest) (*GetAccountResponse, error) // Get an account characters. GetAccountCharacters(context.Context, *GetAccountCharactersRequest) (*GetAccountCharactersResponse, error) }
MruVAccountsServiceServer is the server API for MruVAccountsService service.
type RegisterAccountRequest ¶
type RegisterAccountRequest struct { Login string `protobuf:"bytes,1,opt,name=login,proto3" json:"login,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
Request message for rpc `RegisterAccount`.
func (*RegisterAccountRequest) Descriptor
deprecated
func (*RegisterAccountRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterAccountRequest.ProtoReflect.Descriptor instead.
func (*RegisterAccountRequest) GetEmail ¶
func (x *RegisterAccountRequest) GetEmail() string
func (*RegisterAccountRequest) GetLogin ¶
func (x *RegisterAccountRequest) GetLogin() string
func (*RegisterAccountRequest) GetPassword ¶
func (x *RegisterAccountRequest) GetPassword() string
func (*RegisterAccountRequest) ProtoMessage ¶
func (*RegisterAccountRequest) ProtoMessage()
func (*RegisterAccountRequest) ProtoReflect ¶ added in v0.8.4
func (x *RegisterAccountRequest) ProtoReflect() protoreflect.Message
func (*RegisterAccountRequest) Reset ¶
func (x *RegisterAccountRequest) Reset()
func (*RegisterAccountRequest) String ¶
func (x *RegisterAccountRequest) String() string
func (*RegisterAccountRequest) Validate ¶
func (m *RegisterAccountRequest) Validate() error
Validate checks the field values on RegisterAccountRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type RegisterAccountRequestValidationError ¶
type RegisterAccountRequestValidationError struct {
// contains filtered or unexported fields
}
RegisterAccountRequestValidationError is the validation error returned by RegisterAccountRequest.Validate if the designated constraints aren't met.
func (RegisterAccountRequestValidationError) Cause ¶
func (e RegisterAccountRequestValidationError) Cause() error
Cause function returns cause value.
func (RegisterAccountRequestValidationError) Error ¶
func (e RegisterAccountRequestValidationError) Error() string
Error satisfies the builtin error interface
func (RegisterAccountRequestValidationError) ErrorName ¶
func (e RegisterAccountRequestValidationError) ErrorName() string
ErrorName returns error name.
func (RegisterAccountRequestValidationError) Field ¶
func (e RegisterAccountRequestValidationError) Field() string
Field function returns field value.
func (RegisterAccountRequestValidationError) Key ¶
func (e RegisterAccountRequestValidationError) Key() bool
Key function returns key value.
func (RegisterAccountRequestValidationError) Reason ¶
func (e RegisterAccountRequestValidationError) Reason() string
Reason function returns reason value.
type RegisterAccountResponse ¶
type RegisterAccountResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` AccountId uint32 `protobuf:"varint,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` // contains filtered or unexported fields }
Response message for rpc `RegisterAccount`.
func (*RegisterAccountResponse) Descriptor
deprecated
func (*RegisterAccountResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterAccountResponse.ProtoReflect.Descriptor instead.
func (*RegisterAccountResponse) GetAccountId ¶
func (x *RegisterAccountResponse) GetAccountId() uint32
func (*RegisterAccountResponse) GetSuccess ¶
func (x *RegisterAccountResponse) GetSuccess() bool
func (*RegisterAccountResponse) ProtoMessage ¶
func (*RegisterAccountResponse) ProtoMessage()
func (*RegisterAccountResponse) ProtoReflect ¶ added in v0.8.4
func (x *RegisterAccountResponse) ProtoReflect() protoreflect.Message
func (*RegisterAccountResponse) Reset ¶
func (x *RegisterAccountResponse) Reset()
func (*RegisterAccountResponse) String ¶
func (x *RegisterAccountResponse) String() string
func (*RegisterAccountResponse) Validate ¶
func (m *RegisterAccountResponse) Validate() error
Validate checks the field values on RegisterAccountResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type RegisterAccountResponseValidationError ¶
type RegisterAccountResponseValidationError struct {
// contains filtered or unexported fields
}
RegisterAccountResponseValidationError is the validation error returned by RegisterAccountResponse.Validate if the designated constraints aren't met.
func (RegisterAccountResponseValidationError) Cause ¶
func (e RegisterAccountResponseValidationError) Cause() error
Cause function returns cause value.
func (RegisterAccountResponseValidationError) Error ¶
func (e RegisterAccountResponseValidationError) Error() string
Error satisfies the builtin error interface
func (RegisterAccountResponseValidationError) ErrorName ¶
func (e RegisterAccountResponseValidationError) ErrorName() string
ErrorName returns error name.
func (RegisterAccountResponseValidationError) Field ¶
func (e RegisterAccountResponseValidationError) Field() string
Field function returns field value.
func (RegisterAccountResponseValidationError) Key ¶
func (e RegisterAccountResponseValidationError) Key() bool
Key function returns key value.
func (RegisterAccountResponseValidationError) Reason ¶
func (e RegisterAccountResponseValidationError) Reason() string
Reason function returns reason value.
type UnimplementedMruVAccountsServiceServer ¶
type UnimplementedMruVAccountsServiceServer struct { }
UnimplementedMruVAccountsServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedMruVAccountsServiceServer) GetAccount ¶
func (*UnimplementedMruVAccountsServiceServer) GetAccount(context.Context, *GetAccountRequest) (*GetAccountResponse, error)
func (*UnimplementedMruVAccountsServiceServer) GetAccountCharacters ¶
func (*UnimplementedMruVAccountsServiceServer) GetAccountCharacters(context.Context, *GetAccountCharactersRequest) (*GetAccountCharactersResponse, error)
func (*UnimplementedMruVAccountsServiceServer) IsAccountExist ¶
func (*UnimplementedMruVAccountsServiceServer) IsAccountExist(context.Context, *IsAccountExistRequest) (*IsAccountExistResponse, error)
func (*UnimplementedMruVAccountsServiceServer) LogIn ¶
func (*UnimplementedMruVAccountsServiceServer) LogIn(context.Context, *LogInRequest) (*LogInResponse, error)
func (*UnimplementedMruVAccountsServiceServer) RegisterAccount ¶
func (*UnimplementedMruVAccountsServiceServer) RegisterAccount(context.Context, *RegisterAccountRequest) (*RegisterAccountResponse, error)