ctx

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppCtxInit added in v1.3.0

func AppCtxInit() (any, error)

Types

type Args

type Args struct {
	ConfigPath string
}

Args contains arguments value read from command line

func ArgsRead

func ArgsRead() (Args, error)

ArgsRead reads arguments from command line

type Ctx

type Ctx struct {
	Cache     cacheSettings
	Bot       *tgbot.Bot
	API       apiCtx
	Rdmnhndlr rdmnhndlr.RdmnHndlr
	Log       *logrus.Logger
}

Ctx defines application custom context

Jump to

Keyboard shortcuts

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