commands

package
v0.0.0-...-826ade6 Latest Latest
Warning

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

Go to latest
Published: May 29, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository interface {
	CreateUser(
		ctx context.Context,
		tgID int64,
		firstName string,
		lastName string,
		username string,
		languageCode string) (int64, error)

	GetUser(ctx context.Context, tgID int64) (*domain.User, error)
}

type Service

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

func New

func New(ctx context.Context, sugar *zap.SugaredLogger, repository Repository) Service

func (Service) Start

func (h Service) Start(tgID int64, firstName string, lastName string, username string, languageCode string) (string, error)

Jump to

Keyboard shortcuts

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