Documentation
¶
Index ¶
- Variables
- func RegisterInterestCalServiceServer(s grpc.ServiceRegistrar, srv InterestCalServiceServer)
- type Bank
- type CreateInterestRequest
- func (*CreateInterestRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateInterestRequest) GetNewBanks() []*NewBank
- func (*CreateInterestRequest) ProtoMessage()
- func (x *CreateInterestRequest) ProtoReflect() protoreflect.Message
- func (x *CreateInterestRequest) Reset()
- func (x *CreateInterestRequest) String() string
- type CreateInterestResponse
- func (*CreateInterestResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateInterestResponse) GetBanks() []*Bank
- func (x *CreateInterestResponse) GetDelta() float64
- func (*CreateInterestResponse) ProtoMessage()
- func (x *CreateInterestResponse) ProtoReflect() protoreflect.Message
- func (x *CreateInterestResponse) Reset()
- func (x *CreateInterestResponse) String() string
- type Deposit
- func (*Deposit) Descriptor() ([]byte, []int)deprecated
- func (x *Deposit) GetAccount() string
- func (x *Deposit) GetAccountType() string
- func (x *Deposit) GetAmount() float64
- func (x *Deposit) GetApy() float64
- func (x *Deposit) GetDelta() float64
- func (x *Deposit) GetYears() float64
- func (*Deposit) ProtoMessage()
- func (x *Deposit) ProtoReflect() protoreflect.Message
- func (x *Deposit) Reset()
- func (x *Deposit) String() string
- type InterestCalServiceClient
- type InterestCalServiceServer
- type NewBank
- type NewDeposit
- func (*NewDeposit) Descriptor() ([]byte, []int)deprecated
- func (x *NewDeposit) GetAccount() string
- func (x *NewDeposit) GetAccountType() string
- func (x *NewDeposit) GetAmount() float64
- func (x *NewDeposit) GetApy() float64
- func (x *NewDeposit) GetYears() float64
- func (*NewDeposit) ProtoMessage()
- func (x *NewDeposit) ProtoReflect() protoreflect.Message
- func (x *NewDeposit) Reset()
- func (x *NewDeposit) String() string
- type UnimplementedInterestCalServiceServer
- type UnsafeInterestCalServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_interestcal_interestcalpb_intrestcalservice_proto protoreflect.FileDescriptor
var InterestCalService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "interestcal.InterestCalService", HandlerType: (*InterestCalServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateInterest", Handler: _InterestCalService_CreateInterest_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "interestcal/interestcalpb/intrestcalservice.proto", }
InterestCalService_ServiceDesc is the grpc.ServiceDesc for InterestCalService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterInterestCalServiceServer ¶
func RegisterInterestCalServiceServer(s grpc.ServiceRegistrar, srv InterestCalServiceServer)
Types ¶
type Bank ¶
type Bank struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Deposits []*Deposit `protobuf:"bytes,2,rep,name=deposits,proto3" json:"deposits,omitempty"` Delta float64 `protobuf:"fixed64,3,opt,name=delta,proto3" json:"delta,omitempty"` // contains filtered or unexported fields }
func (*Bank) Descriptor
deprecated
func (*Bank) GetDeposits ¶
func (*Bank) ProtoMessage ¶
func (*Bank) ProtoMessage()
func (*Bank) ProtoReflect ¶
func (x *Bank) ProtoReflect() protoreflect.Message
type CreateInterestRequest ¶
type CreateInterestRequest struct { NewBanks []*NewBank `protobuf:"bytes,1,rep,name=new_banks,json=newBanks,proto3" json:"new_banks,omitempty"` // contains filtered or unexported fields }
func (*CreateInterestRequest) Descriptor
deprecated
func (*CreateInterestRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateInterestRequest.ProtoReflect.Descriptor instead.
func (*CreateInterestRequest) GetNewBanks ¶
func (x *CreateInterestRequest) GetNewBanks() []*NewBank
func (*CreateInterestRequest) ProtoMessage ¶
func (*CreateInterestRequest) ProtoMessage()
func (*CreateInterestRequest) ProtoReflect ¶
func (x *CreateInterestRequest) ProtoReflect() protoreflect.Message
func (*CreateInterestRequest) Reset ¶
func (x *CreateInterestRequest) Reset()
func (*CreateInterestRequest) String ¶
func (x *CreateInterestRequest) String() string
type CreateInterestResponse ¶
type CreateInterestResponse struct { Banks []*Bank `protobuf:"bytes,1,rep,name=banks,proto3" json:"banks,omitempty"` Delta float64 `protobuf:"fixed64,2,opt,name=delta,proto3" json:"delta,omitempty"` // contains filtered or unexported fields }
func (*CreateInterestResponse) Descriptor
deprecated
func (*CreateInterestResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateInterestResponse.ProtoReflect.Descriptor instead.
func (*CreateInterestResponse) GetBanks ¶
func (x *CreateInterestResponse) GetBanks() []*Bank
func (*CreateInterestResponse) GetDelta ¶
func (x *CreateInterestResponse) GetDelta() float64
func (*CreateInterestResponse) ProtoMessage ¶
func (*CreateInterestResponse) ProtoMessage()
func (*CreateInterestResponse) ProtoReflect ¶
func (x *CreateInterestResponse) ProtoReflect() protoreflect.Message
func (*CreateInterestResponse) Reset ¶
func (x *CreateInterestResponse) Reset()
func (*CreateInterestResponse) String ¶
func (x *CreateInterestResponse) String() string
type Deposit ¶
type Deposit struct { Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` AccountType string `protobuf:"bytes,2,opt,name=account_type,json=accountType,proto3" json:"account_type,omitempty"` Apy float64 `protobuf:"fixed64,3,opt,name=apy,proto3" json:"apy,omitempty"` Years float64 `protobuf:"fixed64,4,opt,name=years,proto3" json:"years,omitempty"` Amount float64 `protobuf:"fixed64,5,opt,name=amount,proto3" json:"amount,omitempty"` Delta float64 `protobuf:"fixed64,6,opt,name=delta,proto3" json:"delta,omitempty"` // contains filtered or unexported fields }
func (*Deposit) Descriptor
deprecated
func (*Deposit) GetAccount ¶
func (*Deposit) GetAccountType ¶
func (*Deposit) ProtoMessage ¶
func (*Deposit) ProtoMessage()
func (*Deposit) ProtoReflect ¶
func (x *Deposit) ProtoReflect() protoreflect.Message
type InterestCalServiceClient ¶
type InterestCalServiceClient interface {
CreateInterest(ctx context.Context, in *CreateInterestRequest, opts ...grpc.CallOption) (*CreateInterestResponse, error)
}
InterestCalServiceClient is the client API for InterestCalService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkgo.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewInterestCalServiceClient ¶
func NewInterestCalServiceClient(cc grpc.ClientConnInterface) InterestCalServiceClient
type InterestCalServiceServer ¶
type InterestCalServiceServer interface { CreateInterest(context.Context, *CreateInterestRequest) (*CreateInterestResponse, error) // contains filtered or unexported methods }
InterestCalServiceServer is the server API for InterestCalService service. All implementations must embed UnimplementedInterestCalServiceServer for forward compatibility
type NewBank ¶
type NewBank struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` NewDeposits []*NewDeposit `protobuf:"bytes,2,rep,name=new_deposits,json=newDeposits,proto3" json:"new_deposits,omitempty"` // contains filtered or unexported fields }
func (*NewBank) Descriptor
deprecated
func (*NewBank) GetNewDeposits ¶
func (x *NewBank) GetNewDeposits() []*NewDeposit
func (*NewBank) ProtoMessage ¶
func (*NewBank) ProtoMessage()
func (*NewBank) ProtoReflect ¶
func (x *NewBank) ProtoReflect() protoreflect.Message
type NewDeposit ¶
type NewDeposit struct { Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` AccountType string `protobuf:"bytes,2,opt,name=account_type,json=accountType,proto3" json:"account_type,omitempty"` Apy float64 `protobuf:"fixed64,3,opt,name=apy,proto3" json:"apy,omitempty"` Years float64 `protobuf:"fixed64,4,opt,name=years,proto3" json:"years,omitempty"` Amount float64 `protobuf:"fixed64,5,opt,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
func (*NewDeposit) Descriptor
deprecated
func (*NewDeposit) Descriptor() ([]byte, []int)
Deprecated: Use NewDeposit.ProtoReflect.Descriptor instead.
func (*NewDeposit) GetAccount ¶
func (x *NewDeposit) GetAccount() string
func (*NewDeposit) GetAccountType ¶
func (x *NewDeposit) GetAccountType() string
func (*NewDeposit) GetAmount ¶
func (x *NewDeposit) GetAmount() float64
func (*NewDeposit) GetApy ¶
func (x *NewDeposit) GetApy() float64
func (*NewDeposit) GetYears ¶
func (x *NewDeposit) GetYears() float64
func (*NewDeposit) ProtoMessage ¶
func (*NewDeposit) ProtoMessage()
func (*NewDeposit) ProtoReflect ¶
func (x *NewDeposit) ProtoReflect() protoreflect.Message
func (*NewDeposit) Reset ¶
func (x *NewDeposit) Reset()
func (*NewDeposit) String ¶
func (x *NewDeposit) String() string
type UnimplementedInterestCalServiceServer ¶
type UnimplementedInterestCalServiceServer struct { }
UnimplementedInterestCalServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedInterestCalServiceServer) CreateInterest ¶
func (UnimplementedInterestCalServiceServer) CreateInterest(context.Context, *CreateInterestRequest) (*CreateInterestResponse, error)
type UnsafeInterestCalServiceServer ¶
type UnsafeInterestCalServiceServer interface {
// contains filtered or unexported methods
}
UnsafeInterestCalServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to InterestCalServiceServer will result in compilation errors.