usecase

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

App is object with usecase methods

func NewApp

func NewApp(localizer *i18n.Localizer) *App

NewApp initialize new app

func (*App) HandleMessage added in v0.0.4

func (a *App) HandleMessage(ctx context.Context, r request.Request, s sender.Sender) (err error)

HandleMessage is main message handler

func (*App) StartHandler

func (a *App) StartHandler(ctx context.Context, r request.Request, s sender.Sender) (err error)

StartHandler handles /start command

type MessageHandler

type MessageHandler func(context.Context, request.Request, sender.Sender) error

MessageHandler is handler for messages that got context, request and sender to answer the message

Jump to

Keyboard shortcuts

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