Skip to content

Commit

Permalink
Hide *system.Module behind vat.Bootable interface.
Browse files Browse the repository at this point in the history
  • Loading branch information
lthibault committed May 25, 2024
1 parent 08ee6f3 commit ed8c3a9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions vat/vat.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,26 @@ import (
"log/slog"
"time"

"capnproto.org/go/capnp/v3"
"capnproto.org/go/capnp/v3/rpc"
"github.com/libp2p/go-libp2p/core/host"
"github.com/libp2p/go-libp2p/core/peer"
"github.com/libp2p/go-libp2p/core/protocol"
"github.com/tetratelabs/wazero/api"
"github.com/wetware/go/system"
)

const Proto = "/ww/0.0.0"

var _ rpc.Network = (*Network)(nil)

type Bootable interface {
Boot(api.Module) capnp.Client
}

type NetConfig struct {
Host host.Host
Guest api.Module
System *system.Module
System Bootable
DialTimeout time.Duration
}

Expand Down

0 comments on commit ed8c3a9

Please sign in to comment.