Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterBankServiceServer(s grpc.ServiceRegistrar, srv BankServiceServer)
- type BankServiceClient
- type BankServiceServer
- type CurrentBalanceRequest
- func (*CurrentBalanceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CurrentBalanceRequest) GetAccountNumber() string
- func (*CurrentBalanceRequest) ProtoMessage()
- func (x *CurrentBalanceRequest) ProtoReflect() protoreflect.Message
- func (x *CurrentBalanceRequest) Reset()
- func (x *CurrentBalanceRequest) String() string
- type CurrentBalanceResponse
- func (*CurrentBalanceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CurrentBalanceResponse) GetAmount() float64
- func (x *CurrentBalanceResponse) GetCurrentDate() *date.Date
- func (*CurrentBalanceResponse) ProtoMessage()
- func (x *CurrentBalanceResponse) ProtoReflect() protoreflect.Message
- func (x *CurrentBalanceResponse) Reset()
- func (x *CurrentBalanceResponse) String() string
- type UnimplementedBankServiceServer
- type UnsafeBankServiceServer
Constants ¶
const (
BankService_GetCurrentBalance_FullMethodName = "/bank.BankService/GetCurrentBalance"
)
Variables ¶
var BankService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "bank.BankService", HandlerType: (*BankServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetCurrentBalance", Handler: _BankService_GetCurrentBalance_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/bank/bank.proto", }
BankService_ServiceDesc is the grpc.ServiceDesc for BankService 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_balance_proto protoreflect.FileDescriptor
var File_proto_bank_bank_proto protoreflect.FileDescriptor
Functions ¶
func RegisterBankServiceServer ¶
func RegisterBankServiceServer(s grpc.ServiceRegistrar, srv BankServiceServer)
Types ¶
type BankServiceClient ¶
type BankServiceClient interface {
GetCurrentBalance(ctx context.Context, in *CurrentBalanceRequest, opts ...grpc.CallOption) (*CurrentBalanceResponse, error)
}
BankServiceClient is the client API for BankService 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 NewBankServiceClient ¶
func NewBankServiceClient(cc grpc.ClientConnInterface) BankServiceClient
type BankServiceServer ¶
type BankServiceServer interface { GetCurrentBalance(context.Context, *CurrentBalanceRequest) (*CurrentBalanceResponse, error) // contains filtered or unexported methods }
BankServiceServer is the server API for BankService service. All implementations must embed UnimplementedBankServiceServer for forward compatibility
type CurrentBalanceRequest ¶
type CurrentBalanceRequest struct { AccountNumber string `protobuf:"bytes,1,opt,name=account_number,proto3" json:"account_number,omitempty"` // contains filtered or unexported fields }
func (*CurrentBalanceRequest) Descriptor
deprecated
func (*CurrentBalanceRequest) Descriptor() ([]byte, []int)
Deprecated: Use CurrentBalanceRequest.ProtoReflect.Descriptor instead.
func (*CurrentBalanceRequest) GetAccountNumber ¶
func (x *CurrentBalanceRequest) GetAccountNumber() string
func (*CurrentBalanceRequest) ProtoMessage ¶
func (*CurrentBalanceRequest) ProtoMessage()
func (*CurrentBalanceRequest) ProtoReflect ¶
func (x *CurrentBalanceRequest) ProtoReflect() protoreflect.Message
func (*CurrentBalanceRequest) Reset ¶
func (x *CurrentBalanceRequest) Reset()
func (*CurrentBalanceRequest) String ¶
func (x *CurrentBalanceRequest) String() string
type CurrentBalanceResponse ¶
type CurrentBalanceResponse struct { Amount float64 `protobuf:"fixed64,1,opt,name=amount,proto3" json:"amount,omitempty"` CurrentDate *date.Date `protobuf:"bytes,2,opt,name=current_date,proto3" json:"current_date,omitempty"` // contains filtered or unexported fields }
func (*CurrentBalanceResponse) Descriptor
deprecated
func (*CurrentBalanceResponse) Descriptor() ([]byte, []int)
Deprecated: Use CurrentBalanceResponse.ProtoReflect.Descriptor instead.
func (*CurrentBalanceResponse) GetAmount ¶
func (x *CurrentBalanceResponse) GetAmount() float64
func (*CurrentBalanceResponse) GetCurrentDate ¶
func (x *CurrentBalanceResponse) GetCurrentDate() *date.Date
func (*CurrentBalanceResponse) ProtoMessage ¶
func (*CurrentBalanceResponse) ProtoMessage()
func (*CurrentBalanceResponse) ProtoReflect ¶
func (x *CurrentBalanceResponse) ProtoReflect() protoreflect.Message
func (*CurrentBalanceResponse) Reset ¶
func (x *CurrentBalanceResponse) Reset()
func (*CurrentBalanceResponse) String ¶
func (x *CurrentBalanceResponse) String() string
type UnimplementedBankServiceServer ¶
type UnimplementedBankServiceServer struct { }
UnimplementedBankServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedBankServiceServer) GetCurrentBalance ¶
func (UnimplementedBankServiceServer) GetCurrentBalance(context.Context, *CurrentBalanceRequest) (*CurrentBalanceResponse, error)
type UnsafeBankServiceServer ¶
type UnsafeBankServiceServer interface {
// contains filtered or unexported methods
}
UnsafeBankServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BankServiceServer will result in compilation errors.