core

package
v0.1.22 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchPreflightNetwork added in v0.1.3

func FetchPreflightNetwork(ctx context.Context, request PreflightRequest) (protocol.Network, error)

func Preflight added in v0.1.3

func Preflight(ctx context.Context, config bridgeconfig.Config) error

func ValidateNetworkCompatibility added in v0.1.3

func ValidateNetworkCompatibility(config bridgeconfig.Config, network protocol.Network) error

Types

type CompatibilityError added in v0.1.3

type CompatibilityError struct {
	BaseURL  string
	Network  protocol.Network
	Expected string
	Issues   []string
}

func (*CompatibilityError) Error added in v0.1.3

func (e *CompatibilityError) Error() string

type PreflightCacheKey added in v0.1.3

type PreflightCacheKey struct {
	ClockIdentity    string
	BaseURL          string
	NetworkID        string
	TokenFingerprint string
}

type PreflightFunc added in v0.1.3

type PreflightFunc func(ctx context.Context, config bridgeconfig.Config) error

type PreflightRequest added in v0.1.3

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

func NewPreflightRequest added in v0.1.3

func NewPreflightRequest(config bridgeconfig.Config) (PreflightRequest, error)

func (PreflightRequest) CacheKey added in v0.1.3

func (r PreflightRequest) CacheKey() PreflightCacheKey

type Runner

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

func New

func New(config bridgeconfig.Config) (*Runner, error)

func NewWithPreflight added in v0.1.3

func NewWithPreflight(config bridgeconfig.Config, preflight PreflightFunc) (*Runner, error)

func (*Runner) Run

func (r *Runner) Run(ctx context.Context) error

type RuntimeAdapter

type RuntimeAdapter interface {
	Name() string
	Run(ctx context.Context, config bridgeconfig.Config) error
}

Jump to

Keyboard shortcuts

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