v1

package
v0.0.0-...-24968f5 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2022 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Account_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.account.service.v1.Account",
	HandlerType: (*AccountServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateAccount",
			Handler:    _Account_CreateAccount_Handler,
		},
		{
			MethodName: "UpdateAccount",
			Handler:    _Account_UpdateAccount_Handler,
		},
		{
			MethodName: "DeleteAccount",
			Handler:    _Account_DeleteAccount_Handler,
		},
		{
			MethodName: "GetAccount",
			Handler:    _Account_GetAccount_Handler,
		},
		{
			MethodName: "ListAccount",
			Handler:    _Account_ListAccount_Handler,
		},
		{
			MethodName: "Login",
			Handler:    _Account_Login_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/account/service/v1/account.proto",
}

Account_ServiceDesc is the grpc.ServiceDesc for Account service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_api_account_service_v1_account_proto protoreflect.FileDescriptor

Functions

func RegisterAccountHTTPServer

func RegisterAccountHTTPServer(s *http.Server, srv AccountHTTPServer)

func RegisterAccountServer

func RegisterAccountServer(s grpc.ServiceRegistrar, srv AccountServer)

Types

type AccountClient

type AccountClient interface {
	CreateAccount(ctx context.Context, in *CreateAccountRequest, opts ...grpc.CallOption) (*CreateAccountReply, error)
	UpdateAccount(ctx context.Context, in *UpdateAccountRequest, opts ...grpc.CallOption) (*UpdateAccountReply, error)
	DeleteAccount(ctx context.Context, in *DeleteAccountRequest, opts ...grpc.CallOption) (*DeleteAccountReply, error)
	GetAccount(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*GetAccountReply, error)
	ListAccount(ctx context.Context, in *ListAccountRequest, opts ...grpc.CallOption) (*ListAccountReply, error)
	Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginReply, error)
}

AccountClient is the client API for Account service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewAccountClient

func NewAccountClient(cc grpc.ClientConnInterface) AccountClient

type AccountHTTPClient

type AccountHTTPClient interface {
	CreateAccount(ctx context.Context, req *CreateAccountRequest, opts ...http.CallOption) (rsp *CreateAccountReply, err error)
	GetAccount(ctx context.Context, req *GetAccountRequest, opts ...http.CallOption) (rsp *GetAccountReply, err error)
	ListAccount(ctx context.Context, req *ListAccountRequest, opts ...http.CallOption) (rsp *ListAccountReply, err error)
	Login(ctx context.Context, req *LoginRequest, opts ...http.CallOption) (rsp *LoginReply, err error)
}

func NewAccountHTTPClient

func NewAccountHTTPClient(client *http.Client) AccountHTTPClient

type AccountHTTPClientImpl

type AccountHTTPClientImpl struct {
	// contains filtered or unexported fields
}

func (*AccountHTTPClientImpl) CreateAccount

func (*AccountHTTPClientImpl) GetAccount

func (*AccountHTTPClientImpl) ListAccount

func (*AccountHTTPClientImpl) Login

type AccountServer

type AccountServer interface {
	CreateAccount(context.Context, *CreateAccountRequest) (*CreateAccountReply, error)
	UpdateAccount(context.Context, *UpdateAccountRequest) (*UpdateAccountReply, error)
	DeleteAccount(context.Context, *DeleteAccountRequest) (*DeleteAccountReply, error)
	GetAccount(context.Context, *GetAccountRequest) (*GetAccountReply, error)
	ListAccount(context.Context, *ListAccountRequest) (*ListAccountReply, error)
	Login(context.Context, *LoginRequest) (*LoginReply, error)
	// contains filtered or unexported methods
}

AccountServer is the server API for Account service. All implementations must embed UnimplementedAccountServer for forward compatibility

type CreateAccountReply

type CreateAccountReply struct {
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateAccountReply) Descriptor deprecated

func (*CreateAccountReply) Descriptor() ([]byte, []int)

Deprecated: Use CreateAccountReply.ProtoReflect.Descriptor instead.

func (*CreateAccountReply) GetId

func (x *CreateAccountReply) GetId() int32

func (*CreateAccountReply) ProtoMessage

func (*CreateAccountReply) ProtoMessage()

func (*CreateAccountReply) ProtoReflect

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

func (*CreateAccountReply) Reset

func (x *CreateAccountReply) Reset()

func (*CreateAccountReply) String

