system

package
v0.1.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: Apache-2.0, MIT Imports: 14 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// file descriptor for first pre-openned file descriptor.
	PREOPENED_FD = 3
)

Variables

This section is empty.

Functions

func Bootstrap

func Bootstrap[T ~capnp.ClientKind](ctx context.Context) T

Types

type Dialer

type Dialer interface {
	DialRPC(context.Context, local.Host) (*rpc.Conn, error)
}

type FDSockDialer

type FDSockDialer struct{}

FDSockDialer binds to a pre-opened file descriptor (usually a TCP socket), and provides an *rcp.Conn to the host.

func (FDSockDialer) DialRPC

func (s FDSockDialer) DialRPC(context.Context) (*rpc.Conn, error)

type Self

type Self struct {
	Args []string
	Caps []capnp.Client
	CID  cid.Cid
	PID  uint32
}

func Init

func Init(ctx context.Context) (Self, error)

Jump to

Keyboard shortcuts

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