Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildInfo ¶
type BuildInfo struct { // The version of Encore with which the app was compiled. // This is string is for informational use only, and its format should not be relied on. EncoreCompiler string // AppCommit describes the commit of the app. AppCommit CommitInfo }
type CommitInfo ¶
func (CommitInfo) AsRevisionString ¶
func (ci CommitInfo) AsRevisionString() string
type Config ¶
type Config struct { Procs []Proc `json:"procs"` // NoopGateways are the noop-gateways to start up, // keyed by gateway name. NoopGateways map[string]*noopgateway.Description }
Config is the configuration used by the supervisor.
type Proc ¶
type Proc struct { // ID is a unique id representing this process. ID string `json:"id"` // Command and arguments for running the proc. Command []string `json:"command"` // Extra environment variables to pass. Env []string `json:"env"` // supervisedProc and gateway names included in this proc. Services []string `json:"services"` Gateways []string `json:"gateways"` }
Proc represents a supervised proc.
type Supervisor ¶
type Supervisor struct {
// contains filtered or unexported fields
}
func New ¶
func New(cfg *Config, rtCfg *runtimev1.RuntimeConfig) (*Supervisor, error)
New creates a new supervisor.
Click to show internal directories.
Click to hide internal directories.