Documentation
¶
Index ¶
- type AuthHandler
- type AuthService
- type ConverterHandler
- func (c ConverterHandler) GetAvailableConverterPairs(ctx context.Context, empty *emptypb.Empty) (*converter.ConverterPairs, error)
- func (c ConverterHandler) GetCurrentExchange(ctx context.Context, pair *converter.ConverterPair) (*converter.Exchange, error)
- func (c ConverterHandler) GetMyConvertPairs(ctx context.Context, empty *emptypb.Empty) (*converter.ConverterPairs, error)
- func (c ConverterHandler) GetMyThresholdConvertPairs(ctx context.Context, empty *emptypb.Empty) (*converter.ThresholdConvertPairs, error)
- func (c ConverterHandler) SetConvertPair(ctx context.Context, pair *converter.ConverterPair) (*emptypb.Empty, error)
- func (c ConverterHandler) SetThresholdConvertPairs(ctx context.Context, pair *converter.ThresholdConvertPair) (*emptypb.Empty, error)
- type ConverterService
- type CurrenciesHandler
- func (c *CurrenciesHandler) DeleteCurrency(ctx context.Context, currency *currencies.CurrencyCode) (*emptypb.Empty, error)
- func (c *CurrenciesHandler) GetAvailableBankByCurrency(ctx context.Context, code *currencies.CurrencyCode) (*currencies.BankNames, error)
- func (c *CurrenciesHandler) GetAvailableCurrencies(ctx context.Context, currencyType *currencies.CurrencyType) (*currencies.CurrencyCodes, error)
- func (c *CurrenciesHandler) GetMyCurrencies(ctx context.Context, currencyType *currencies.CurrencyType) (*currencies.FullCurrencies, error)
- func (c *CurrenciesHandler) SetCurrency(ctx context.Context, currency *currencies.FullCurrency) (*emptypb.Empty, error)
- type ExchangePlotHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthHandler ¶
type AuthHandler struct {
auth.UnimplementedAuthServer
// contains filtered or unexported fields
}
func NewAuthHandler ¶
func NewAuthHandler(service AuthService) *AuthHandler
func (*AuthHandler) SignUpUserByTelegram ¶
func (a *AuthHandler) SignUpUserByTelegram(ctx context.Context, request *auth.SignUpUserByTelegramRequest) (*emptypb.Empty, error)
type AuthService ¶
type AuthService interface {
SignUpUserByTelegram(ctx context.Context, data core.ServiceSignUpUserByTelegramData) error
}
type ConverterHandler ¶
type ConverterHandler struct {
converter.UnimplementedConverterServer
// contains filtered or unexported fields
}
func NewConverterHandler ¶
func NewConverterHandler(service ConverterService) *ConverterHandler
func (ConverterHandler) GetAvailableConverterPairs ¶
func (c ConverterHandler) GetAvailableConverterPairs(ctx context.Context, empty *emptypb.Empty) (*converter.ConverterPairs, error)
func (ConverterHandler) GetCurrentExchange ¶
func (c ConverterHandler) GetCurrentExchange(ctx context.Context, pair *converter.ConverterPair) (*converter.Exchange, error)
func (ConverterHandler) GetMyConvertPairs ¶
func (c ConverterHandler) GetMyConvertPairs(ctx context.Context, empty *emptypb.Empty) (*converter.ConverterPairs, error)
func (ConverterHandler) GetMyThresholdConvertPairs ¶
func (c ConverterHandler) GetMyThresholdConvertPairs(ctx context.Context, empty *emptypb.Empty) (*converter.ThresholdConvertPairs, error)
func (ConverterHandler) SetConvertPair ¶
func (c ConverterHandler) SetConvertPair(ctx context.Context, pair *converter.ConverterPair) (*emptypb.Empty, error)
func (ConverterHandler) SetThresholdConvertPairs ¶
func (c ConverterHandler) SetThresholdConvertPairs(ctx context.Context, pair *converter.ThresholdConvertPair) (*emptypb.Empty, error)
type ConverterService ¶
type ConverterService interface {
GetAvailableConverterPairs(ctx context.Context) ([]core.ConverterPair, error)
SetConvertPair(ctx context.Context, converterPair core.ConverterPair) error
GetMyConvertPairs(ctx context.Context) ([]core.ConverterPair, error)
SetThresholdConvertPair(ctx context.Context, threshold core.ThresholdConvertPair) error
GetMyThresholdsConvertPairs(ctx context.Context) ([]core.ThresholdConvertPair, error)
GetCurrentExchange(ctx context.Context, converterPair core.ConverterPair) (core.Exchange, error)
}
type CurrenciesHandler ¶
type CurrenciesHandler struct {
currencies.UnimplementedCurrenciesServer
// contains filtered or unexported fields
}
func NewCurrenciesHandler ¶
func NewCurrenciesHandler(service currenciesService) *CurrenciesHandler
func (*CurrenciesHandler) DeleteCurrency ¶
func (c *CurrenciesHandler) DeleteCurrency(ctx context.Context, currency *currencies.CurrencyCode) (*emptypb.Empty, error)
func (*CurrenciesHandler) GetAvailableBankByCurrency ¶
func (c *CurrenciesHandler) GetAvailableBankByCurrency(ctx context.Context, code *currencies.CurrencyCode) (*currencies.BankNames, error)
func (*CurrenciesHandler) GetAvailableCurrencies ¶
func (c *CurrenciesHandler) GetAvailableCurrencies(ctx context.Context, currencyType *currencies.CurrencyType) (*currencies.CurrencyCodes, error)
func (*CurrenciesHandler) GetMyCurrencies ¶
func (c *CurrenciesHandler) GetMyCurrencies(ctx context.Context, currencyType *currencies.CurrencyType) (*currencies.FullCurrencies, error)
func (*CurrenciesHandler) SetCurrency ¶
func (c *CurrenciesHandler) SetCurrency(ctx context.Context, currency *currencies.FullCurrency) (*emptypb.Empty, error)
type ExchangePlotHandler ¶
type ExchangePlotHandler struct {
exchange_plot.UnimplementedExchangePlotServer
// contains filtered or unexported fields
}
func NewExchangePlotHandler ¶
func NewExchangePlotHandler(service exchangePlotService) *ExchangePlotHandler
func (*ExchangePlotHandler) GetExchangePlot ¶
func (e *ExchangePlotHandler) GetExchangePlot(ctx context.Context, params *exchange_plot.PlotParams) (*exchange_plot.Plot, error)
Click to show internal directories.
Click to hide internal directories.