Documentation
¶
Index ¶
- Variables
- func RegisterAccountServiceServer(s grpc.ServiceRegistrar, srv AccountServiceServer)
- type Account
- func (*Account) Descriptor() ([]byte, []int)deprecated
- func (x *Account) GetFirstName() string
- func (x *Account) GetId() uint32
- func (x *Account) GetLastName() string
- func (x *Account) GetMiddleName() string
- func (x *Account) GetPassword() string
- func (x *Account) GetUsername() string
- func (*Account) ProtoMessage()
- func (x *Account) ProtoReflect() protoreflect.Message
- func (x *Account) Reset()
- func (x *Account) String() string
- type AccountServiceClient
- type AccountServiceServer
- type DeleteByIDRequest
- type DeleteByIDResponse
- type FindByIDRequest
- type FindManyRequest
- type FindManyResponse
- type FindSingleResponse
- func (*FindSingleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FindSingleResponse) GetAccount() *Account
- func (*FindSingleResponse) ProtoMessage()
- func (x *FindSingleResponse) ProtoReflect() protoreflect.Message
- func (x *FindSingleResponse) Reset()
- func (x *FindSingleResponse) String() string
- type InputAccount
- type RegisterRequest
- type RegisterResponse
- type UnimplementedAccountServiceServer
- func (UnimplementedAccountServiceServer) DeleteByID(context.Context, *DeleteByIDRequest) (*DeleteByIDResponse, error)
- func (UnimplementedAccountServiceServer) FindByID(context.Context, *FindByIDRequest) (*FindSingleResponse, error)
- func (UnimplementedAccountServiceServer) FindMany(context.Context, *FindManyRequest) (*FindManyResponse, error)
- func (UnimplementedAccountServiceServer) Register(context.Context, *RegisterRequest) (*RegisterRequest, error)
- func (UnimplementedAccountServiceServer) UpdateByID(context.Context, *UpdateByIDRequest) (*FindSingleResponse, error)
- type UnsafeAccountServiceServer
- type UpdateByIDRequest
- func (*UpdateByIDRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateByIDRequest) GetId() uint32
- func (x *UpdateByIDRequest) GetInput() *InputAccount
- func (*UpdateByIDRequest) ProtoMessage()
- func (x *UpdateByIDRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateByIDRequest) Reset()
- func (x *UpdateByIDRequest) String() string
Constants ¶
This section is empty.
Variables ¶
var AccountService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "account.AccountService", HandlerType: (*AccountServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "FindMany", Handler: _AccountService_FindMany_Handler, }, { MethodName: "FindByID", Handler: _AccountService_FindByID_Handler, }, { MethodName: "UpdateByID", Handler: _AccountService_UpdateByID_Handler, }, { MethodName: "DeleteByID", Handler: _AccountService_DeleteByID_Handler, }, { MethodName: "Register", Handler: _AccountService_Register_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "account/account.proto", }
AccountService_ServiceDesc is the grpc.ServiceDesc for AccountService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_account_account_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAccountServiceServer ¶
func RegisterAccountServiceServer(s grpc.ServiceRegistrar, srv AccountServiceServer)
Types ¶
type Account ¶
type Account struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` FirstName string `protobuf:"bytes,2,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` MiddleName *string `protobuf:"bytes,3,opt,name=middle_name,json=middleName,proto3,oneof" json:"middle_name,omitempty"` LastName string `protobuf:"bytes,4,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` Username string `protobuf:"bytes,5,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,6,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*Account) Descriptor
deprecated
func (*Account) GetFirstName ¶
func (*Account) GetLastName ¶
func (*Account) GetMiddleName ¶
func (*Account) GetPassword ¶
func (*Account) GetUsername ¶
func (*Account) ProtoMessage ¶
func (*Account) ProtoMessage()
func (*Account) ProtoReflect ¶
func (x *Account) ProtoReflect() protoreflect.Message
type AccountServiceClient ¶
type AccountServiceClient interface { FindMany(ctx context.Context, in *FindManyRequest, opts ...grpc.CallOption) (*FindManyResponse, error) FindByID(ctx context.Context, in *FindByIDRequest, opts ...grpc.CallOption) (*FindSingleResponse, error) UpdateByID(ctx context.Context, in *UpdateByIDRequest, opts ...grpc.CallOption) (*FindSingleResponse, error) DeleteByID(ctx context.Context, in *DeleteByIDRequest, opts ...grpc.CallOption) (*DeleteByIDResponse, error) Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterRequest, error) }
AccountServiceClient is the client API for AccountService 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 NewAccountServiceClient ¶
func NewAccountServiceClient(cc grpc.ClientConnInterface) AccountServiceClient
type AccountServiceServer ¶
type AccountServiceServer interface { FindMany(context.Context, *FindManyRequest) (*FindManyResponse, error) FindByID(context.Context, *FindByIDRequest) (*FindSingleResponse, error) UpdateByID(context.Context, *UpdateByIDRequest) (*FindSingleResponse, error) DeleteByID(context.Context, *DeleteByIDRequest) (*DeleteByIDResponse, error) Register(context.Context, *RegisterRequest) (*RegisterRequest, error) // contains filtered or unexported methods }
AccountServiceServer is the server API for AccountService service. All implementations must embed UnimplementedAccountServiceServer for forward compatibility
type DeleteByIDRequest ¶
type DeleteByIDRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteByIDRequest) Descriptor
deprecated
func (*DeleteByIDRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteByIDRequest.ProtoReflect.Descriptor instead.
func (*DeleteByIDRequest) GetId ¶
func (x *DeleteByIDRequest) GetId() uint32
func (*DeleteByIDRequest) ProtoMessage ¶
func (*DeleteByIDRequest) ProtoMessage()
func (*DeleteByIDRequest) ProtoReflect ¶
func (x *DeleteByIDRequest) ProtoReflect() protoreflect.Message
func (*DeleteByIDRequest) Reset ¶
func (x *DeleteByIDRequest) Reset()
func (*DeleteByIDRequest) String ¶
func (x *DeleteByIDRequest) String() string
type DeleteByIDResponse ¶
type DeleteByIDResponse struct {
// contains filtered or unexported fields
}
func (*DeleteByIDResponse) Descriptor
deprecated
func (*DeleteByIDResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteByIDResponse.ProtoReflect.Descriptor instead.
func (*DeleteByIDResponse) ProtoMessage ¶
func (*DeleteByIDResponse) ProtoMessage()
func (*DeleteByIDResponse) ProtoReflect ¶
func (x *DeleteByIDResponse) ProtoReflect() protoreflect.Message
func (*DeleteByIDResponse) Reset ¶
func (x *DeleteByIDResponse) Reset()
func (*DeleteByIDResponse) String ¶
func (x *DeleteByIDResponse) String() string
type FindByIDRequest ¶
type FindByIDRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*FindByIDRequest) Descriptor
deprecated
func (*FindByIDRequest) Descriptor() ([]byte, []int)
Deprecated: Use FindByIDRequest.ProtoReflect.Descriptor instead.
func (*FindByIDRequest) GetId ¶
func (x *FindByIDRequest) GetId() uint32
func (*FindByIDRequest) ProtoMessage ¶
func (*FindByIDRequest) ProtoMessage()
func (*FindByIDRequest) ProtoReflect ¶
func (x *FindByIDRequest) ProtoReflect() protoreflect.Message
func (*FindByIDRequest) Reset ¶
func (x *FindByIDRequest) Reset()
func (*FindByIDRequest) String ¶
func (x *FindByIDRequest) String() string
type FindManyRequest ¶
type FindManyRequest struct {
// contains filtered or unexported fields
}
func (*FindManyRequest) Descriptor
deprecated
func (*FindManyRequest) Descriptor() ([]byte, []int)
Deprecated: Use FindManyRequest.ProtoReflect.Descriptor instead.
func (*FindManyRequest) ProtoMessage ¶
func (*FindManyRequest) ProtoMessage()
func (*FindManyRequest) ProtoReflect ¶
func (x *FindManyRequest) ProtoReflect() protoreflect.Message
func (*FindManyRequest) Reset ¶
func (x *FindManyRequest) Reset()
func (*FindManyRequest) String ¶
func (x *FindManyRequest) String() string
type FindManyResponse ¶
type FindManyResponse struct { Accounts []*Account `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"` // contains filtered or unexported fields }
func (*FindManyResponse) Descriptor
deprecated
func (*FindManyResponse) Descriptor() ([]byte, []int)
Deprecated: Use FindManyResponse.ProtoReflect.Descriptor instead.
func (*FindManyResponse) GetAccounts ¶
func (x *FindManyResponse) GetAccounts() []*Account
func (*FindManyResponse) ProtoMessage ¶
func (*FindManyResponse) ProtoMessage()
func (*FindManyResponse) ProtoReflect ¶
func (x *FindManyResponse) ProtoReflect() protoreflect.Message
func (*FindManyResponse) Reset ¶
func (x *FindManyResponse) Reset()
func (*FindManyResponse) String ¶
func (x *FindManyResponse) String() string
type FindSingleResponse ¶
type FindSingleResponse struct { Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` // contains filtered or unexported fields }
func (*FindSingleResponse) Descriptor
deprecated
func (*FindSingleResponse) Descriptor() ([]byte, []int)
Deprecated: Use FindSingleResponse.ProtoReflect.Descriptor instead.
func (*FindSingleResponse) GetAccount ¶
func (x *FindSingleResponse) GetAccount() *Account
func (*FindSingleResponse) ProtoMessage ¶
func (*FindSingleResponse) ProtoMessage()
func (*FindSingleResponse) ProtoReflect ¶
func (x *FindSingleResponse) ProtoReflect() protoreflect.Message
func (*FindSingleResponse) Reset ¶
func (x *FindSingleResponse) Reset()
func (*FindSingleResponse) String ¶
func (x *FindSingleResponse) String() string
type InputAccount ¶
type InputAccount struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // contains filtered or unexported fields }
func (*InputAccount) Descriptor
deprecated
func (*InputAccount) Descriptor() ([]byte, []int)
Deprecated: Use InputAccount.ProtoReflect.Descriptor instead.
func (*InputAccount) GetUsername ¶
func (x *InputAccount) GetUsername() string
func (*InputAccount) ProtoMessage ¶
func (*InputAccount) ProtoMessage()
func (*InputAccount) ProtoReflect ¶
func (x *InputAccount) ProtoReflect() protoreflect.Message
func (*InputAccount) Reset ¶
func (x *InputAccount) Reset()
func (*InputAccount) String ¶
func (x *InputAccount) String() string
type RegisterRequest ¶
type RegisterRequest struct { Input *InputAccount `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"` // contains filtered or unexported fields }
func (*RegisterRequest) Descriptor
deprecated
func (*RegisterRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.
func (*RegisterRequest) GetInput ¶
func (x *RegisterRequest) GetInput() *InputAccount
func (*RegisterRequest) ProtoMessage ¶
func (*RegisterRequest) ProtoMessage()
func (*RegisterRequest) ProtoReflect ¶
func (x *RegisterRequest) ProtoReflect() protoreflect.Message
func (*RegisterRequest) Reset ¶
func (x *RegisterRequest) Reset()
func (*RegisterRequest) String ¶
func (x *RegisterRequest) String() string
type RegisterResponse ¶
type RegisterResponse struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*RegisterResponse) Descriptor
deprecated
func (*RegisterResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterResponse.ProtoReflect.Descriptor instead.
func (*RegisterResponse) GetId ¶
func (x *RegisterResponse) GetId() uint32
func (*RegisterResponse) ProtoMessage ¶
func (*RegisterResponse) ProtoMessage()
func (*RegisterResponse) ProtoReflect ¶
func (x *RegisterResponse) ProtoReflect() protoreflect.Message
func (*RegisterResponse) Reset ¶
func (x *RegisterResponse) Reset()
func (*RegisterResponse) String ¶
func (x *RegisterResponse) String() string
type UnimplementedAccountServiceServer ¶
type UnimplementedAccountServiceServer struct { }
UnimplementedAccountServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedAccountServiceServer) DeleteByID ¶
func (UnimplementedAccountServiceServer) DeleteByID(context.Context, *DeleteByIDRequest) (*DeleteByIDResponse, error)
func (UnimplementedAccountServiceServer) FindByID ¶
func (UnimplementedAccountServiceServer) FindByID(context.Context, *FindByIDRequest) (*FindSingleResponse, error)
func (UnimplementedAccountServiceServer) FindMany ¶
func (UnimplementedAccountServiceServer) FindMany(context.Context, *FindManyRequest) (*FindManyResponse, error)
func (UnimplementedAccountServiceServer) Register ¶
func (UnimplementedAccountServiceServer) Register(context.Context, *RegisterRequest) (*RegisterRequest, error)
func (UnimplementedAccountServiceServer) UpdateByID ¶
func (UnimplementedAccountServiceServer) UpdateByID(context.Context, *UpdateByIDRequest) (*FindSingleResponse, error)
type UnsafeAccountServiceServer ¶
type UnsafeAccountServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAccountServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AccountServiceServer will result in compilation errors.
type UpdateByIDRequest ¶
type UpdateByIDRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Input *InputAccount `protobuf:"bytes,2,opt,name=input,proto3" json:"input,omitempty"` // contains filtered or unexported fields }
func (*UpdateByIDRequest) Descriptor
deprecated
func (*UpdateByIDRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateByIDRequest.ProtoReflect.Descriptor instead.
func (*UpdateByIDRequest) GetId ¶
func (x *UpdateByIDRequest) GetId() uint32
func (*UpdateByIDRequest) GetInput ¶
func (x *UpdateByIDRequest) GetInput() *InputAccount
func (*UpdateByIDRequest) ProtoMessage ¶
func (*UpdateByIDRequest) ProtoMessage()
func (*UpdateByIDRequest) ProtoReflect ¶
func (x *UpdateByIDRequest) ProtoReflect() protoreflect.Message
func (*UpdateByIDRequest) Reset ¶
func (x *UpdateByIDRequest) Reset()
func (*UpdateByIDRequest) String ¶
func (x *UpdateByIDRequest) String() string