controller

package
v0.0.0-...-4f702ff Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTelegramController

func NewTelegramController(r *routing.RouteGroup, logger log.Logger, authService auth.Service, userService user.IService, tgService pkg_tg.Service) *telegramController

func RegisterDataTestHandlers

func RegisterDataTestHandlers(r *routing.RouteGroup, logger log.Logger, yaruzPlatform yarus_platform.IPlatform, user user.IService, advertiser advertiser.IService, advertisingCampaign advertising_campaign.IService, offer offer.IService)

RegisterHandlers sets up the routing of the HTTP handlers.

GET /api/models/ - список всех моделей
GET /api/model/{ID} - детали модели

func RegisterReferenceTestHandlers

func RegisterReferenceTestHandlers(r *routing.RouteGroup, logger log.Logger, yaruzPlatform yarus_platform.IPlatform)

RegisterHandlers sets up the routing of the HTTP handlers.

GET /api/models/ - список всех моделей
GET /api/model/{ID} - детали модели

func RegisterTaskHandlers

func RegisterTaskHandlers(r *routing.RouteGroup, logger log.Logger, service task.IService)

RegisterHandlers sets up the routing of the HTTP handlers.

GET /api/tasks/ - список всех моделей
GET /api/task/{ID} - детали модели

func RegisterUserHandlers

func RegisterUserHandlers(r *routing.RouteGroup, logger log.Logger, service user.IService)

RegisterHandlers sets up the routing of the HTTP handlers.

Types

type PropertyOptionsTestCases

type PropertyOptionsTestCases [][][]map[string]interface{}

type TgService

type TgService interface {
	IsAuth(ctx context.Context, sessionID string) (bool, error)
	SendCode(ctx context.Context, sessionID string, phone string) error
	SignIn(ctx context.Context, sessionID string, code string, password string) (*tg.User, error)
}

Jump to

Keyboard shortcuts

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