Documentation ¶
Index ¶
- Variables
- func RegisterCurrenciesServer(s grpc.ServiceRegistrar, srv CurrenciesServer)
- type AdditionalErrorCode
- func (AdditionalErrorCode) Descriptor() protoreflect.EnumDescriptor
- func (x AdditionalErrorCode) Enum() *AdditionalErrorCode
- func (AdditionalErrorCode) EnumDescriptor() ([]byte, []int)deprecated
- func (x AdditionalErrorCode) Number() protoreflect.EnumNumber
- func (x AdditionalErrorCode) String() string
- func (AdditionalErrorCode) Type() protoreflect.EnumType
- type BankName
- type BankNames
- type CurrenciesClient
- type CurrenciesServer
- type CurrencyCode
- type CurrencyCodes
- type CurrencyType
- type CurrencyTypes
- type ECurrencyType
- func (ECurrencyType) Descriptor() protoreflect.EnumDescriptor
- func (x ECurrencyType) Enum() *ECurrencyType
- func (ECurrencyType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ECurrencyType) Number() protoreflect.EnumNumber
- func (x ECurrencyType) String() string
- func (ECurrencyType) Type() protoreflect.EnumType
- type FullCurrencies
- type FullCurrency
- func (*FullCurrency) Descriptor() ([]byte, []int)deprecated
- func (x *FullCurrency) GetBankName() *BankName
- func (x *FullCurrency) GetCurrencyCode() *CurrencyCode
- func (x *FullCurrency) GetType() *CurrencyType
- func (*FullCurrency) ProtoMessage()
- func (x *FullCurrency) ProtoReflect() protoreflect.Message
- func (x *FullCurrency) Reset()
- func (x *FullCurrency) String() string
- type UnimplementedCurrenciesServer
- func (UnimplementedCurrenciesServer) DeleteCurrency(context.Context, *CurrencyCode) (*emptypb.Empty, error)
- func (UnimplementedCurrenciesServer) GetAvailableBankByCurrency(context.Context, *CurrencyCode) (*BankNames, error)
- func (UnimplementedCurrenciesServer) GetAvailableCurrencies(context.Context, *CurrencyType) (*CurrencyCodes, error)
- func (UnimplementedCurrenciesServer) GetMyCurrencies(context.Context, *CurrencyType) (*FullCurrencies, error)
- func (UnimplementedCurrenciesServer) SetCurrency(context.Context, *FullCurrency) (*emptypb.Empty, error)
- type UnsafeCurrenciesServer
Constants ¶
This section is empty.
Variables ¶
var ( ECurrencyType_name = map[int32]string{ 0: "CRYPTO", 1: "CLASSIC", } ECurrencyType_value = map[string]int32{ "CRYPTO": 0, "CLASSIC": 1, } )
Enum value maps for ECurrencyType.
var ( AdditionalErrorCode_name = map[int32]string{ 0: "OK", 100: "INVALID_CURRENCY_TYPE", 101: "INVALID_CURRENCY_CODE", 102: "INVALID_BANK_CODE", } AdditionalErrorCode_value = map[string]int32{ "OK": 0, "INVALID_CURRENCY_TYPE": 100, "INVALID_CURRENCY_CODE": 101, "INVALID_BANK_CODE": 102, } )
Enum value maps for AdditionalErrorCode.
var Currencies_ServiceDesc = grpc.ServiceDesc{ ServiceName: "binance_converter.backend_api.currencies.currencies", HandlerType: (*CurrenciesServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetAvailableCurrencies", Handler: _Currencies_GetAvailableCurrencies_Handler, }, { MethodName: "GetAvailableBankByCurrency", Handler: _Currencies_GetAvailableBankByCurrency_Handler, }, { MethodName: "SetCurrency", Handler: _Currencies_SetCurrency_Handler, }, { MethodName: "GetMyCurrencies", Handler: _Currencies_GetMyCurrencies_Handler, }, { MethodName: "DeleteCurrency", Handler: _Currencies_DeleteCurrency_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/currencies.proto", }
Currencies_ServiceDesc is the grpc.ServiceDesc for Currencies 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_currencies_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCurrenciesServer ¶
func RegisterCurrenciesServer(s grpc.ServiceRegistrar, srv CurrenciesServer)
Types ¶
type AdditionalErrorCode ¶ added in v0.0.3
type AdditionalErrorCode int32
const ( AdditionalErrorCode_OK AdditionalErrorCode = 0 AdditionalErrorCode_INVALID_CURRENCY_TYPE AdditionalErrorCode = 100 AdditionalErrorCode_INVALID_CURRENCY_CODE AdditionalErrorCode = 101 AdditionalErrorCode_INVALID_BANK_CODE AdditionalErrorCode = 102 )
func (AdditionalErrorCode) Descriptor ¶ added in v0.0.3
func (AdditionalErrorCode) Descriptor() protoreflect.EnumDescriptor
func (AdditionalErrorCode) Enum ¶ added in v0.0.3
func (x AdditionalErrorCode) Enum() *AdditionalErrorCode
func (AdditionalErrorCode) EnumDescriptor
deprecated
added in
v0.0.3
func (AdditionalErrorCode) EnumDescriptor() ([]byte, []int)
Deprecated: Use AdditionalErrorCode.Descriptor instead.
func (AdditionalErrorCode) Number ¶ added in v0.0.3
func (x AdditionalErrorCode) Number() protoreflect.EnumNumber
func (AdditionalErrorCode) String ¶ added in v0.0.3
func (x AdditionalErrorCode) String() string
func (AdditionalErrorCode) Type ¶ added in v0.0.3
func (AdditionalErrorCode) Type() protoreflect.EnumType
type BankName ¶
type BankName struct { BankName string `protobuf:"bytes,1,opt,name=bankName,proto3" json:"bankName,omitempty"` // contains filtered or unexported fields }
func (*BankName) Descriptor
deprecated
func (*BankName) GetBankName ¶
func (*BankName) ProtoMessage ¶
func (*BankName) ProtoMessage()
func (*BankName) ProtoReflect ¶
func (x *BankName) ProtoReflect() protoreflect.Message
type BankNames ¶
type BankNames struct { BankNames []*BankName `protobuf:"bytes,1,rep,name=bankNames,proto3" json:"bankNames,omitempty"` // contains filtered or unexported fields }
func (*BankNames) Descriptor
deprecated
func (*BankNames) GetBankNames ¶
func (*BankNames) ProtoMessage ¶
func (*BankNames) ProtoMessage()
func (*BankNames) ProtoReflect ¶
func (x *BankNames) ProtoReflect() protoreflect.Message
type CurrenciesClient ¶
type CurrenciesClient interface { GetAvailableCurrencies(ctx context.Context, in *CurrencyType, opts ...grpc.CallOption) (*CurrencyCodes, error) GetAvailableBankByCurrency(ctx context.Context, in *CurrencyCode, opts ...grpc.CallOption) (*BankNames, error) SetCurrency(ctx context.Context, in *FullCurrency, opts ...grpc.CallOption) (*emptypb.Empty, error) GetMyCurrencies(ctx context.Context, in *CurrencyType, opts ...grpc.CallOption) (*FullCurrencies, error) DeleteCurrency(ctx context.Context, in *CurrencyCode, opts ...grpc.CallOption) (*emptypb.Empty, error) }
CurrenciesClient is the client API for Currencies 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 NewCurrenciesClient ¶
func NewCurrenciesClient(cc grpc.ClientConnInterface) CurrenciesClient
type CurrenciesServer ¶
type CurrenciesServer interface { GetAvailableCurrencies(context.Context, *CurrencyType) (*CurrencyCodes, error) GetAvailableBankByCurrency(context.Context, *CurrencyCode) (*BankNames, error) SetCurrency(context.Context, *FullCurrency) (*emptypb.Empty, error) GetMyCurrencies(context.Context, *CurrencyType) (*FullCurrencies, error) DeleteCurrency(context.Context, *CurrencyCode) (*emptypb.Empty, error) // contains filtered or unexported methods }
CurrenciesServer is the server API for Currencies service. All implementations must embed UnimplementedCurrenciesServer for forward compatibility
type CurrencyCode ¶
type CurrencyCode struct { CurrencyCode string `protobuf:"bytes,2,opt,name=currencyCode,proto3" json:"currencyCode,omitempty"` // contains filtered or unexported fields }
func (*CurrencyCode) Descriptor
deprecated
func (*CurrencyCode) Descriptor() ([]byte, []int)
Deprecated: Use CurrencyCode.ProtoReflect.Descriptor instead.
func (*CurrencyCode) GetCurrencyCode ¶
func (x *CurrencyCode) GetCurrencyCode() string
func (*CurrencyCode) ProtoMessage ¶
func (*CurrencyCode) ProtoMessage()
func (*CurrencyCode) ProtoReflect ¶
func (x *CurrencyCode) ProtoReflect() protoreflect.Message
func (*CurrencyCode) Reset ¶
func (x *CurrencyCode) Reset()
func (*CurrencyCode) String ¶
func (x *CurrencyCode) String() string
type CurrencyCodes ¶
type CurrencyCodes struct { CurrencyCodes []*CurrencyCode `protobuf:"bytes,2,rep,name=currencyCodes,proto3" json:"currencyCodes,omitempty"` // contains filtered or unexported fields }
func (*CurrencyCodes) Descriptor
deprecated
func (*CurrencyCodes) Descriptor() ([]byte, []int)
Deprecated: Use CurrencyCodes.ProtoReflect.Descriptor instead.
func (*CurrencyCodes) GetCurrencyCodes ¶
func (x *CurrencyCodes) GetCurrencyCodes() []*CurrencyCode
func (*CurrencyCodes) ProtoMessage ¶
func (*CurrencyCodes) ProtoMessage()
func (*CurrencyCodes) ProtoReflect ¶
func (x *CurrencyCodes) ProtoReflect() protoreflect.Message
func (*CurrencyCodes) Reset ¶
func (x *CurrencyCodes) Reset()
func (*CurrencyCodes) String ¶
func (x *CurrencyCodes) String() string
type CurrencyType ¶ added in v0.0.3
type CurrencyType struct { Type ECurrencyType `protobuf:"varint,1,opt,name=type,proto3,enum=binance_converter.backend_api.currencies.ECurrencyType" json:"type,omitempty"` // contains filtered or unexported fields }
func (*CurrencyType) Descriptor
deprecated
added in
v0.0.3
func (*CurrencyType) Descriptor() ([]byte, []int)
Deprecated: Use CurrencyType.ProtoReflect.Descriptor instead.
func (*CurrencyType) GetType ¶ added in v0.0.3
func (x *CurrencyType) GetType() ECurrencyType
func (*CurrencyType) ProtoMessage ¶ added in v0.0.3
func (*CurrencyType) ProtoMessage()
func (*CurrencyType) ProtoReflect ¶ added in v0.0.3
func (x *CurrencyType) ProtoReflect() protoreflect.Message
func (*CurrencyType) Reset ¶ added in v0.0.3
func (x *CurrencyType) Reset()
func (*CurrencyType) String ¶ added in v0.0.3
func (x *CurrencyType) String() string
type CurrencyTypes ¶ added in v0.0.3
type CurrencyTypes struct { Types []*CurrencyType `protobuf:"bytes,1,rep,name=types,proto3" json:"types,omitempty"` // contains filtered or unexported fields }
func (*CurrencyTypes) Descriptor
deprecated
added in
v0.0.3
func (*CurrencyTypes) Descriptor() ([]byte, []int)
Deprecated: Use CurrencyTypes.ProtoReflect.Descriptor instead.
func (*CurrencyTypes) GetTypes ¶ added in v0.0.3
func (x *CurrencyTypes) GetTypes() []*CurrencyType
func (*CurrencyTypes) ProtoMessage ¶ added in v0.0.3
func (*CurrencyTypes) ProtoMessage()
func (*CurrencyTypes) ProtoReflect ¶ added in v0.0.3
func (x *CurrencyTypes) ProtoReflect() protoreflect.Message
func (*CurrencyTypes) Reset ¶ added in v0.0.3
func (x *CurrencyTypes) Reset()
func (*CurrencyTypes) String ¶ added in v0.0.3
func (x *CurrencyTypes) String() string
type ECurrencyType ¶ added in v0.0.3
type ECurrencyType int32
const ( ECurrencyType_CRYPTO ECurrencyType = 0 ECurrencyType_CLASSIC ECurrencyType = 1 )
func (ECurrencyType) Descriptor ¶ added in v0.0.3
func (ECurrencyType) Descriptor() protoreflect.EnumDescriptor
func (ECurrencyType) Enum ¶ added in v0.0.3
func (x ECurrencyType) Enum() *ECurrencyType
func (ECurrencyType) EnumDescriptor
deprecated
added in
v0.0.3
func (ECurrencyType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ECurrencyType.Descriptor instead.
func (ECurrencyType) Number ¶ added in v0.0.3
func (x ECurrencyType) Number() protoreflect.EnumNumber
func (ECurrencyType) String ¶ added in v0.0.3
func (x ECurrencyType) String() string
func (ECurrencyType) Type ¶ added in v0.0.3
func (ECurrencyType) Type() protoreflect.EnumType
type FullCurrencies ¶
type FullCurrencies struct { FullCurrencies []*FullCurrency `protobuf:"bytes,1,rep,name=fullCurrencies,proto3" json:"fullCurrencies,omitempty"` // contains filtered or unexported fields }
func (*FullCurrencies) Descriptor
deprecated
func (*FullCurrencies) Descriptor() ([]byte, []int)
Deprecated: Use FullCurrencies.ProtoReflect.Descriptor instead.
func (*FullCurrencies) GetFullCurrencies ¶
func (x *FullCurrencies) GetFullCurrencies() []*FullCurrency
func (*FullCurrencies) ProtoMessage ¶
func (*FullCurrencies) ProtoMessage()
func (*FullCurrencies) ProtoReflect ¶
func (x *FullCurrencies) ProtoReflect() protoreflect.Message
func (*FullCurrencies) Reset ¶
func (x *FullCurrencies) Reset()
func (*FullCurrencies) String ¶
func (x *FullCurrencies) String() string
type FullCurrency ¶
type FullCurrency struct { Type *CurrencyType `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` CurrencyCode *CurrencyCode `protobuf:"bytes,2,opt,name=currencyCode,proto3" json:"currencyCode,omitempty"` BankName *BankName `protobuf:"bytes,3,opt,name=bankName,proto3" json:"bankName,omitempty"` // contains filtered or unexported fields }
func (*FullCurrency) Descriptor
deprecated
func (*FullCurrency) Descriptor() ([]byte, []int)
Deprecated: Use FullCurrency.ProtoReflect.Descriptor instead.
func (*FullCurrency) GetBankName ¶
func (x *FullCurrency) GetBankName() *BankName
func (*FullCurrency) GetCurrencyCode ¶
func (x *FullCurrency) GetCurrencyCode() *CurrencyCode
func (*FullCurrency) GetType ¶ added in v0.0.3
func (x *FullCurrency) GetType() *CurrencyType
func (*FullCurrency) ProtoMessage ¶
func (*FullCurrency) ProtoMessage()
func (*FullCurrency) ProtoReflect ¶
func (x *FullCurrency) ProtoReflect() protoreflect.Message
func (*FullCurrency) Reset ¶
func (x *FullCurrency) Reset()
func (*FullCurrency) String ¶
func (x *FullCurrency) String() string
type UnimplementedCurrenciesServer ¶
type UnimplementedCurrenciesServer struct { }
UnimplementedCurrenciesServer must be embedded to have forward compatible implementations.
func (UnimplementedCurrenciesServer) DeleteCurrency ¶ added in v0.0.3
func (UnimplementedCurrenciesServer) DeleteCurrency(context.Context, *CurrencyCode) (*emptypb.Empty, error)
func (UnimplementedCurrenciesServer) GetAvailableBankByCurrency ¶
func (UnimplementedCurrenciesServer) GetAvailableBankByCurrency(context.Context, *CurrencyCode) (*BankNames, error)
func (UnimplementedCurrenciesServer) GetAvailableCurrencies ¶
func (UnimplementedCurrenciesServer) GetAvailableCurrencies(context.Context, *CurrencyType) (*CurrencyCodes, error)
func (UnimplementedCurrenciesServer) GetMyCurrencies ¶
func (UnimplementedCurrenciesServer) GetMyCurrencies(context.Context, *CurrencyType) (*FullCurrencies, error)
func (UnimplementedCurrenciesServer) SetCurrency ¶
func (UnimplementedCurrenciesServer) SetCurrency(context.Context, *FullCurrency) (*emptypb.Empty, error)
type UnsafeCurrenciesServer ¶
type UnsafeCurrenciesServer interface {
// contains filtered or unexported methods
}
UnsafeCurrenciesServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CurrenciesServer will result in compilation errors.