initialisation

package
v0.23.1 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDbClient

GetDbClient either creates a DB client using the configured connection string (if present) or creates a LocalDbClient

Types

type InitData

type InitData struct {
	Workspace *workspace.Workspace
	Client    db_common.Client
	Result    *db_common.InitResult

	ShutdownTelemetry func()
	ExportManager     *export.Manager
}

func NewErrorInitData

func NewErrorInitData(err error) *InitData

func NewInitData

func NewInitData() *InitData

func (*InitData) Cleanup

func (i *InitData) Cleanup(ctx context.Context)

func (*InitData) Init

func (i *InitData) Init(ctx context.Context, invoker constants.Invoker, opts ...db_client.ClientOption)

func (*InitData) RegisterExporters

func (i *InitData) RegisterExporters(exporters ...export.Exporter) *InitData

Jump to

Keyboard shortcuts

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