app

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Error = errors.New("app")
)

Functions

This section is empty.

Types

type Main

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

func New

func New[S settings.Settings](s S) *Main

func (*Main) AddInfo

func (m *Main) AddInfo(paragraph string) *Main

func (*Main) AfterAlways

func (m *Main) AfterAlways(a action.WithPrevErr) *Main

func (*Main) AfterFailure

func (m *Main) AfterFailure(a action.WithPrevErr) *Main

func (*Main) AfterSuccess

func (m *Main) AfterSuccess(a action.Action) *Main

func (*Main) Before

func (m *Main) Before(a action.WithArgs) *Main

func (*Main) BeforeAlways

func (m *Main) BeforeAlways(a action.WithArgs) *Main

func (*Main) Do

func (m *Main) Do(a action.WithArgs) *Main

func (*Main) Run

func (m *Main) Run()

Run starts the Application.

func (*Main) SetOptions

func (m *Main) SetOptions(a ...options.Arg) *Main

func (*Main) Setup

func (m *Main) Setup(setup action.Action) *Main

func (*Main) Tick

func (m *Main) Tick(a action.Tick) *Main

func (*Main) Tock

func (m *Main) Tock(a action.Tock) *Main

func (*Main) WithAddon

func (m *Main) WithAddon(addon *addon.Addon) *Main

func (*Main) WithBrand

func (m *Main) WithBrand(b *branding.Builder) *Main

func (*Main) WithCommands added in v0.26.0

func (m *Main) WithCommands(cmd ...*command.Command) *Main

func (*Main) WithFlags

func (m *Main) WithFlags(ffns ...varflag.FlagCreateFunc) *Main

func (*Main) WithLogger

func (m *Main) WithLogger(logger logging.Logger) *Main

func (*Main) WithMigrations

func (m *Main) WithMigrations(mm *migration.Manager) *Main

func (*Main) WithOptions

func (m *Main) WithOptions(opts ...options.Spec) *Main

func (*Main) WithServices added in v0.26.0

func (m *Main) WithServices(svc ...*services.Service) *Main

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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