Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterAccountProtoServer(s grpc.ServiceRegistrar, srv AccountProtoServer)
- type Account
- func (*Account) Descriptor() ([]byte, []int)deprecated
- func (x *Account) GetAlias() string
- func (x *Account) GetAllowReceiving() bool
- func (x *Account) GetAllowSending() bool
- func (x *Account) GetAvailableBalance() float64
- func (x *Account) GetBalanceScale() float64
- func (x *Account) GetId() string
- func (x *Account) GetOnHoldBalance() float64
- func (*Account) ProtoMessage()
- func (x *Account) ProtoReflect() protoreflect.Message
- func (x *Account) Reset()
- func (x *Account) String() string
- type AccountAlias
- type AccountID
- type AccountProtoClient
- type AccountProtoServer
- type ManyAccountsAlias
- func (*ManyAccountsAlias) Descriptor() ([]byte, []int)deprecated
- func (x *ManyAccountsAlias) GetAliases() []*AccountAlias
- func (*ManyAccountsAlias) ProtoMessage()
- func (x *ManyAccountsAlias) ProtoReflect() protoreflect.Message
- func (x *ManyAccountsAlias) Reset()
- func (x *ManyAccountsAlias) String() string
- type ManyAccountsID
- type ManyAccountsResponse
- func (*ManyAccountsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ManyAccountsResponse) GetAccounts() []*Account
- func (*ManyAccountsResponse) ProtoMessage()
- func (x *ManyAccountsResponse) ProtoReflect() protoreflect.Message
- func (x *ManyAccountsResponse) Reset()
- func (x *ManyAccountsResponse) String() string
- type UnimplementedAccountProtoServer
- func (UnimplementedAccountProtoServer) GetByAlias(context.Context, *ManyAccountsAlias) (*ManyAccountsResponse, error)
- func (UnimplementedAccountProtoServer) GetByIds(context.Context, *ManyAccountsID) (*ManyAccountsResponse, error)
- func (UnimplementedAccountProtoServer) Update(context.Context, *UpdateRequest) (*Account, error)
- type UnsafeAccountProtoServer
- type UpdateRequest
- func (*UpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRequest) GetAlias() string
- func (x *UpdateRequest) GetAvailableBalance() float64
- func (x *UpdateRequest) GetBalanceScale() float64
- func (x *UpdateRequest) GetId() string
- func (x *UpdateRequest) GetOnHoldBalance() float64
- func (*UpdateRequest) ProtoMessage()
- func (x *UpdateRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateRequest) Reset()
- func (x *UpdateRequest) String() string
Constants ¶
const ( AccountProto_GetByIds_FullMethodName = "/account.AccountProto/GetByIds" AccountProto_GetByAlias_FullMethodName = "/account.AccountProto/GetByAlias" AccountProto_Update_FullMethodName = "/account.AccountProto/Update" )
Variables ¶
var AccountProto_ServiceDesc = grpc.ServiceDesc{ ServiceName: "account.AccountProto", HandlerType: (*AccountProtoServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetByIds", Handler: _AccountProto_GetByIds_Handler, }, { MethodName: "GetByAlias", Handler: _AccountProto_GetByAlias_Handler, }, { MethodName: "Update", Handler: _AccountProto_Update_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/account/account.proto", }
AccountProto_ServiceDesc is the grpc.ServiceDesc for AccountProto 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_account_account_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAccountProtoServer ¶
func RegisterAccountProtoServer(s grpc.ServiceRegistrar, srv AccountProtoServer)
Types ¶
type Account ¶
type Account struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Alias string `protobuf:"bytes,2,opt,name=alias,proto3" json:"alias,omitempty"` AvailableBalance float64 `protobuf:"fixed64,3,opt,name=available_balance,json=availableBalance,proto3" json:"available_balance,omitempty"` OnHoldBalance float64 `protobuf:"fixed64,4,opt,name=on_hold_balance,json=onHoldBalance,proto3" json:"on_hold_balance,omitempty"` BalanceScale float64 `protobuf:"fixed64,5,opt,name=balance_scale,json=balanceScale,proto3" json:"balance_scale,omitempty"` AllowSending bool `protobuf:"varint,6,opt,name=allow_sending,json=allowSending,proto3" json:"allow_sending,omitempty"` AllowReceiving bool `protobuf:"varint,7,opt,name=allow_receiving,json=allowReceiving,proto3" json:"allow_receiving,omitempty"` // contains filtered or unexported fields }
func (*Account) Descriptor
deprecated
func (*Account) GetAllowReceiving ¶
func (*Account) GetAllowSending ¶
func (*Account) GetAvailableBalance ¶
func (*Account) GetBalanceScale ¶
func (*Account) GetOnHoldBalance ¶
func (*Account) ProtoMessage ¶
func (*Account) ProtoMessage()
func (*Account) ProtoReflect ¶
func (x *Account) ProtoReflect() protoreflect.Message
type AccountAlias ¶
type AccountAlias struct { Alias string `protobuf:"bytes,1,opt,name=alias,proto3" json:"alias,omitempty"` // contains filtered or unexported fields }
func (*AccountAlias) Descriptor
deprecated
func (*AccountAlias) Descriptor() ([]byte, []int)
Deprecated: Use AccountAlias.ProtoReflect.Descriptor instead.
func (*AccountAlias) GetAlias ¶
func (x *AccountAlias) GetAlias() string
func (*AccountAlias) ProtoMessage ¶
func (*AccountAlias) ProtoMessage()
func (*AccountAlias) ProtoReflect ¶
func (x *AccountAlias) ProtoReflect() protoreflect.Message
func (*AccountAlias) Reset ¶
func (x *AccountAlias) Reset()
func (*AccountAlias) String ¶
func (x *AccountAlias) String() string
type AccountID ¶
type AccountID struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*AccountID) Descriptor
deprecated
func (*AccountID) ProtoMessage ¶
func (*AccountID) ProtoMessage()
func (*AccountID) ProtoReflect ¶
func (x *AccountID) ProtoReflect() protoreflect.Message
type AccountProtoClient ¶
type AccountProtoClient interface { GetByIds(ctx context.Context, in *ManyAccountsID, opts ...grpc.CallOption) (*ManyAccountsResponse, error) GetByAlias(ctx context.Context, in *ManyAccountsAlias, opts ...grpc.CallOption) (*ManyAccountsResponse, error) Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*Account, error) }
AccountProtoClient is the client API for AccountProto 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 NewAccountProtoClient ¶
func NewAccountProtoClient(cc grpc.ClientConnInterface) AccountProtoClient
type AccountProtoServer ¶
type AccountProtoServer interface { GetByIds(context.Context, *ManyAccountsID) (*ManyAccountsResponse, error) GetByAlias(context.Context, *ManyAccountsAlias) (*ManyAccountsResponse, error) Update(context.Context, *UpdateRequest) (*Account, error) // contains filtered or unexported methods }
AccountProtoServer is the server API for AccountProto service. All implementations must embed UnimplementedAccountProtoServer for forward compatibility.
type ManyAccountsAlias ¶
type ManyAccountsAlias struct { Aliases []*AccountAlias `protobuf:"bytes,1,rep,name=aliases,proto3" json:"aliases,omitempty"` // contains filtered or unexported fields }
func (*ManyAccountsAlias) Descriptor
deprecated
func (*ManyAccountsAlias) Descriptor() ([]byte, []int)
Deprecated: Use ManyAccountsAlias.ProtoReflect.Descriptor instead.
func (*ManyAccountsAlias) GetAliases ¶
func (x *ManyAccountsAlias) GetAliases() []*AccountAlias
func (*ManyAccountsAlias) ProtoMessage ¶
func (*ManyAccountsAlias) ProtoMessage()
func (*ManyAccountsAlias) ProtoReflect ¶
func (x *ManyAccountsAlias) ProtoReflect() protoreflect.Message
func (*ManyAccountsAlias) Reset ¶
func (x *ManyAccountsAlias) Reset()
func (*ManyAccountsAlias) String ¶
func (x *ManyAccountsAlias) String() string
type ManyAccountsID ¶
type ManyAccountsID struct { Ids []*AccountID `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` // contains filtered or unexported fields }
func (*ManyAccountsID) Descriptor
deprecated
func (*ManyAccountsID) Descriptor() ([]byte, []int)
Deprecated: Use ManyAccountsID.ProtoReflect.Descriptor instead.
func (*ManyAccountsID) GetIds ¶
func (x *ManyAccountsID) GetIds() []*AccountID
func (*ManyAccountsID) ProtoMessage ¶
func (*ManyAccountsID) ProtoMessage()
func (*ManyAccountsID) ProtoReflect ¶
func (x *ManyAccountsID) ProtoReflect() protoreflect.Message
func (*ManyAccountsID) Reset ¶
func (x *ManyAccountsID) Reset()
func (*ManyAccountsID) String ¶
func (x *ManyAccountsID) String() string
type ManyAccountsResponse ¶
type ManyAccountsResponse struct { Accounts []*Account `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"` // contains filtered or unexported fields }
func (*ManyAccountsResponse) Descriptor
deprecated
func (*ManyAccountsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ManyAccountsResponse.ProtoReflect.Descriptor instead.
func (*ManyAccountsResponse) GetAccounts ¶
func (x *ManyAccountsResponse) GetAccounts() []*Account
func (*ManyAccountsResponse) ProtoMessage ¶
func (*ManyAccountsResponse) ProtoMessage()
func (*ManyAccountsResponse) ProtoReflect ¶
func (x *ManyAccountsResponse) ProtoReflect() protoreflect.Message
func (*ManyAccountsResponse) Reset ¶
func (x *ManyAccountsResponse) Reset()
func (*ManyAccountsResponse) String ¶
func (x *ManyAccountsResponse) String() string
type UnimplementedAccountProtoServer ¶
type UnimplementedAccountProtoServer struct{}
UnimplementedAccountProtoServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedAccountProtoServer) GetByAlias ¶
func (UnimplementedAccountProtoServer) GetByAlias(context.Context, *ManyAccountsAlias) (*ManyAccountsResponse, error)
func (UnimplementedAccountProtoServer) GetByIds ¶
func (UnimplementedAccountProtoServer) GetByIds(context.Context, *ManyAccountsID) (*ManyAccountsResponse, error)
func (UnimplementedAccountProtoServer) Update ¶
func (UnimplementedAccountProtoServer) Update(context.Context, *UpdateRequest) (*Account, error)
type UnsafeAccountProtoServer ¶
type UnsafeAccountProtoServer interface {
// contains filtered or unexported methods
}
UnsafeAccountProtoServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AccountProtoServer will result in compilation errors.
type UpdateRequest ¶
type UpdateRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Alias string `protobuf:"bytes,2,opt,name=alias,proto3" json:"alias,omitempty"` AvailableBalance float64 `protobuf:"fixed64,3,opt,name=available_balance,json=availableBalance,proto3" json:"available_balance,omitempty"` OnHoldBalance float64 `protobuf:"fixed64,4,opt,name=on_hold_balance,json=onHoldBalance,proto3" json:"on_hold_balance,omitempty"` BalanceScale float64 `protobuf:"fixed64,5,opt,name=balance_scale,json=balanceScale,proto3" json:"balance_scale,omitempty"` // contains filtered or unexported fields }
func (*UpdateRequest) Descriptor
deprecated
func (*UpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.
func (*UpdateRequest) GetAlias ¶
func (x *UpdateRequest) GetAlias() string
func (*UpdateRequest) GetAvailableBalance ¶
func (x *UpdateRequest) GetAvailableBalance() float64
func (*UpdateRequest) GetBalanceScale ¶
func (x *UpdateRequest) GetBalanceScale() float64
func (*UpdateRequest) GetId ¶
func (x *UpdateRequest) GetId() string
func (*UpdateRequest) GetOnHoldBalance ¶
func (x *UpdateRequest) GetOnHoldBalance() float64
func (*UpdateRequest) ProtoMessage ¶
func (*UpdateRequest) ProtoMessage()
func (*UpdateRequest) ProtoReflect ¶
func (x *UpdateRequest) ProtoReflect() protoreflect.Message
func (*UpdateRequest) Reset ¶
func (x *UpdateRequest) Reset()
func (*UpdateRequest) String ¶
func (x *UpdateRequest) String() string