Documentation ¶
Overview ¶
Package nodecmd contains the entrypoint for webmesh nodes.
Package nodecmd contains the entrypoint for webmesh nodes.
Package nodecmd contains the entrypoint for webmesh nodes.
Index ¶
- Variables
- func DefaultDaemonSocket() string
- func Execute() error
- func GenBridgeMarkdownDoc(title string, weight int, outfile string) error
- func GenMarkdownDoc(title string, weight int, outfile string) error
- func RunAppDaemon(ctx context.Context, config *Options) error
- type AppDaemon
- func (app *AppDaemon) Connect(ctx context.Context, req *v1.ConnectRequest) (*v1.ConnectResponse, error)
- func (app *AppDaemon) Disconnect(ctx context.Context, _ *v1.DisconnectRequest) (*v1.DisconnectResponse, error)
- func (app *AppDaemon) LeaveCampfire(ctx context.Context, req *v1.LeaveCampfireRequest) (*v1.LeaveCampfireResponse, error)
- func (app *AppDaemon) Metrics(ctx context.Context, _ *v1.MetricsRequest) (*v1.MetricsResponse, error)
- func (app *AppDaemon) Query(req *v1.QueryRequest, stream v1.AppDaemon_QueryServer) error
- func (app *AppDaemon) StartCampfire(ctx context.Context, req *v1.StartCampfireRequest) (*v1.StartCampfireResponse, error)
- type Options
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotConnected is returned when the node is not connected to the mesh. ErrNotConnected = status.Errorf(codes.FailedPrecondition, "not connected") // ErrAlreadyConnected is returned when the node is already connected to the mesh. ErrAlreadyConnected = status.Errorf(codes.FailedPrecondition, "already connected") )
Functions ¶
func DefaultDaemonSocket ¶ added in v0.1.13
func DefaultDaemonSocket() string
DefaultDaemonSocket returns the default daemon socket path.
func GenBridgeMarkdownDoc ¶ added in v0.1.3
GenBridgeMarkdownDoc generates the markdown documentation for the bridge commands.
func GenMarkdownDoc ¶ added in v0.0.25
GenMarkdownDoc generates markdown documentation for the node command
Types ¶
type AppDaemon ¶ added in v0.1.13
type AppDaemon struct { v1.UnimplementedAppDaemonServer // contains filtered or unexported fields }
AppDaemon is the app daemon RPC server.
func (*AppDaemon) Connect ¶ added in v0.1.13
func (app *AppDaemon) Connect(ctx context.Context, req *v1.ConnectRequest) (*v1.ConnectResponse, error)
func (*AppDaemon) Disconnect ¶ added in v0.1.13
func (app *AppDaemon) Disconnect(ctx context.Context, _ *v1.DisconnectRequest) (*v1.DisconnectResponse, error)
func (*AppDaemon) LeaveCampfire ¶ added in v0.1.13
func (app *AppDaemon) LeaveCampfire(ctx context.Context, req *v1.LeaveCampfireRequest) (*v1.LeaveCampfireResponse, error)
func (*AppDaemon) Metrics ¶ added in v0.1.13
func (app *AppDaemon) Metrics(ctx context.Context, _ *v1.MetricsRequest) (*v1.MetricsResponse, error)
func (*AppDaemon) Query ¶ added in v0.1.13
func (app *AppDaemon) Query(req *v1.QueryRequest, stream v1.AppDaemon_QueryServer) error
func (*AppDaemon) StartCampfire ¶ added in v0.1.13
func (app *AppDaemon) StartCampfire(ctx context.Context, req *v1.StartCampfireRequest) (*v1.StartCampfireResponse, error)
type Options ¶
type Options struct { Global *global.Options `yaml:"global,omitempty" json:"global,omitempty" toml:"global,omitempty" mapstructure:"global,omitempty"` Mesh *mesh.Options `yaml:",inline" json:",inline" toml:",inline" mapstructure:",squash"` Bridge *meshbridge.Options `yaml:"bridge,omitempty" json:"bridge,omitempty" toml:"bridge,omitempty" mapstructure:"bridge,omitempty"` Services *services.Options `yaml:"services,omitempty" json:"services,omitempty" toml:"services,omitempty" mapstructure:"services,omitempty"` }
Options are the node options.
Click to show internal directories.
Click to hide internal directories.