apps

package
v1.6.8 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	AppName        string
	Deps           []string
	Routing        func(django.Mux)
	Cmd            []command.Command
	Init           func(settings django.Settings) error
	Ready          func() error
	CtxProcessors  []func(ctx.ContextWithRequest)
	TemplateConfig *tpl.Config
	// contains filtered or unexported fields
}

func NewAppConfig

func NewAppConfig(name string) *AppConfig

func (*AppConfig) AddCommand

func (a *AppConfig) AddCommand(c ...command.Command)

func (*AppConfig) BuildRouting

func (a *AppConfig) BuildRouting(m django.Mux)

func (*AppConfig) Commands

func (a *AppConfig) Commands() []command.Command

func (*AppConfig) Dependencies

func (a *AppConfig) Dependencies() []string

func (*AppConfig) Initialize

func (a *AppConfig) Initialize(settings django.Settings) error

func (*AppConfig) IsReady

func (a *AppConfig) IsReady() bool

func (*AppConfig) Name

func (a *AppConfig) Name() string

func (*AppConfig) OnReady

func (a *AppConfig) OnReady() error

func (*AppConfig) Processors

func (a *AppConfig) Processors() []func(ctx.ContextWithRequest)

func (*AppConfig) Templates

func (a *AppConfig) Templates() *tpl.Config

type DBRequiredAppConfig

type DBRequiredAppConfig struct {
	*AppConfig
	DB   *sql.DB
	Init func(settings django.Settings, db *sql.DB) error
}

func NewDBAppConfig

func NewDBAppConfig(name string) *DBRequiredAppConfig

func (*DBRequiredAppConfig) Initialize

func (a *DBRequiredAppConfig) Initialize(settings django.Settings) error

Jump to

Keyboard shortcuts

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