telegram

package
v0.0.0-...-b2f9ab3 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package telegram is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMysqlRepo

func NewMysqlRepo(dsn string) (*mysqlRepo, error)

Types

type MockRepository

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

MockRepository is a mock of Repository interface.

func NewMockRepository

func NewMockRepository(ctrl *gomock.Controller) *MockRepository

NewMockRepository creates a new mock instance.

func (*MockRepository) CreateOrUpdateTelegramUser

func (m *MockRepository) CreateOrUpdateTelegramUser(userID int64, userName string, chatID int64) (*models.TelegramUser, error)

CreateOrUpdateTelegramUser mocks base method.

func (*MockRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRepository) GetUser

func (m *MockRepository) GetUser(teleUserID int64) (*models.User, error)

GetUser mocks base method.

type MockRepositoryMockRecorder

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

MockRepositoryMockRecorder is the mock recorder for MockRepository.

func (*MockRepositoryMockRecorder) CreateOrUpdateTelegramUser

func (mr *MockRepositoryMockRecorder) CreateOrUpdateTelegramUser(userID, userName, chatID interface{}) *gomock.Call

CreateOrUpdateTelegramUser indicates an expected call of CreateOrUpdateTelegramUser.

func (*MockRepositoryMockRecorder) GetUser

func (mr *MockRepositoryMockRecorder) GetUser(teleUserID interface{}) *gomock.Call

GetUser indicates an expected call of GetUser.

type Repository

type Repository interface {
	CreateOrUpdateTelegramUser(userID int64, userName string, chatID int64) (*models.TelegramUser, error)
	GetUser(teleUserID int64) (*models.User, error)
}

Jump to

Keyboard shortcuts

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