daemon

package
v1.41.1 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: MPL-2.0 Imports: 60 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) *Server

New creates a new Server.

func (*Server) Check

Check checks the app for compilation errors.

func (*Server) CreateNamespace added in v1.23.0

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 added in v1.23.0

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

func (*Server) DumpMeta added in v1.31.1

func (*Server) ExecScript added in v1.11.0

ExecScript executes a one-off script.

func (*Server) Export added in v1.2.0

Export exports the app.

func (*Server) GenClient

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

func (*Server) GenWrappers added in v1.5.0

GenWrappers generates Encore wrappers.

func (*Server) ListNamespaces added in v1.23.0

func (*Server) OnCompileStart added in v1.31.0

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

func (*Server) OnError added in v1.8.0

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) SecretsRefresh added in v1.13.0

func (*Server) SwitchNamespace added in v1.23.0

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

func (*Server) Telemetry added in v1.38.0

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

func (*Server) Test

Test runs tests.

func (*Server) TestSpec added in v1.34.0

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
manifest
Package manifest reads and writes Encore app manifests.
Package manifest reads and writes Encore app manifests.
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