Documentation ¶
Index ¶
- type AppKit
- func (ak *AppKit) NewCmdLine(fnInit func(*cmdline.CmdLine)) Component
- func (ak *AppKit) NewConfig(fnInit func(*config.Config)) Component
- func (ak *AppKit) NewCrypto() Component
- func (ak *AppKit) NewGuard(ctx context.Context, signals ...os.Signal) Component
- func (ak *AppKit) NewLogger() Component
- func (ak *AppKit) Run(cs ...Component) error
- type Callback
- type Component
- type Components
- type Cpt
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppKit ¶
type AppKit struct {
// contains filtered or unexported fields
}
func New ¶
func New(cs *Components) *AppKit
type Component ¶
func NewComponent ¶
type Components ¶
type Components struct {
// contains filtered or unexported fields
}
func NewComponents ¶
func NewComponents(app *application.Application) *Components
func (*Components) Application ¶
func (cs *Components) Application() *application.Application
func (*Components) Config ¶
func (cs *Components) Config() *config.Config
func (*Components) Crypto ¶
func (cs *Components) Crypto() *crypto.Crypto
func (*Components) Logger ¶
func (cs *Components) Logger() *logger.Logger
Click to show internal directories.
Click to hide internal directories.