utils

package
v0.0.0-...-c32f71b Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2026 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrServerNotFound  = errors.New("server id not found in refs")
	ErrShutdownRunning = errors.New("target server is currently shutting down")
)
View Source
var (
	ServerPassword    = []byte("WiresAndChains\n")
	ServerPasswordRaw = []byte("WiresAndChains")
	DefaultVariant    = "default"
)

constant password used for servers

View Source
var ErrUnexpectedStartup = errors.New("server did not provide expected startup output")

Functions

func AwaitServerStartup

func AwaitServerStartup(
	ctx context.Context,
	logger log.Logger,
	port string,
	stdoutReader io.Reader,
) error

func HashPath

func HashPath(path []byte) string

hash path with fnv.64a hash to hex string

Types

type MountRef

type MountRef struct {
	Alias   string // alias dir
	Counter uint   // reference counter
}

tuple for reference counted mounts

Source Files

  • utils.go

Jump to

Keyboard shortcuts

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