func (x *CreateAccountReply) String() string

func (*CreateAccountReply) Validate

func (m *CreateAccountReply) Validate() error

Validate checks the field values on CreateAccountReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateAccountReply) ValidateAll

func (m *CreateAccountReply) ValidateAll() error

ValidateAll checks the field values on CreateAccountReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateAccountReplyMultiError, or nil if none found.

type CreateAccountReplyMultiError

type CreateAccountReplyMultiError []error

CreateAccountReplyMultiError is an error wrapping multiple validation errors returned by CreateAccountReply.ValidateAll() if the designated constraints aren't met.

func (CreateAccountReplyMultiError) AllErrors

func (m CreateAccountReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateAccountReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateAccountReplyValidationError

type CreateAccountReplyValidationError struct {
	// contains filtered or unexported fields
}

CreateAccountReplyValidationError is the validation error returned by CreateAccountReply.Validate if the designated constraints aren't met.

func (CreateAccountReplyValidationError) Cause

Cause function returns cause value.

func (CreateAccountReplyValidationError) Error

Error satisfies the builtin error interface

func (CreateAccountReplyValidationError) ErrorName

ErrorName returns error name.

func (CreateAccountReplyValidationError) Field

Field function returns field value.

func (CreateAccountReplyValidationError) Key

Key function returns key value.

func (CreateAccountReplyValidationError) Reason

Reason function returns reason value.

type CreateAccountRequest

type CreateAccountRequest struct {
	Name  string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Sex   bool   `protobuf:"varint,2,opt,name=sex,proto3" json:"sex,omitempty"`
	Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	Age   int64  `protobuf:"varint,4,opt,name=age,proto3" json:"age,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateAccountRequest) Descriptor deprecated

func (*CreateAccountRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateAccountRequest.ProtoReflect.Descriptor instead.

func (*CreateAccountRequest) GetAge

func (x *CreateAccountRequest) GetAge() int64

func (*CreateAccountRequest) GetEmail

func (x *CreateAccountRequest) GetEmail() string

func (*CreateAccountRequest) GetName

func (x *CreateAccountRequest) GetName() string

func (*CreateAccountRequest) GetSex

func (x *CreateAccountRequest) GetSex() bool

func (*CreateAccountRequest) ProtoMessage

func (*CreateAccountRequest) ProtoMessage()

func (*CreateAccountRequest) ProtoReflect

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

func (*CreateAccountRequest) Reset

func (x *CreateAccountRequest) Reset()

func (*CreateAccountRequest) String

func (x *CreateAccountRequest) String() string

func (*CreateAccountRequest) Validate

func (m *CreateAccountRequest) Validate() error

Validate checks the field values on CreateAccountRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateAccountRequest) ValidateAll

func (m *CreateAccountRequest) ValidateAll() error

ValidateAll checks the field values on CreateAccountRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateAccountRequestMultiError, or nil if none found.

type CreateAccountRequestMultiError

type CreateAccountRequestMultiError []error

CreateAccountRequestMultiError is an error wrapping multiple validation errors returned by CreateAccountRequest.ValidateAll() if the designated constraints aren't met.

func (CreateAccountRequestMultiError) AllErrors

func (m CreateAccountRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateAccountRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateAccountRequestValidationError

type CreateAccountRequestValidationError struct {
	// contains filtered or unexported fields
}

CreateAccountRequestValidationError is the validation error returned by CreateAccountRequest.Validate if the designated constraints aren't met.

func (CreateAccountRequestValidationError) Cause

Cause function returns cause value.

func (CreateAccountRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateAccountRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateAccountRequestValidationError) Field

Field function returns field value.

func (CreateAccountRequestValidationError) Key

Key function returns key value.

func (CreateAccountRequestValidationError) Reason

Reason function returns reason value.

type DeleteAccountReply

type DeleteAccountReply struct {
	// contains filtered or unexported fields
}

func (*DeleteAccountReply) Descriptor deprecated

func (*DeleteAccountReply) Descriptor() ([]byte, []int)

Deprecated: Use DeleteAccountReply.ProtoReflect.Descriptor instead.

func (*DeleteAccountReply) ProtoMessage

func (*DeleteAccountReply) ProtoMessage()

func (*DeleteAccountReply) ProtoReflect

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

func (*DeleteAccountReply) Reset

func (x *DeleteAccountReply) Reset()

func (*DeleteAccountReply) String

func (x *DeleteAccountReply) String() string

func (*DeleteAccountReply) Validate

func (m *DeleteAccountReply) Validate() error

Validate checks the field values on DeleteAccountReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeleteAccountReply) ValidateAll

func (m *DeleteAccountReply) ValidateAll() error

ValidateAll checks the field values on DeleteAccountReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteAccountReplyMultiError, or nil if none found.

type DeleteAccountReplyMultiError

type DeleteAccountReplyMultiError []error

DeleteAccountReplyMultiError is an error wrapping multiple validation errors returned by DeleteAccountReply.ValidateAll() if the designated constraints aren't met.

func (DeleteAccountReplyMultiError) AllErrors

func (m DeleteAccountReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteAccountReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteAccountReplyValidationError

type DeleteAccountReplyValidationError struct {
	// contains filtered or unexported fields
}

DeleteAccountReplyValidationError is the validation error returned by DeleteAccountReply.Validate if the designated constraints aren't met.

func (DeleteAccountReplyValidationError) Cause

Cause function returns cause value.

func (DeleteAccountReplyValidationError) Error

Error satisfies the builtin error interface

func (DeleteAccountReplyValidationError) ErrorName

ErrorName returns error name.

func (DeleteAccountReplyValidationError) Field

Field function returns field value.

func (DeleteAccountReplyValidationError) Key

Key function returns key value.

func (DeleteAccountReplyValidationError) Reason

Reason function returns reason value.

type DeleteAccountRequest

type DeleteAccountRequest struct {
	// contains filtered or unexported fields
}

func (*DeleteAccountRequest) Descriptor deprecated

func (*DeleteAccountRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteAccountRequest.ProtoReflect.Descriptor instead.

func (*DeleteAccountRequest) ProtoMessage

func (*DeleteAccountRequest) ProtoMessage()

func (*DeleteAccountRequest) ProtoReflect

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

func (*DeleteAccountRequest) Reset

func (x *DeleteAccountRequest) Reset()

func (*DeleteAccountRequest) String

func (x *DeleteAccountRequest) String() string

func (*DeleteAccountRequest) Validate

func (m *DeleteAccountRequest) Validate() error

Validate checks the field values on DeleteAccountRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeleteAccountRequest) ValidateAll

func (m *DeleteAccountRequest) ValidateAll() error

ValidateAll checks the field values on DeleteAccountRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteAccountRequestMultiError, or nil if none found.

type DeleteAccountRequestMultiError

type DeleteAccountRequestMultiError []error

DeleteAccountRequestMultiError is an error wrapping multiple validation errors returned by DeleteAccountRequest.ValidateAll() if the designated constraints aren't met.

func (DeleteAccountRequestMultiError) AllErrors

func (m DeleteAccountRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteAccountRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteAccountRequestValidationError

type DeleteAccountRequestValidationError struct {
	// contains filtered or unexported fields
}

DeleteAccountRequestValidationError is the validation error returned by DeleteAccountRequest.Validate if the designated constraints aren't met.

func (DeleteAccountRequestValidationError) Cause

Cause function returns cause value.

func (DeleteAccountRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteAccountRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteAccountRequestValidationError) Field

Field function returns field value.

func (DeleteAccountRequestValidationError) Key

Key function returns key value.

func (DeleteAccountRequestValidationError) Reason

Reason function returns reason value.

type GetAccountReply

type GetAccountReply struct {
	Id    int32  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name  string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Sex   bool   `protobuf:"varint,3,opt,name=sex,proto3" json:"sex,omitempty"`
	Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
	Age   int64  `protobuf:"varint,5,opt,name=age,proto3" json:"age,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAccountReply) Descriptor deprecated

func (*GetAccountReply) Descriptor() ([]byte, []int)

Deprecated: Use GetAccountReply.ProtoReflect.Descriptor instead.

func (*GetAccountReply) GetAge

func (x *GetAccountReply) GetAge() int64

func (*GetAccountReply) GetEmail

func (x *GetAccountReply) GetEmail() string

func (*GetAccountReply) GetId

func (x *GetAccountReply) GetId() int32

func (*GetAccountReply) GetName

func (x *GetAccountReply) GetName() string

func (*GetAccountReply) GetSex

func (x *GetAccountReply) GetSex() bool

func (*GetAccountReply) ProtoMessage

func (*GetAccountReply) ProtoMessage()

func (*GetAccountReply) ProtoReflect

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

func (*GetAccountReply) Reset

func (x *GetAccountReply) Reset()

func (*GetAccountReply) String

func (x *GetAccountReply) String() string

func (*GetAccountReply) Validate

func (m *GetAccountReply) Validate() error

Validate checks the field values on GetAccountReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetAccountReply) ValidateAll

func (m *GetAccountReply) ValidateAll() error

ValidateAll checks the field values on GetAccountReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetAccountReplyMultiError, or nil if none found.

type GetAccountReplyMultiError

type GetAccountReplyMultiError []error

GetAccountReplyMultiError is an error wrapping multiple validation errors returned by GetAccountReply.ValidateAll() if the designated constraints aren't met.

func (GetAccountReplyMultiError) AllErrors

func (m GetAccountReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetAccountReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetAccountReplyValidationError

type GetAccountReplyValidationError struct {
	// contains filtered or unexported fields
}

GetAccountReplyValidationError is the validation error returned by GetAccountReply.Validate if the designated constraints aren't met.

func (GetAccountReplyValidationError) Cause

Cause function returns cause value.

func (GetAccountReplyValidationError) Error

Error satisfies the builtin error interface

func (GetAccountReplyValidationError) ErrorName

func (e GetAccountReplyValidationError) ErrorName() string

ErrorName returns error name.

func (GetAccountReplyValidationError) Field

Field function returns field value.

func (GetAccountReplyValidationError) Key

Key function returns key value.

func (GetAccountReplyValidationError) Reason

Reason function returns reason value.

type GetAccountRequest

type GetAccountRequest struct {
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAccountRequest) Descriptor deprecated

func (*GetAccountRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetAccountRequest.ProtoReflect.Descriptor instead.

func (*GetAccountRequest) GetId

func (x *GetAccountRequest) GetId() int32

func (*GetAccountRequest) ProtoMessage

func (*GetAccountRequest) ProtoMessage()

func (*GetAccountRequest) ProtoReflect

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, the first error encountered is returned, or nil if there are no violations.

func (*GetAccountRequest) ValidateAll

func (m *GetAccountRequest) ValidateAll() error

ValidateAll checks the field values on GetAccountRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetAccountRequestMultiError, or nil if none found.

type GetAccountRequestMultiError

type GetAccountRequestMultiError []error

GetAccountRequestMultiError is an error wrapping multiple validation errors returned by GetAccountRequest.ValidateAll() if the designated constraints aren't met.

func (GetAccountRequestMultiError) AllErrors

func (m GetAccountRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetAccountRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

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

Cause function returns cause value.

func (GetAccountRequestValidationError) Error

Error satisfies the builtin error interface

func (GetAccountRequestValidationError) ErrorName

ErrorName returns error name.

func (GetAccountRequestValidationError) Field

Field function returns field value.

func (GetAccountRequestValidationError) Key

Key function returns key value.

func (GetAccountRequestValidationError) Reason

Reason function returns reason value.

type ListAccountReply

type ListAccountReply struct {
	Results []*ListAccountReply_Account `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAccountReply) Descriptor deprecated

func (*ListAccountReply) Descriptor() ([]byte, []int)

Deprecated: Use ListAccountReply.ProtoReflect.Descriptor instead.

func (*ListAccountReply) GetResults

func (x *ListAccountReply) GetResults() []*ListAccountReply_Account

func (*ListAccountReply) ProtoMessage

func (*ListAccountReply) ProtoMessage()

func (*ListAccountReply) ProtoReflect

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

func (*ListAccountReply) Reset

func (x *ListAccountReply) Reset()

func (*ListAccountReply) String

func (x *ListAccountReply) String() string

func (*ListAccountReply) Validate

func (m *ListAccountReply) Validate() error

Validate checks the field values on ListAccountReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListAccountReply) ValidateAll

func (m *ListAccountReply) ValidateAll() error

ValidateAll checks the field values on ListAccountReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListAccountReplyMultiError, or nil if none found.

type ListAccountReplyMultiError

type ListAccountReplyMultiError []error

ListAccountReplyMultiError is an error wrapping multiple validation errors returned by ListAccountReply.ValidateAll() if the designated constraints aren't met.

func (ListAccountReplyMultiError) AllErrors

func (m ListAccountReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListAccountReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListAccountReplyValidationError

type ListAccountReplyValidationError struct {
	// contains filtered or unexported fields
}

ListAccountReplyValidationError is the validation error returned by ListAccountReply.Validate if the designated constraints aren't met.

func (ListAccountReplyValidationError) Cause

Cause function returns cause value.

func (ListAccountReplyValidationError) Error

Error satisfies the builtin error interface

func (ListAccountReplyValidationError) ErrorName

ErrorName returns error name.

func (ListAccountReplyValidationError) Field

Field function returns field value.

func (ListAccountReplyValidationError) Key

Key function returns key value.

func (ListAccountReplyValidationError) Reason

Reason function returns reason value.

type ListAccountReply_Account

type ListAccountReply_Account struct {
	Id    int32  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name  string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Sex   bool   `protobuf:"varint,3,opt,name=sex,proto3" json:"sex,omitempty"`
	Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
	Age   int64  `protobuf:"varint,5,opt,name=age,proto3" json:"age,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAccountReply_Account) Descriptor deprecated

func (*ListAccountReply_Account) Descriptor() ([]byte, []int)

Deprecated: Use ListAccountReply_Account.ProtoReflect.Descriptor instead.

func (*ListAccountReply_Account) GetAge

func (x *ListAccountReply_Account) GetAge() int64

func (*ListAccountReply_Account) GetEmail

func (x *ListAccountReply_Account) GetEmail() string

func (*ListAccountReply_Account) GetId

func (x *ListAccountReply_Account) GetId() int32

func (*ListAccountReply_Account) GetName

func (x *ListAccountReply_Account) GetName() string

func (*ListAccountReply_Account) GetSex

func (x *ListAccountReply_Account) GetSex() bool

func (*ListAccountReply_Account) ProtoMessage

func (*ListAccountReply_Account) ProtoMessage()

func (*ListAccountReply_Account) ProtoReflect

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

func (*ListAccountReply_Account) Reset

func (x *ListAccountReply_Account) Reset()

func (*ListAccountReply_Account) String

func (x *ListAccountReply_Account) String() string

func (*ListAccountReply_Account) Validate

func (m *ListAccountReply_Account) Validate() error

Validate checks the field values on ListAccountReply_Account with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListAccountReply_Account) ValidateAll

func (m *ListAccountReply_Account) ValidateAll() error

ValidateAll checks the field values on ListAccountReply_Account with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListAccountReply_AccountMultiError, or nil if none found.

type ListAccountReply_AccountMultiError

type ListAccountReply_AccountMultiError []error

ListAccountReply_AccountMultiError is an error wrapping multiple validation errors returned by ListAccountReply_Account.ValidateAll() if the designated constraints aren't met.

func (ListAccountReply_AccountMultiError) AllErrors

func (m ListAccountReply_AccountMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListAccountReply_AccountMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListAccountReply_AccountValidationError

type ListAccountReply_AccountValidationError struct {
	// contains filtered or unexported fields
}

ListAccountReply_AccountValidationError is the validation error returned by ListAccountReply_Account.Validate if the designated constraints aren't met.

func (ListAccountReply_AccountValidationError) Cause

Cause function returns cause value.

func (ListAccountReply_AccountValidationError) Error

Error satisfies the builtin error interface

func (ListAccountReply_AccountValidationError) ErrorName

ErrorName returns error name.

func (ListAccountReply_AccountValidationError) Field

Field function returns field value.

func (ListAccountReply_AccountValidationError) Key

Key function returns key value.

func (ListAccountReply_AccountValidationError) Reason

Reason function returns reason value.

type ListAccountRequest

type ListAccountRequest struct {
	// contains filtered or unexported fields
}

func (*ListAccountRequest) Descriptor deprecated

func (*ListAccountRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListAccountRequest.ProtoReflect.Descriptor instead.

func (*ListAccountRequest) ProtoMessage

func (*ListAccountRequest) ProtoMessage()

func (*ListAccountRequest) ProtoReflect

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

func (*ListAccountRequest) Reset

func (x *ListAccountRequest) Reset()

func (*ListAccountRequest) String

func (x *ListAccountRequest) String() string

func (*ListAccountRequest) Validate

func (m *ListAccountRequest) Validate() error

Validate checks the field values on ListAccountRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListAccountRequest) ValidateAll

func (m *ListAccountRequest) ValidateAll() error

ValidateAll checks the field values on ListAccountRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListAccountRequestMultiError, or nil if none found.

type ListAccountRequestMultiError

type ListAccountRequestMultiError []error

ListAccountRequestMultiError is an error wrapping multiple validation errors returned by ListAccountRequest.ValidateAll() if the designated constraints aren't met.

func (ListAccountRequestMultiError) AllErrors

func (m ListAccountRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListAccountRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListAccountRequestValidationError

type ListAccountRequestValidationError struct {
	// contains filtered or unexported fields
}

ListAccountRequestValidationError is the validation error returned by ListAccountRequest.Validate if the designated constraints aren't met.

func (ListAccountRequestValidationError) Cause

Cause function returns cause value.

func (ListAccountRequestValidationError) Error

Error satisfies the builtin error interface

func (ListAccountRequestValidationError) ErrorName

ErrorName returns error name.

func (ListAccountRequestValidationError) Field

Field function returns field value.

func (ListAccountRequestValidationError) Key

Key function returns key value.

func (ListAccountRequestValidationError) Reason

Reason function returns reason value.

type LoginReply

type LoginReply struct {
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginReply) Descriptor deprecated

func (*LoginReply) Descriptor() ([]byte, []int)

Deprecated: Use LoginReply.ProtoReflect.Descriptor instead.

func (*LoginReply) GetId

func (x *LoginReply) GetId() int32

func (*LoginReply) ProtoMessage

func (*LoginReply) ProtoMessage()

func (*LoginReply) ProtoReflect

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

func (*LoginReply) Reset

func (x *LoginReply) Reset()

func (*LoginReply) String

func (x *LoginReply) String() string

func (*LoginReply) Validate

func (m *LoginReply) Validate() error

Validate checks the field values on LoginReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*LoginReply) ValidateAll

func (m *LoginReply) ValidateAll() error

ValidateAll checks the field values on LoginReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LoginReplyMultiError, or nil if none found.

type LoginReplyMultiError

type LoginReplyMultiError []error

LoginReplyMultiError is an error wrapping multiple validation errors returned by LoginReply.ValidateAll() if the designated constraints aren't met.

func (LoginReplyMultiError) AllErrors

func (m LoginReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LoginReplyMultiError) Error

func (m LoginReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type LoginReplyValidationError

type LoginReplyValidationError struct {
	// contains filtered or unexported fields
}

LoginReplyValidationError is the validation error returned by LoginReply.Validate if the designated constraints aren't met.

func (LoginReplyValidationError) Cause

func (e LoginReplyValidationError) Cause() error

Cause function returns cause value.

func (LoginReplyValidationError) Error

Error satisfies the builtin error interface

func (LoginReplyValidationError) ErrorName

func (e LoginReplyValidationError) ErrorName() string

ErrorName returns error name.

func (LoginReplyValidationError) Field

Field function returns field value.

func (LoginReplyValidationError) Key

Key function returns key value.

func (LoginReplyValidationError) Reason

func (e LoginReplyValidationError) Reason() string

Reason function returns reason value.

type LoginRequest

type LoginRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginRequest) Descriptor deprecated

func (*LoginRequest) Descriptor() ([]byte, []int)

Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.

func (*LoginRequest) GetUsername

func (x *LoginRequest) GetUsername() string

func (*LoginRequest) ProtoMessage

func (*LoginRequest) ProtoMessage()

func (*LoginRequest) ProtoReflect

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, the first error encountered is returned, or nil if there are no violations.

func (*LoginRequest) ValidateAll

func (m *LoginRequest) ValidateAll() error

ValidateAll checks the field values on LoginRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LoginRequestMultiError, or nil if none found.

type LoginRequestMultiError

type LoginRequestMultiError []error

LoginRequestMultiError is an error wrapping multiple validation errors returned by LoginRequest.ValidateAll() if the designated constraints aren't met.

func (LoginRequestMultiError) AllErrors

func (m LoginRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LoginRequestMultiError) Error

func (m LoginRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

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

Cause function returns cause value.

func (LoginRequestValidationError) Error

Error satisfies the builtin error interface

func (LoginRequestValidationError) ErrorName

func (e LoginRequestValidationError) ErrorName() string

ErrorName returns error name.

func (LoginRequestValidationError) Field

Field function returns field value.

func (LoginRequestValidationError) Key

Key function returns key value.

func (LoginRequestValidationError) Reason

Reason function returns reason value.

type UnimplementedAccountServer

type UnimplementedAccountServer struct {
}

UnimplementedAccountServer must be embedded to have forward compatible implementations.

func (UnimplementedAccountServer) CreateAccount

func (UnimplementedAccountServer) DeleteAccount

func (UnimplementedAccountServer) GetAccount

func (UnimplementedAccountServer) ListAccount

func (UnimplementedAccountServer) Login

func (UnimplementedAccountServer) UpdateAccount

type UnsafeAccountServer

type UnsafeAccountServer interface {
	// contains filtered or unexported methods
}

UnsafeAccountServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AccountServer will result in compilation errors.

type UpdateAccountReply

type UpdateAccountReply struct {
	// contains filtered or unexported fields
}

func (*UpdateAccountReply) Descriptor deprecated

func (*UpdateAccountReply) Descriptor() ([]byte, []int)

Deprecated: Use UpdateAccountReply.ProtoReflect.Descriptor instead.

func (*UpdateAccountReply) ProtoMessage

func (*UpdateAccountReply) ProtoMessage()

func (*UpdateAccountReply) ProtoReflect

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

func (*UpdateAccountReply) Reset

func (x *UpdateAccountReply) Reset()

func (*UpdateAccountReply) String

func (x *UpdateAccountReply) String() string

func (*UpdateAccountReply) Validate

func (m *UpdateAccountReply) Validate() error

Validate checks the field values on UpdateAccountReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateAccountReply) ValidateAll

func (m *UpdateAccountReply) ValidateAll() error

ValidateAll checks the field values on UpdateAccountReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateAccountReplyMultiError, or nil if none found.

type UpdateAccountReplyMultiError

type UpdateAccountReplyMultiError []error

UpdateAccountReplyMultiError is an error wrapping multiple validation errors returned by UpdateAccountReply.ValidateAll() if the designated constraints aren't met.

func (UpdateAccountReplyMultiError) AllErrors

func (m UpdateAccountReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateAccountReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateAccountReplyValidationError

type UpdateAccountReplyValidationError struct {
	// contains filtered or unexported fields
}

UpdateAccountReplyValidationError is the validation error returned by UpdateAccountReply.Validate if the designated constraints aren't met.

func (UpdateAccountReplyValidationError) Cause

Cause function returns cause value.

func (UpdateAccountReplyValidationError) Error

Error satisfies the builtin error interface

func (UpdateAccountReplyValidationError) ErrorName

ErrorName returns error name.

func (UpdateAccountReplyValidationError) Field

Field function returns field value.

func (UpdateAccountReplyValidationError) Key

Key function returns key value.

func (UpdateAccountReplyValidationError) Reason

Reason function returns reason value.

type UpdateAccountRequest

type UpdateAccountRequest struct {
	// contains filtered or unexported fields
}

func (*UpdateAccountRequest) Descriptor deprecated

func (*UpdateAccountRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateAccountRequest.ProtoReflect.Descriptor instead.

func (*UpdateAccountRequest) ProtoMessage

func (*UpdateAccountRequest) ProtoMessage()

func (*UpdateAccountRequest) ProtoReflect

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

func (*UpdateAccountRequest) Reset

func (x *UpdateAccountRequest) Reset()

func (*UpdateAccountRequest) String

func (x *UpdateAccountRequest) String() string

func (*UpdateAccountRequest) Validate

func (m *UpdateAccountRequest) Validate() error

Validate checks the field values on UpdateAccountRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateAccountRequest) ValidateAll

func (m *UpdateAccountRequest) ValidateAll() error

ValidateAll checks the field values on UpdateAccountRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateAccountRequestMultiError, or nil if none found.

type UpdateAccountRequestMultiError

type UpdateAccountRequestMultiError []error

UpdateAccountRequestMultiError is an error wrapping multiple validation errors returned by UpdateAccountRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateAccountRequestMultiError) AllErrors

func (m UpdateAccountRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateAccountRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateAccountRequestValidationError

type UpdateAccountRequestValidationError struct {
	// contains filtered or unexported fields
}

UpdateAccountRequestValidationError is the validation error returned by UpdateAccountRequest.Validate if the designated constraints aren't met.

func (UpdateAccountRequestValidationError) Cause

Cause function returns cause value.

func (UpdateAccountRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateAccountRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateAccountRequestValidationError) Field

Field function returns field value.

func (UpdateAccountRequestValidationError) Key

Key function returns key value.

func (UpdateAccountRequestValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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