domain

package
v0.0.0-...-acc2fd2 Latest Latest
Warning

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

Go to latest
Published: May 21, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NotifyArbitrageRequest

type NotifyArbitrageRequest struct {
	ExchangeBuy  constant.Exchange
	ExchangeSell constant.Exchange
	ToChatID     int64
}

type ReplyCommandRequest

type ReplyCommandRequest struct {
	FromChatIDs []int64
}

func (*ReplyCommandRequest) InFromChatIDs

func (r *ReplyCommandRequest) InFromChatIDs(chatID int64) bool

func (*ReplyCommandRequest) IsEmpty

func (r *ReplyCommandRequest) IsEmpty() bool

type TelegramUseCase

type TelegramUseCase interface {
	ReplyCommand(ctx context.Context, req ReplyCommandRequest) error
	NotifyArbitrage(ctx context.Context, req NotifyArbitrageRequest) error
}

Jump to

Keyboard shortcuts

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