notify_di

package
v0.0.0-...-f6b8a13 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

FullBotService ======================================================================================================

Functions

func InitSMTP

func InitSMTP(ctx2 context.Context) *smtp.Bot

InitSMTP - Init SMTP bot

func InitSlack

func InitSlack(ctx2 context.Context) *slack.Bot

InitSlack - Init slack bot

func InitTelegram

func InitTelegram(ctx2 context.Context) *telegram.Bot

InitTelegram - Init telegram bot

func NewBotApplication

func NewBotApplication(ctx2 context.Context, logger2 logger.Logger, mq v1.MQ) (*application.Bot, error)

Types

type Service

type Service struct {
	// Common
	Log    logger.Logger
	Config *config.Config

	// Observability
	Tracer        *trace.TracerProvider
	Monitoring    *http.ServeMux
	PprofEndpoint profiling.PprofEndpoint
	AutoMaxPro    autoMaxPro.AutoMaxPro
	// contains filtered or unexported fields
}

Service - heplers

func InitializeFullBotService

func InitializeFullBotService() (*Service, func(), error)

func NewBotService

func NewBotService(

	log logger.Logger, config2 *config.Config, monitoring2 *http.ServeMux,
	tracer *trace.TracerProvider,
	pprofHTTP profiling.PprofEndpoint,
	autoMaxProcsOption autoMaxPro.AutoMaxPro, slack2 *slack.Bot, telegram2 *telegram.Bot, smtp2 *smtp.Bot,

	bot *application.Bot,
) (*Service, error)

Jump to

Keyboard shortcuts

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