app

package
v0.0.0-...-0f7ec88 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: BSD-3-Clause Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(options ...Option) interfaces.App

Types

type App

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

func (*App) CleanupJob

func (a *App) CleanupJob(ctx workflow.Context) error

func (*App) Client

func (a *App) Client() bot.Client

func (*App) CommandMention

func (a *App) CommandMention(c string) string

func (*App) Config

func (a *App) Config() *env.Config

func (*App) EventHandler

func (a *App) EventHandler() interfaces.JobHandler

func (*App) Footer

func (a *App) Footer() *discord.EmbedFooter

func (*App) Github

func (a *App) Github() *repo.GithubClient

func (*App) Handler

func (a *App) Handler() *handler.Mux

func (*App) OnReady

func (a *App) OnReady(_ *events.Ready)

func (*App) SendDMJob

func (app *App) SendDMJob(params map[string]interface{}) error

func (*App) Shutdown

func (a *App) Shutdown() error

func (*App) Start

func (a *App) Start()

func (*App) Temporal

func (a *App) Temporal() client.Client

func (*App) Worker

func (a *App) Worker() worker.Worker

type Option

type Option func(a *App)

func WithConfig

func WithConfig(config *env.Config) Option

func WithTemporal

func WithTemporal(temporal client.Client, w worker.Worker) Option

func WithWeb

func WithWeb() Option

Jump to

Keyboard shortcuts

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