Documentation ¶
Overview ¶
Package daemon implements the Encore daemon gRPC server.
Index ¶
- type Server
- func (s *Server) Check(req *daemonpb.CheckRequest, stream daemonpb.Daemon_CheckServer) error
- func (s *Server) DBConnect(ctx context.Context, req *daemonpb.DBConnectRequest) (*daemonpb.DBConnectResponse, error)
- func (s *Server) DBProxy(params *daemonpb.DBProxyRequest, stream daemonpb.Daemon_DBProxyServer) (err error)
- func (s *Server) DBReset(req *daemonpb.DBResetRequest, stream daemonpb.Daemon_DBResetServer) error
- func (s *Server) Export(req *daemonpb.ExportRequest, stream daemonpb.Daemon_ExportServer) error
- func (s *Server) GenClient(ctx context.Context, params *daemonpb.GenClientRequest) (*daemonpb.GenClientResponse, error)
- func (s *Server) OnReload(r *run.Run)
- func (s *Server) OnStart(r *run.Run)
- func (s *Server) OnStderr(r *run.Run, line []byte)
- func (s *Server) OnStdout(r *run.Run, line []byte)
- func (s *Server) OnStop(r *run.Run)
- func (s *Server) Run(req *daemonpb.RunRequest, stream daemonpb.Daemon_RunServer) error
- func (s *Server) SetSecret(ctx context.Context, req *daemonpb.SetSecretRequest) (*daemonpb.SetSecretResponse, error)
- func (s *Server) Test(req *daemonpb.TestRequest, stream daemonpb.Daemon_TestServer) error
- func (s *Server) Version(context.Context, *empty.Empty) (*daemonpb.VersionResponse, error)
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 (*Server) Check ¶
func (s *Server) Check(req *daemonpb.CheckRequest, stream daemonpb.Daemon_CheckServer) error
Check checks the app for compilation errors.
func (*Server) DBConnect ¶
func (s *Server) DBConnect(ctx context.Context, req *daemonpb.DBConnectRequest) (*daemonpb.DBConnectResponse, error)
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 ¶
func (s *Server) DBReset(req *daemonpb.DBResetRequest, stream daemonpb.Daemon_DBResetServer) error
DBReset resets the given databases, recreating them from scratch.
func (*Server) Export ¶ added in v1.2.0
func (s *Server) Export(req *daemonpb.ExportRequest, stream daemonpb.Daemon_ExportServer) error
Export exports the app.
func (*Server) GenClient ¶
func (s *Server) GenClient(ctx context.Context, params *daemonpb.GenClientRequest) (*daemonpb.GenClientResponse, error)
GenClient generates a client based on the app's API.
func (*Server) Run ¶
func (s *Server) Run(req *daemonpb.RunRequest, stream daemonpb.Daemon_RunServer) error
Run runs the application.
func (*Server) SetSecret ¶
func (s *Server) SetSecret(ctx context.Context, req *daemonpb.SetSecretRequest) (*daemonpb.SetSecretResponse, error)
SetSecret sets a secret key on the encore.dev platform.
func (*Server) Test ¶
func (s *Server) Test(req *daemonpb.TestRequest, stream daemonpb.Daemon_TestServer) error
Test runs tests.
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. |
Click to show internal directories.
Click to hide internal directories.