interestcalpb

package
v1.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_interestcal_interestcalpb_intrestcalservice_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Bank.ProtoReflect.Descriptor instead.

func (*Bank) GetDelta

func (x *Bank) GetDelta() float64

func (*Bank) GetDeposits

func (x *Bank) GetDeposits() []*Deposit

func (*Bank) GetName

func (x *Bank) GetName() string

func (*Bank) ProtoMessage

func (*Bank) ProtoMessage()

func (*Bank) ProtoReflect

func (x *Bank) ProtoReflect() protoreflect.Message

func (*Bank) Reset

func (x *Bank) Reset()

func (*Bank) String

func (x *Bank) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Deposit.ProtoReflect.Descriptor instead.

func (*Deposit) GetAccount

func (x *Deposit) GetAccount() string

func (*Deposit) GetAccountType

func (x *Deposit) GetAccountType() string

func (*Deposit) GetAmount

func (x *Deposit) GetAmount() float64

func (*Deposit) GetApy

func (x *Deposit) GetApy() float64

func (*Deposit) GetDelta

func (x *Deposit) GetDelta() float64

func (*Deposit) GetYears

func (x *Deposit) GetYears() float64

func (*Deposit) ProtoMessage

func (*Deposit) ProtoMessage()

func (*Deposit) ProtoReflect

func (x *Deposit) ProtoReflect() protoreflect.Message

func (*Deposit) Reset

func (x *Deposit) Reset()

func (*Deposit) String

func (x *Deposit) String() string

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.

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) Descriptor() ([]byte, []int)

Deprecated: Use NewBank.ProtoReflect.Descriptor instead.

func (*NewBank) GetName

func (x *NewBank) GetName() string

func (*NewBank) GetNewDeposits

func (x *NewBank) GetNewDeposits() []*NewDeposit

func (*NewBank) ProtoMessage

func (*NewBank) ProtoMessage()

func (*NewBank) ProtoReflect

func (x *NewBank) ProtoReflect() protoreflect.Message

func (*NewBank) Reset

func (x *NewBank) Reset()

func (*NewBank) String

func (x *NewBank) String() string

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