container

package
v0.0.0-...-9c53441 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2024 License: MIT Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Crypto

func Crypto(c Container) crypto.Crypto

func Logger

func Logger(c Container) *logger.Logger

func New

func New(app *application.Application) *implContainer

func Value

func Value[T any](c Container, name string) T

Types

type Component

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

func NewComponent

func NewComponent(name string, c Container) *Component

func (*Component) Build

func (cpt *Component) Build() error

func (*Component) C

func (cpt *Component) C() Container

func (*Component) Close

func (cpt *Component) Close() error

func (*Component) Name

func (cpt *Component) Name() string

func (*Component) SetValue

func (cpt *Component) SetValue(value any)

func (*Component) Start

func (cpt *Component) Start() error

func (*Component) Stop

func (cpt *Component) Stop() error

func (*Component) Value

func (cpt *Component) Value() any

type Container

type Container interface {
	App() *application.Application
	ComponentValue(name string) (any, error)
}

Jump to

Keyboard shortcuts

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