daemon

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2022 License: MPL-2.0 Imports: 51 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) *Server

New creates a new Server.

func (*Server) Check

Check checks the app for compilation errors.

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) 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) 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) SetSecret

SetSecret sets a secret key on the encore.dev platform.

func (*Server) Test

Test 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.
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.
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