Documentation ¶
Index ¶
- Variables
- func RegisterCurrenciesServer(s grpc.ServiceRegistrar, srv CurrenciesServer)
- type BankName
- type BankNames
- type CurrenciesClient
- type CurrenciesServer
- type CurrencyCode
- type CurrencyCodes
- type FullCurrencies
- type FullCurrency
- func (*FullCurrency) Descriptor() ([]byte, []int)deprecated
- func (x *FullCurrency) GetBankName() *BankName
- func (x *FullCurrency) GetCurrencyCode() *CurrencyCode
- func (*FullCurrency) ProtoMessage()
- func (x *FullCurrency) ProtoReflect() protoreflect.Message
- func (x *FullCurrency) Reset()
- func (x *FullCurrency) String() string
- type UnimplementedCurrenciesServer
- func (UnimplementedCurrenciesServer) GetAvailableBankByCurrency(context.Context, *CurrencyCode) (*BankNames, error)
- func (UnimplementedCurrenciesServer) GetAvailableCurrencies(context.Context, *emptypb.Empty) (*CurrencyCodes, error)
- func (UnimplementedCurrenciesServer) GetMyCurrencies(context.Context, *emptypb.Empty) (*FullCurrencies, error)
- func (UnimplementedCurrenciesServer) SetCurrency(context.Context, *FullCurrency) (*emptypb.Empty, error)
- type UnsafeCurrenciesServer
Constants ¶
This section is empty.
Variables ¶
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, }, }, 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 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 *emptypb.Empty, 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 *emptypb.Empty, opts ...grpc.CallOption) (*FullCurrencies, 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, *emptypb.Empty) (*CurrencyCodes, error) GetAvailableBankByCurrency(context.Context, *CurrencyCode) (*BankNames, error) SetCurrency(context.Context, *FullCurrency) (*emptypb.Empty, error) GetMyCurrencies(context.Context, *emptypb.Empty) (*FullCurrencies, 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,1,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,1,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 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 { CurrencyCode *CurrencyCode `protobuf:"bytes,1,opt,name=currencyCode,proto3" json:"currencyCode,omitempty"` BankName *BankName `protobuf:"bytes,2,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) 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) GetAvailableBankByCurrency ¶
func (UnimplementedCurrenciesServer) GetAvailableBankByCurrency(context.Context, *CurrencyCode) (*BankNames, error)
func (UnimplementedCurrenciesServer) GetAvailableCurrencies ¶
func (UnimplementedCurrenciesServer) GetAvailableCurrencies(context.Context, *emptypb.Empty) (*CurrencyCodes, error)
func (UnimplementedCurrenciesServer) GetMyCurrencies ¶
func (UnimplementedCurrenciesServer) GetMyCurrencies(context.Context, *emptypb.Empty) (*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.