Versions in this module Expand all Collapse all v0 v0.0.2 Feb 9, 2021 Changes in this version + var File_account_service_proto protoreflect.FileDescriptor + var File_auth_service_proto protoreflect.FileDescriptor + func RegisterAccountServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error + func RegisterAccountServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AccountServiceClient) error + func RegisterAccountServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error) + func RegisterAccountServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AccountServiceServer) error + func RegisterAccountServiceServer(s *grpc.Server, srv AccountServiceServer) + func RegisterAuthServiceServer(s *grpc.Server, srv AuthServiceServer) + type Account struct + Balance int64 + CreatedAt *timestamppb.Timestamp + Currency string + Id int64 + Owner string + func (*Account) Descriptor() ([]byte, []int) + func (*Account) ProtoMessage() + func (x *Account) GetBalance() int64 + func (x *Account) GetCreatedAt() *timestamppb.Timestamp + func (x *Account) GetCurrency() string + func (x *Account) GetId() int64 + func (x *Account) GetOwner() string + func (x *Account) ProtoReflect() protoreflect.Message + func (x *Account) Reset() + func (x *Account) String() string + type AccountServiceClient interface + Create func(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) + Delete func(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) + Read func(ctx context.Context, in *ReadRequest, opts ...grpc.CallOption) (*ReadResponse, error) + ReadAll func(ctx context.Context, in *ReadAllRequest, opts ...grpc.CallOption) (*ReadAllResponse, error) + Update func(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error) + func NewAccountServiceClient(cc grpc.ClientConnInterface) AccountServiceClient + type AccountServiceServer interface + Create func(context.Context, *CreateRequest) (*CreateResponse, error) + Delete func(context.Context, *DeleteRequest) (*DeleteResponse, error) + Read func(context.Context, *ReadRequest) (*ReadResponse, error) + ReadAll func(context.Context, *ReadAllRequest) (*ReadAllResponse, error) + Update func(context.Context, *UpdateRequest) (*UpdateResponse, error) + type AuthServiceClient interface + Login func(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error) + func NewAuthServiceClient(cc grpc.ClientConnInterface) AuthServiceClient + type AuthServiceServer interface + Login func(context.Context, *LoginRequest) (*LoginResponse, error) + type CreateRequest struct + Account *Account + Api string + func (*CreateRequest) Descriptor() ([]byte, []int) + func (*CreateRequest) ProtoMessage() + func (x *CreateRequest) GetAccount() *Account + func (x *CreateRequest) GetApi() string + func (x *CreateRequest) ProtoReflect() protoreflect.Message + func (x *CreateRequest) Reset() + func (x *CreateRequest) String() string + type CreateResponse struct + Account *Account + Api string + func (*CreateResponse) Descriptor() ([]byte, []int) + func (*CreateResponse) ProtoMessage() + func (x *CreateResponse) GetAccount() *Account + func (x *CreateResponse) GetApi() string + func (x *CreateResponse) ProtoReflect() protoreflect.Message + func (x *CreateResponse) Reset() + func (x *CreateResponse) String() string + type DeleteRequest struct + Api string + Id int64 + func (*DeleteRequest) Descriptor() ([]byte, []int) + func (*DeleteRequest) ProtoMessage() + func (x *DeleteRequest) GetApi() string + func (x *DeleteRequest) GetId() int64 + func (x *DeleteRequest) ProtoReflect() protoreflect.Message + func (x *DeleteRequest) Reset() + func (x *DeleteRequest) String() string + type DeleteResponse struct + Api string + Deleted int64 + func (*DeleteResponse) Descriptor() ([]byte, []int) + func (*DeleteResponse) ProtoMessage() + func (x *DeleteResponse) GetApi() string + func (x *DeleteResponse) GetDeleted() int64 + func (x *DeleteResponse) ProtoReflect() protoreflect.Message + func (x *DeleteResponse) Reset() + func (x *DeleteResponse) String() string + type LoginRequest struct + Password string + Username string + func (*LoginRequest) Descriptor() ([]byte, []int) + func (*LoginRequest) ProtoMessage() + func (x *LoginRequest) GetPassword() string + func (x *LoginRequest) GetUsername() string + func (x *LoginRequest) ProtoReflect() protoreflect.Message + func (x *LoginRequest) Reset() + func (x *LoginRequest) String() string + type LoginResponse struct + AccessToken string + func (*LoginResponse) Descriptor() ([]byte, []int) + func (*LoginResponse) ProtoMessage() + func (x *LoginResponse) GetAccessToken() string + func (x *LoginResponse) ProtoReflect() protoreflect.Message + func (x *LoginResponse) Reset() + func (x *LoginResponse) String() string + type ReadAllRequest struct + Api string + func (*ReadAllRequest) Descriptor() ([]byte, []int) + func (*ReadAllRequest) ProtoMessage() + func (x *ReadAllRequest) GetApi() string + func (x *ReadAllRequest) ProtoReflect() protoreflect.Message + func (x *ReadAllRequest) Reset() + func (x *ReadAllRequest) String() string + type ReadAllResponse struct + Accounts []*Account + Api string + func (*ReadAllResponse) Descriptor() ([]byte, []int) + func (*ReadAllResponse) ProtoMessage() + func (x *ReadAllResponse) GetAccounts() []*Account + func (x *ReadAllResponse) GetApi() string + func (x *ReadAllResponse) ProtoReflect() protoreflect.Message + func (x *ReadAllResponse) Reset() + func (x *ReadAllResponse) String() string + type ReadRequest struct + Api string + Id int64 + func (*ReadRequest) Descriptor() ([]byte, []int) + func (*ReadRequest) ProtoMessage() + func (x *ReadRequest) GetApi() string + func (x *ReadRequest) GetId() int64 + func (x *ReadRequest) ProtoReflect() protoreflect.Message + func (x *ReadRequest) Reset() + func (x *ReadRequest) String() string + type ReadResponse struct + Account *Account + Api string + func (*ReadResponse) Descriptor() ([]byte, []int) + func (*ReadResponse) ProtoMessage() + func (x *ReadResponse) GetAccount() *Account + func (x *ReadResponse) GetApi() string + func (x *ReadResponse) ProtoReflect() protoreflect.Message + func (x *ReadResponse) Reset() + func (x *ReadResponse) String() string + type UnimplementedAccountServiceServer struct + func (*UnimplementedAccountServiceServer) Create(context.Context, *CreateRequest) (*CreateResponse, error) + func (*UnimplementedAccountServiceServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) + func (*UnimplementedAccountServiceServer) Read(context.Context, *ReadRequest) (*ReadResponse, error) + func (*UnimplementedAccountServiceServer) ReadAll(context.Context, *ReadAllRequest) (*ReadAllResponse, error) + func (*UnimplementedAccountServiceServer) Update(context.Context, *UpdateRequest) (*UpdateResponse, error) + type UnimplementedAuthServiceServer struct + func (*UnimplementedAuthServiceServer) Login(context.Context, *LoginRequest) (*LoginResponse, error) + type UpdateRequest struct + Account *Account + Api string + func (*UpdateRequest) Descriptor() ([]byte, []int) + func (*UpdateRequest) ProtoMessage() + func (x *UpdateRequest) GetAccount() *Account + func (x *UpdateRequest) GetApi() string + func (x *UpdateRequest) ProtoReflect() protoreflect.Message + func (x *UpdateRequest) Reset() + func (x *UpdateRequest) String() string + type UpdateResponse struct + Api string + Updated int64 + func (*UpdateResponse) Descriptor() ([]byte, []int) + func (*UpdateResponse) ProtoMessage() + func (x *UpdateResponse) GetApi() string + func (x *UpdateResponse) GetUpdated() int64 + func (x *UpdateResponse) ProtoReflect() protoreflect.Message + func (x *UpdateResponse) Reset() + func (x *UpdateResponse) String() string