common

package
v2.0.0-beta6 Latest Latest
Warning

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

Go to latest
Published: May 14, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Success = errors.New("SUCCESS")

Functions

This section is empty.

Types

type Client

type Client interface {
	EnqueueTgCmd(ctx context.Context, message *tgbotapi.Message, updateID int)
	EnqueueTgMemberNew(ctx context.Context, member *tgbotapi.Chat, updateID int)
	EnqueueTgMemberEdit(ctx context.Context, member *tgbotapi.ChatMemberUpdated, updateID int)
	Enqueue(ctx context.Context, name string, data any, opts ...asynq.Option) error
}

type Pub

type Pub interface {
	Telegram(ctx context.Context, message any)
	Articles(ctx context.Context, articles []model.Article)
}

type RedisMaker

type RedisMaker interface {
	Make() (redis.UniversalClient, error)
	MakeRedisClient() any
}

type Sub

type Sub interface {
	All(ctx context.Context) *redis.PubSub
	Telegram(ctx context.Context) *redis.PubSub
	Articles(ctx context.Context) *redis.PubSub
}

type UnitOfWork

type UnitOfWork interface {
	Repository(tp any) (any, error)
}

Jump to

Keyboard shortcuts

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