service

package
v0.0.0-...-d904837 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthSignUpOpts

type AuthSignUpOpts struct {
	Deeplink string
}

type Service

type Service interface {
	User() User
}

type User

type User interface {
	// AuthViaBot authorize user via bot.
	// If user is not exist, create new user.
	AuthViaBot(ctx context.Context, user *tg.User, opts *AuthSignUpOpts) (*domain.User, error)

	// Change language of user.
	SetUserLanguage(ctx context.Context, user *domain.User, lang string) (changed bool, err error)

	// Stop mark user as stopped.
	Stop(ctx context.Context, user *domain.User) error

	// Restart mark user as active
	Restart(ctx context.Context, user *domain.User) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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