handler

package
v0.0.0-...-93b2285 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UnknownIdHandler = `unknown`
	BalanceIdHandler = `balance`
)

Variables

This section is empty.

Functions

func NewGenerateBtcAddrHandler

func NewGenerateBtcAddrHandler(
	api *api.Api,
	generator domain2.CryptoAddressGenerator,
) *generateAddrHandler

NewGenerateBtcAddrHandler handles requests in order to return user's crypto address

func NewStartHandler

func NewStartHandler(api *api.Api) *startHandler

func NewWithdrawHandler

func NewWithdrawHandler(api *api.Api) *withdrawHandler

Types

type Text

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

Text encapsulates users' requests handler

func NewText

func NewText(
	api *api.Api,
	log *zap.SugaredLogger,
	textHandlers map[string]domain2.TextHandler,
) *Text

NewText parses text requests

func (*Text) Handle

func (h *Text) Handle(vkReq *domain.Request) error

Handle is a custom user's requests factory which creates concrete handler

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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