Skip to content

pilot-protocol/runtime

Repository files navigation

runtime

ci codecov License: AGPL-3.0

Runtime glue for the Pilot Protocol daemon. Wires the major subsystems together — handshake, policy, identity, events, streams — into a single Runtime value the daemon's main.go constructs and hands to the plugin register.

Install

import "github.com/pilot-protocol/runtime"

Usage

rt, err := runtime.New(runtime.Config{
    IdentityPath: "~/.pilot/identity.json",
    PolicyDir:    "~/.pilot/policy",
    // ...
})
if err != nil {
    return err
}
rt.Register(handshakeService)
rt.Register(policyService)
rt.Run(ctx)

Layout

File What it does
runtime.go Runtime struct, plugin registration, lifecycle.
identity.go Load/save Ed25519 identity from disk.
events.go In-process event bus implementation.
streams.go coreapi.Streams listener registry on top of the driver.
handshake.go Adapter that exposes the handshake plugin to the runtime.
policy.go Adapter that exposes the policy plugin to the runtime.
policy_manager.go Per-network policy-file load and reload helpers.

License

AGPL-3.0-or-later. See LICENSE.

About

Pilot Protocol runtime — glue layer that wires handshake, policy, identity, and event/stream subsystems into a daemon

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages