currencies

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2022 License: CC0-1.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ECurrencyType_name = map[int32]string{
		0: "CRYPTO",
		1: "CLASSIC",
	}
	ECurrencyType_value = map[string]int32{
		"CRYPTO":  0,
		"CLASSIC": 1,
	}
)

Enum value maps for ECurrencyType.

View Source
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.

View Source
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)

View Source
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) Enum added in v0.0.3

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 (AdditionalErrorCode) String added in v0.0.3

func (x AdditionalErrorCode) String() string

func (AdditionalErrorCode) Type added in v0.0.3

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

Deprecated: Use BankName.ProtoReflect.Descriptor instead.

func (*BankName) GetBankName

func (x *BankName) GetBankName() string

func (*BankName) ProtoMessage

func (*BankName) ProtoMessage()

func (*BankName) ProtoReflect

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

func (*BankName) Reset

func (x *BankName) Reset()

func (*BankName) String

func (x *BankName) String() string

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

Deprecated: Use BankNames.ProtoReflect.Descriptor instead.

func (*BankNames) GetBankNames

func (x *BankNames) GetBankNames() []*BankName

func (*BankNames) ProtoMessage

func (*BankNames) ProtoMessage()

func (*BankNames) ProtoReflect

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

func (*BankNames) Reset

func (x *BankNames) Reset()

func (*BankNames) String

func (x *BankNames) String() string

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) 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 (ECurrencyType) String added in v0.0.3

func (x ECurrencyType) String() string

func (ECurrencyType) Type added in v0.0.3

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) GetAvailableBankByCurrency

func (UnimplementedCurrenciesServer) GetAvailableBankByCurrency(context.Context, *CurrencyCode) (*BankNames, error)

func (UnimplementedCurrenciesServer) GetAvailableCurrencies

func (UnimplementedCurrenciesServer) GetMyCurrencies

func (UnimplementedCurrenciesServer) SetCurrency

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL