daemon

package
v1.48.7-circular Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2025 License: MPL-2.0 Imports: 65 Imported by: 0

Documentation

Overview

Package daemon implements the Encore daemon gRPC server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	daemonpb.UnimplementedDaemonServer
	// contains filtered or unexported fields
}

Server implements daemonpb.DaemonServer.

func New

func New(appsMgr *apps.Manager, mgr *run.Manager, cm *sqldb.ClusterManager, sm *secret.Manager, ns *namespace.Manager, mcp *mcp.Manager) *Server

New creates a new Server.

func (*Server) Check

Check checks the app for compilation errors.

func (*Server) CreateApp

CreateApp adds tracking for a new app

func (*Server) CreateNamespace

func (s *Server) CreateNamespace(ctx context.Context, req *daemonpb.CreateNamespaceRequest) (*daemonpb.Namespace, error)

func (*Server) DBConnect

DBConnect starts the database and returns the DSN for connecting to it.

func (*Server) DBProxy

func (s *Server) DBProxy(params *daemonpb.DBProxyRequest, stream daemonpb.Daemon_DBProxyServer) (err error)

DBProxy starts a local database proxy for connecting to remote databases on the encore.dev platform.

func (*Server) DBReset

DBReset resets the given databases, recreating them from scratch.

func (*Server) DeleteNamespace

func (s *Server) DeleteNamespace(ctx context.Context, req *daemonpb.DeleteNamespaceRequest) (*empty.Empty, error)

func (*Server) DumpMeta

func (*Server) ExecScript

ExecScript executes a one-off script.

func (*Server) Export

Export exports the app.

func (*Server) GenClient

GenClient generates a client based on the app's API.

func (*Server) GenWrappers

GenWrappers generates Encore wrappers.

func (*Server) OnCompileStart

func (s *Server) OnCompileStart(r *run.Run)

func (*Server) OnError

func (s *Server) OnError(r *run.Run, err *errlist.List)

func (*Server) OnReload

func (s *Server) OnReload(r *run.Run)

OnReload implements run.EventListener.

func (*Server) OnStart

func (s *Server) OnStart(r *run.Run)

OnStart implements run.EventListener.

func (*Server) OnStderr

func (s *Server) OnStderr(r *run.Run, line []byte)

OnStderr implements run.EventListener.

func (*Server) OnStdout

func (s *Server) OnStdout(r *run.Run, line []byte)

OnStdout implements run.EventListener.

func (*Server) OnStop

func (s *Server) OnStop(r *run.Run)

OnStop implements run.EventListener.

func (*Server) Run

Run runs the application.

func (*Server) SwitchNamespace

func (s *Server) SwitchNamespace(ctx context.Context, req *daemonpb.SwitchNamespaceRequest) (*daemonpb.Namespace, error)

func (*Server) Telemetry

func (s *Server) Telemetry(ctx context.Context, req *daemonpb.TelemetryConfig) (*emptypb.Empty, error)

func (*Server) Test

Test runs tests.

func (*Server) TestSpec

func (s *Server) TestSpec(ctx context.Context, req *daemonpb.TestSpecRequest) (resp *daemonpb.TestSpecResponse, err error)

TestSpec runs tests.

func (*Server) Version

Version reports the daemon version.

Directories

Path Synopsis
Package dash serves the Encore Developer Dashboard.
Package dash serves the Encore Developer Dashboard.
ai
dashproxy
Package dashproxy proxies requests to the dash server, caching them locally for offline access.
Package dashproxy proxies requests to the dash server, caching them locally for offline access.
internal
sym
Package sym parses symbol tables from Go binaries.
Package sym parses symbol tables from Go binaries.
run
Package run starts and tracks running Encore applications.
Package run starts and tracks running Encore applications.
Package secret fetches and caches development secrets for Encore apps.
Package secret fetches and caches development secrets for Encore apps.
external
Package external implements a cluster driver for an external cluster.
Package external implements a cluster driver for an external cluster.

Jump to

Keyboard shortcuts

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