doctor

package
v0.27.2 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ToolsFile defines the app relative path to the Go tools file.
	ToolsFile = "tools/tools.go"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Doctor

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

DONTCOVER: Doctor read and write the filesystem intensively, so it's better to rely on integration tests only. See integration/doctor package.

func New

func New(opts ...Option) *Doctor

New returns a new doctor.

func (*Doctor) FixDependencyTools

func (d *Doctor) FixDependencyTools(ctx context.Context) error

FixDependencyTools ensures that: - tools/tools.go is present and populated properly - dependency tools are installed.

func (*Doctor) MigrateConfig

func (d *Doctor) MigrateConfig(_ context.Context) error

MigrateConfig migrates the chain config if required.

type Option

type Option func(*Doctor)

func CollectEvents

func CollectEvents(ev events.Bus) Option

CollectEvents sets doctor event bus.

Jump to

Keyboard shortcuts

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