app_with_pools

package
v0.0.0-...-8122643 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextSelfPool

func ContextSelfPool(ctx Context) string

Types

type AppConfig

type AppConfig struct {
	app_default.AppConfig
	PoolControllerBuilder func(app app_context.Context) pool.PoolController
}

type AppConfigI

type AppConfigI interface {
	app_default.AppConfigI
	GetPoolControllerBuilder() func(app app_context.Context) pool.PoolController
}

type AppWithPools

type AppWithPools interface {
	app_context.Context
	Pools() pool.PoolStore
}

type AppWithPoolsBase

type AppWithPoolsBase struct {
	*app_default.Context
	// contains filtered or unexported fields
}

func New

func New(buildConfig *app_context.BuildConfig, appConfig ...AppConfigI) *AppWithPoolsBase

func (*AppWithPoolsBase) Init

func (a *AppWithPoolsBase) Init(configFile string, configType ...string) (op_context.Context, error)

func (*AppWithPoolsBase) InitWithArgs

func (a *AppWithPoolsBase) InitWithArgs(configFile string, args []string, configType ...string) (op_context.Context, error)

func (*AppWithPoolsBase) Pools

func (a *AppWithPoolsBase) Pools() pool.PoolStore

type Context

type Context interface {
	op_context.Context
	Pool() pool.Pool
	SetPool(pool pool.Pool)
}

type ContextBase

type ContextBase struct {
	op_context.Context
	// contains filtered or unexported fields
}

func NewInitOpContext

func NewInitOpContext(app app_context.Context, log logger.Logger, db db.DB) *ContextBase

func NewOpContext

func NewOpContext(fromCtx ...op_context.Context) *ContextBase

func (*ContextBase) Construct

func (c *ContextBase) Construct(baseCtx ...op_context.Context)

func (*ContextBase) Pool

func (c *ContextBase) Pool() pool.Pool

func (*ContextBase) SetPool

func (c *ContextBase) SetPool(pool pool.Pool)

Jump to

Keyboard shortcuts

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