service

package
v0.0.0-...-9da2653 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	// contains filtered or unexported fields
}

func NewAuth

func NewAuth(grpcConn grpc.ClientConnInterface) *Auth

func (Auth) SignUp

func (a Auth) SignUp(ctx context.Context, userData core.ServiceSignUpUser) error

type Converter

type Converter struct {
	// contains filtered or unexported fields
}

func NewConverter

func NewConverter(grpcConn grpc.ClientConnInterface) *Converter

func (*Converter) AddUserConverterWay

func (c *Converter) AddUserConverterWay(ctx context.Context, chatId int64,
	converterPair core.ConverterPair) error

func (*Converter) GetAvailableConverterWay

func (c *Converter) GetAvailableConverterWay(ctx context.Context,
	chatId int64) ([]core.ConverterPair, error)

func (*Converter) GetCurrentExchange

func (c *Converter) GetCurrentExchange(ctx context.Context, chatId int64,
	converterPair core.ConverterPair) (core.Exchange, error)

func (*Converter) GetMyConverterWay

func (c *Converter) GetMyConverterWay(ctx context.Context, chatId int64) ([]core.ConverterPair,
	error)

type Currency

type Currency struct {
	// contains filtered or unexported fields
}

func NewCurrency

func NewCurrency(grpcConn grpc.ClientConnInterface) *Currency

func (Currency) AddUserCurrency

func (c Currency) AddUserCurrency(ctx context.Context, chatId int64,
	currency core.FullCurrency) error

func (Currency) GetAvailableBanks

func (c Currency) GetAvailableBanks(ctx context.Context, chatId int64,
	currencyCode core.CurrencyCode) ([]core.CurrencyBank, error)

func (Currency) GetAvailableCurrencies

func (c Currency) GetAvailableCurrencies(ctx context.Context, chatId int64,
	currencyType core.CurrencyType) ([]core.CurrencyCode, error)

Jump to

Keyboard shortcuts

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