sdk

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: Apache-2.0 Imports: 42 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DryRunWiring

func DryRunWiring[S dig2.SDK](decorator func(sdk dig2.SDK) S, opts ...Opt) error

DryRunWiring instantiates an SDK and dry runs its lifecycle to detect possible problems with dependency injection, i.e. missing dependencies, duplicate provisions, cyclic dependencies

Types

type Opt

type Opt = func(*mockConfigService)

func WithBool

func WithBool(key string, value bool) Opt

func WithString

func WithString(key, value string) Opt

type SDK

type SDK struct {
	*dig2.BaseSDK
	C      *dig.Container
	Config *view.ConfigService
}

func NewSDK

func NewSDK(registry node.Registry) *SDK

func NewSDKWithContainer

func NewSDKWithContainer(c *dig.Container, registry node.Registry) *SDK

func (*SDK) ConfigService

func (p *SDK) ConfigService() driver.ConfigService

func (*SDK) Container

func (p *SDK) Container() *dig.Container

func (*SDK) Install

func (p *SDK) Install() error

func (*SDK) Start

func (p *SDK) Start(ctx context.Context) error

type ViewManager

type ViewManager interface {
	node.ViewManager
	Start(ctx context.Context)
}

Jump to

Keyboard shortcuts

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