mailing

package
v0.0.0-...-493173e Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2022 License: GPL-3.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 Service

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

func NewService

func NewService(cfg *conf.Mailing, stateGetter StateGetter, issuer SessionIssuer) *Service

func (*Service) Run

func (s *Service) Run(ctx context.Context)

type SessionIssuer

type SessionIssuer interface {
	Issue(telegramID int, update *telegram.Update) (s *usersession.Session, release func(), err error)
}

type StateGetter

type StateGetter interface {
	GetAll() ([]*tgstate.State, error)
}

Jump to

Keyboard shortcuts

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