cmd

package
v0.0.0-...-95d8435 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute() (err error)

func NewBot

func NewBot(lc fx.Lifecycle, cfg *config.Config, userService *service.UserService, ruleService *service.RuleService) (bots.Bot, error)

func NewDB

func NewDB(lc fx.Lifecycle, cfg *config.Config) (*gorm.DB, error)

func NewEngine

func NewEngine(lc fx.Lifecycle, ruleService *service.RuleService) (*rule.Engine, error)

func NewHandler

func NewHandler(lc fx.Lifecycle, bot bots.Bot, db *gorm.DB, eng *rule.Engine) *handlers.SubHandler

func NewPRCClient

func NewPRCClient(lc fx.Lifecycle, cfg *config.Config, hd *handlers.SubHandler) (*client.Client, error)

func NewProcessor

func NewProcessor(lc fx.Lifecycle, cfg *config.Config, rpcClient *client.Client, hd *handlers.SubHandler) (*processors.Processor, error)

func NewRuleService

func NewRuleService(db *gorm.DB) *service.RuleService

func NewUserService

func NewUserService(db *gorm.DB) *service.UserService

Types

This section is empty.

Jump to

Keyboard shortcuts

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