Documentation ¶
Index ¶
- Variables
- func RegisterBankServer(s grpc.ServiceRegistrar, srv BankServer)
- func RegisterPairServer(s grpc.ServiceRegistrar, srv PairServer)
- func RegisterTextServer(s grpc.ServiceRegistrar, srv TextServer)
- func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)
- type BankClient
- type BankServer
- type CardMsg
- func (*CardMsg) Descriptor() ([]byte, []int)deprecated
- func (x *CardMsg) GetCardHolder() string
- func (x *CardMsg) GetExpirationDate() string
- func (x *CardMsg) GetId() int64
- func (x *CardMsg) GetMetadata() string
- func (x *CardMsg) GetNumber() string
- func (*CardMsg) ProtoMessage()
- func (x *CardMsg) ProtoReflect() protoreflect.Message
- func (x *CardMsg) Reset()
- func (x *CardMsg) String() string
- type GetAllCardsRequest
- func (*GetAllCardsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAllCardsRequest) GetToken() string
- func (*GetAllCardsRequest) ProtoMessage()
- func (x *GetAllCardsRequest) ProtoReflect() protoreflect.Message
- func (x *GetAllCardsRequest) Reset()
- func (x *GetAllCardsRequest) String() string
- type GetAllCardsResponse
- func (*GetAllCardsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAllCardsResponse) GetCards() []*CardMsg
- func (x *GetAllCardsResponse) GetError() string
- func (*GetAllCardsResponse) ProtoMessage()
- func (x *GetAllCardsResponse) ProtoReflect() protoreflect.Message
- func (x *GetAllCardsResponse) Reset()
- func (x *GetAllCardsResponse) String() string
- type GetAllNotesRequest
- func (*GetAllNotesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAllNotesRequest) GetToken() string
- func (*GetAllNotesRequest) ProtoMessage()
- func (x *GetAllNotesRequest) ProtoReflect() protoreflect.Message
- func (x *GetAllNotesRequest) Reset()
- func (x *GetAllNotesRequest) String() string
- type GetAllNotesResponse
- func (*GetAllNotesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAllNotesResponse) GetError() string
- func (x *GetAllNotesResponse) GetNotes() []*NoteMsg
- func (*GetAllNotesResponse) ProtoMessage()
- func (x *GetAllNotesResponse) ProtoReflect() protoreflect.Message
- func (x *GetAllNotesResponse) Reset()
- func (x *GetAllNotesResponse) String() string
- type GetAllPairsRequest
- func (*GetAllPairsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAllPairsRequest) GetToken() string
- func (*GetAllPairsRequest) ProtoMessage()
- func (x *GetAllPairsRequest) ProtoReflect() protoreflect.Message
- func (x *GetAllPairsRequest) Reset()
- func (x *GetAllPairsRequest) String() string
- type GetAllPairsResponse
- func (*GetAllPairsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAllPairsResponse) GetError() string
- func (x *GetAllPairsResponse) GetPairs() []*PairMsg
- func (*GetAllPairsResponse) ProtoMessage()
- func (x *GetAllPairsResponse) ProtoReflect() protoreflect.Message
- func (x *GetAllPairsResponse) Reset()
- func (x *GetAllPairsResponse) String() 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
- type LoginResponse
- func (*LoginResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LoginResponse) GetError() string
- func (x *LoginResponse) GetToken() string
- func (*LoginResponse) ProtoMessage()
- func (x *LoginResponse) ProtoReflect() protoreflect.Message
- func (x *LoginResponse) Reset()
- func (x *LoginResponse) String() string
- type NoteMsg
- func (*NoteMsg) Descriptor() ([]byte, []int)deprecated
- func (x *NoteMsg) GetId() int64
- func (x *NoteMsg) GetMetadata() string
- func (x *NoteMsg) GetNote() string
- func (*NoteMsg) ProtoMessage()
- func (x *NoteMsg) ProtoReflect() protoreflect.Message
- func (x *NoteMsg) Reset()
- func (x *NoteMsg) String() string
- type PairClient
- type PairMsg
- func (*PairMsg) Descriptor() ([]byte, []int)deprecated
- func (x *PairMsg) GetId() int64
- func (x *PairMsg) GetLogin() string
- func (x *PairMsg) GetMetadata() string
- func (x *PairMsg) GetPassword() string
- func (*PairMsg) ProtoMessage()
- func (x *PairMsg) ProtoReflect() protoreflect.Message
- func (x *PairMsg) Reset()
- func (x *PairMsg) String() string
- type PairServer
- type RegisterRequest
- func (*RegisterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterRequest) GetLogin() string
- func (x *RegisterRequest) GetPassword() string
- func (*RegisterRequest) ProtoMessage()
- func (x *RegisterRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterRequest) Reset()
- func (x *RegisterRequest) String() string
- type RegisterResponse
- func (*RegisterResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterResponse) GetError() string
- func (x *RegisterResponse) GetToken() string
- func (*RegisterResponse) ProtoMessage()
- func (x *RegisterResponse) ProtoReflect() protoreflect.Message
- func (x *RegisterResponse) Reset()
- func (x *RegisterResponse) String() string
- type TextClient
- type TextServer
- type UnimplementedBankServer
- type UnimplementedPairServer
- type UnimplementedTextServer
- type UnimplementedUserServer
- type UnsafeBankServer
- type UnsafePairServer
- type UnsafeTextServer
- type UnsafeUserServer
- type UserClient
- type UserServer
Constants ¶
This section is empty.
Variables ¶
var Bank_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.Bank", HandlerType: (*BankServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetAll", Handler: _Bank_GetAll_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/bank.proto", }
Bank_ServiceDesc is the grpc.ServiceDesc for Bank service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_proto_bank_proto protoreflect.FileDescriptor
var File_proto_pair_proto protoreflect.FileDescriptor
var File_proto_text_proto protoreflect.FileDescriptor
var File_proto_user_proto protoreflect.FileDescriptor
var Pair_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.Pair", HandlerType: (*PairServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetAll", Handler: _Pair_GetAll_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/pair.proto", }
Pair_ServiceDesc is the grpc.ServiceDesc for Pair service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Text_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.Text", HandlerType: (*TextServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetAll", Handler: _Text_GetAll_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/text.proto", }
Text_ServiceDesc is the grpc.ServiceDesc for Text service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var User_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.User", HandlerType: (*UserServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Register", Handler: _User_Register_Handler, }, { MethodName: "Login", Handler: _User_Login_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/user.proto", }
User_ServiceDesc is the grpc.ServiceDesc for User service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterBankServer ¶
func RegisterBankServer(s grpc.ServiceRegistrar, srv BankServer)
func RegisterPairServer ¶
func RegisterPairServer(s grpc.ServiceRegistrar, srv PairServer)
func RegisterTextServer ¶
func RegisterTextServer(s grpc.ServiceRegistrar, srv TextServer)
func RegisterUserServer ¶
func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)
Types ¶
type BankClient ¶
type BankClient interface {
GetAll(ctx context.Context, in *GetAllCardsRequest, opts ...grpc.CallOption) (*GetAllCardsResponse, error)
}
BankClient is the client API for Bank 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 NewBankClient ¶
func NewBankClient(cc grpc.ClientConnInterface) BankClient
type BankServer ¶
type BankServer interface { GetAll(context.Context, *GetAllCardsRequest) (*GetAllCardsResponse, error) // contains filtered or unexported methods }
BankServer is the server API for Bank service. All implementations must embed UnimplementedBankServer for forward compatibility
type CardMsg ¶
type CardMsg struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` CardHolder string `protobuf:"bytes,2,opt,name=card_holder,json=cardHolder,proto3" json:"card_holder,omitempty"` Number string `protobuf:"bytes,3,opt,name=number,proto3" json:"number,omitempty"` ExpirationDate string `protobuf:"bytes,4,opt,name=expiration_date,json=expirationDate,proto3" json:"expiration_date,omitempty"` Metadata string `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
func (*CardMsg) Descriptor
deprecated
func (*CardMsg) GetCardHolder ¶
func (*CardMsg) GetExpirationDate ¶
func (*CardMsg) GetMetadata ¶
func (*CardMsg) ProtoMessage ¶
func (*CardMsg) ProtoMessage()
func (*CardMsg) ProtoReflect ¶
func (x *CardMsg) ProtoReflect() protoreflect.Message
type GetAllCardsRequest ¶
type GetAllCardsRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*GetAllCardsRequest) Descriptor
deprecated
func (*GetAllCardsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAllCardsRequest.ProtoReflect.Descriptor instead.
func (*GetAllCardsRequest) GetToken ¶
func (x *GetAllCardsRequest) GetToken() string
func (*GetAllCardsRequest) ProtoMessage ¶
func (*GetAllCardsRequest) ProtoMessage()
func (*GetAllCardsRequest) ProtoReflect ¶
func (x *GetAllCardsRequest) ProtoReflect() protoreflect.Message
func (*GetAllCardsRequest) Reset ¶
func (x *GetAllCardsRequest) Reset()
func (*GetAllCardsRequest) String ¶
func (x *GetAllCardsRequest) String() string
type GetAllCardsResponse ¶
type GetAllCardsResponse struct { Cards []*CardMsg `protobuf:"bytes,1,rep,name=cards,proto3" json:"cards,omitempty"` Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*GetAllCardsResponse) Descriptor
deprecated
func (*GetAllCardsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAllCardsResponse.ProtoReflect.Descriptor instead.
func (*GetAllCardsResponse) GetCards ¶
func (x *GetAllCardsResponse) GetCards() []*CardMsg
func (*GetAllCardsResponse) GetError ¶
func (x *GetAllCardsResponse) GetError() string
func (*GetAllCardsResponse) ProtoMessage ¶
func (*GetAllCardsResponse) ProtoMessage()
func (*GetAllCardsResponse) ProtoReflect ¶
func (x *GetAllCardsResponse) ProtoReflect() protoreflect.Message
func (*GetAllCardsResponse) Reset ¶
func (x *GetAllCardsResponse) Reset()
func (*GetAllCardsResponse) String ¶
func (x *GetAllCardsResponse) String() string
type GetAllNotesRequest ¶
type GetAllNotesRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*GetAllNotesRequest) Descriptor
deprecated
func (*GetAllNotesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAllNotesRequest.ProtoReflect.Descriptor instead.
func (*GetAllNotesRequest) GetToken ¶
func (x *GetAllNotesRequest) GetToken() string
func (*GetAllNotesRequest) ProtoMessage ¶
func (*GetAllNotesRequest) ProtoMessage()
func (*GetAllNotesRequest) ProtoReflect ¶
func (x *GetAllNotesRequest) ProtoReflect() protoreflect.Message
func (*GetAllNotesRequest) Reset ¶
func (x *GetAllNotesRequest) Reset()
func (*GetAllNotesRequest) String ¶
func (x *GetAllNotesRequest) String() string
type GetAllNotesResponse ¶
type GetAllNotesResponse struct { Notes []*NoteMsg `protobuf:"bytes,1,rep,name=notes,proto3" json:"notes,omitempty"` Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*GetAllNotesResponse) Descriptor
deprecated
func (*GetAllNotesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAllNotesResponse.ProtoReflect.Descriptor instead.
func (*GetAllNotesResponse) GetError ¶
func (x *GetAllNotesResponse) GetError() string
func (*GetAllNotesResponse) GetNotes ¶
func (x *GetAllNotesResponse) GetNotes() []*NoteMsg
func (*GetAllNotesResponse) ProtoMessage ¶
func (*GetAllNotesResponse) ProtoMessage()
func (*GetAllNotesResponse) ProtoReflect ¶
func (x *GetAllNotesResponse) ProtoReflect() protoreflect.Message
func (*GetAllNotesResponse) Reset ¶
func (x *GetAllNotesResponse) Reset()
func (*GetAllNotesResponse) String ¶
func (x *GetAllNotesResponse) String() string
type GetAllPairsRequest ¶
type GetAllPairsRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*GetAllPairsRequest) Descriptor
deprecated
func (*GetAllPairsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAllPairsRequest.ProtoReflect.Descriptor instead.
func (*GetAllPairsRequest) GetToken ¶
func (x *GetAllPairsRequest) GetToken() string
func (*GetAllPairsRequest) ProtoMessage ¶
func (*GetAllPairsRequest) ProtoMessage()
func (*GetAllPairsRequest) ProtoReflect ¶
func (x *GetAllPairsRequest) ProtoReflect() protoreflect.Message
func (*GetAllPairsRequest) Reset ¶
func (x *GetAllPairsRequest) Reset()
func (*GetAllPairsRequest) String ¶
func (x *GetAllPairsRequest) String() string
type GetAllPairsResponse ¶
type GetAllPairsResponse struct { Pairs []*PairMsg `protobuf:"bytes,1,rep,name=pairs,proto3" json:"pairs,omitempty"` Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*GetAllPairsResponse) Descriptor
deprecated
func (*GetAllPairsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAllPairsResponse.ProtoReflect.Descriptor instead.
func (*GetAllPairsResponse) GetError ¶
func (x *GetAllPairsResponse) GetError() string
func (*GetAllPairsResponse) GetPairs ¶
func (x *GetAllPairsResponse) GetPairs() []*PairMsg
func (*GetAllPairsResponse) ProtoMessage ¶
func (*GetAllPairsResponse) ProtoMessage()
func (*GetAllPairsResponse) ProtoReflect ¶
func (x *GetAllPairsResponse) ProtoReflect() protoreflect.Message
func (*GetAllPairsResponse) Reset ¶
func (x *GetAllPairsResponse) Reset()
func (*GetAllPairsResponse) String ¶
func (x *GetAllPairsResponse) String() string
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 }
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 ¶
func (x *LoginRequest) ProtoReflect() protoreflect.Message
func (*LoginRequest) Reset ¶
func (x *LoginRequest) Reset()
func (*LoginRequest) String ¶
func (x *LoginRequest) String() string
type LoginResponse ¶
type LoginResponse struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*LoginResponse) Descriptor
deprecated
func (*LoginResponse) Descriptor() ([]byte, []int)
Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.
func (*LoginResponse) GetError ¶
func (x *LoginResponse) GetError() string
func (*LoginResponse) GetToken ¶
func (x *LoginResponse) GetToken() string
func (*LoginResponse) ProtoMessage ¶
func (*LoginResponse) ProtoMessage()
func (*LoginResponse) ProtoReflect ¶
func (x *LoginResponse) ProtoReflect() protoreflect.Message
func (*LoginResponse) Reset ¶
func (x *LoginResponse) Reset()
func (*LoginResponse) String ¶
func (x *LoginResponse) String() string
type NoteMsg ¶
type NoteMsg struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Note string `protobuf:"bytes,2,opt,name=note,proto3" json:"note,omitempty"` Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
func (*NoteMsg) Descriptor
deprecated
func (*NoteMsg) GetMetadata ¶
func (*NoteMsg) ProtoMessage ¶
func (*NoteMsg) ProtoMessage()
func (*NoteMsg) ProtoReflect ¶
func (x *NoteMsg) ProtoReflect() protoreflect.Message
type PairClient ¶
type PairClient interface {
GetAll(ctx context.Context, in *GetAllPairsRequest, opts ...grpc.CallOption) (*GetAllPairsResponse, error)
}
PairClient is the client API for Pair 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 NewPairClient ¶
func NewPairClient(cc grpc.ClientConnInterface) PairClient
type PairMsg ¶
type PairMsg struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Login string `protobuf:"bytes,2,opt,name=login,proto3" json:"login,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` Metadata string `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
func (*PairMsg) Descriptor
deprecated
func (*PairMsg) GetMetadata ¶
func (*PairMsg) GetPassword ¶
func (*PairMsg) ProtoMessage ¶
func (*PairMsg) ProtoMessage()
func (*PairMsg) ProtoReflect ¶
func (x *PairMsg) ProtoReflect() protoreflect.Message
type PairServer ¶
type PairServer interface { GetAll(context.Context, *GetAllPairsRequest) (*GetAllPairsResponse, error) // contains filtered or unexported methods }
PairServer is the server API for Pair service. All implementations must embed UnimplementedPairServer for forward compatibility
type RegisterRequest ¶
type RegisterRequest 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 }
func (*RegisterRequest) Descriptor
deprecated
func (*RegisterRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.
func (*RegisterRequest) GetLogin ¶
func (x *RegisterRequest) GetLogin() string
func (*RegisterRequest) GetPassword ¶
func (x *RegisterRequest) GetPassword() string
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 { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*RegisterResponse) Descriptor
deprecated
func (*RegisterResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterResponse.ProtoReflect.Descriptor instead.
func (*RegisterResponse) GetError ¶
func (x *RegisterResponse) GetError() string
func (*RegisterResponse) GetToken ¶
func (x *RegisterResponse) GetToken() string
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 TextClient ¶
type TextClient interface {
GetAll(ctx context.Context, in *GetAllNotesRequest, opts ...grpc.CallOption) (*GetAllNotesResponse, error)
}
TextClient is the client API for Text 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 NewTextClient ¶
func NewTextClient(cc grpc.ClientConnInterface) TextClient
type TextServer ¶
type TextServer interface { GetAll(context.Context, *GetAllNotesRequest) (*GetAllNotesResponse, error) // contains filtered or unexported methods }
TextServer is the server API for Text service. All implementations must embed UnimplementedTextServer for forward compatibility
type UnimplementedBankServer ¶
type UnimplementedBankServer struct { }
UnimplementedBankServer must be embedded to have forward compatible implementations.
func (UnimplementedBankServer) GetAll ¶
func (UnimplementedBankServer) GetAll(context.Context, *GetAllCardsRequest) (*GetAllCardsResponse, error)
type UnimplementedPairServer ¶
type UnimplementedPairServer struct { }
UnimplementedPairServer must be embedded to have forward compatible implementations.
func (UnimplementedPairServer) GetAll ¶
func (UnimplementedPairServer) GetAll(context.Context, *GetAllPairsRequest) (*GetAllPairsResponse, error)
type UnimplementedTextServer ¶
type UnimplementedTextServer struct { }
UnimplementedTextServer must be embedded to have forward compatible implementations.
func (UnimplementedTextServer) GetAll ¶
func (UnimplementedTextServer) GetAll(context.Context, *GetAllNotesRequest) (*GetAllNotesResponse, error)
type UnimplementedUserServer ¶
type UnimplementedUserServer struct { }
UnimplementedUserServer must be embedded to have forward compatible implementations.
func (UnimplementedUserServer) Login ¶
func (UnimplementedUserServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
func (UnimplementedUserServer) Register ¶
func (UnimplementedUserServer) Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
type UnsafeBankServer ¶
type UnsafeBankServer interface {
// contains filtered or unexported methods
}
UnsafeBankServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BankServer will result in compilation errors.
type UnsafePairServer ¶
type UnsafePairServer interface {
// contains filtered or unexported methods
}
UnsafePairServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PairServer will result in compilation errors.
type UnsafeTextServer ¶
type UnsafeTextServer interface {
// contains filtered or unexported methods
}
UnsafeTextServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TextServer will result in compilation errors.
type UnsafeUserServer ¶
type UnsafeUserServer interface {
// contains filtered or unexported methods
}
UnsafeUserServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServer will result in compilation errors.
type UserClient ¶
type UserClient interface { Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error) Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error) }
UserClient is the client API for User 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 NewUserClient ¶
func NewUserClient(cc grpc.ClientConnInterface) UserClient
type UserServer ¶
type UserServer interface { Register(context.Context, *RegisterRequest) (*RegisterResponse, error) Login(context.Context, *LoginRequest) (*LoginResponse, error) // contains filtered or unexported methods }
UserServer is the server API for User service. All implementations must embed UnimplementedUserServer for forward compatibility