Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("app not found")
Functions ¶
This section is empty.
Types ¶
type Instance ¶
type Instance struct {
// contains filtered or unexported fields
}
Instance describes an app instance known by the Encore daemon.
func NewInstance ¶
func (*Instance) LocalID ¶
LocalID reports a local, random id unique for this app, as persisted in the .encore/manifest.json file. It always returns a non-empty string.
func (*Instance) PlatformID ¶
PlatformID reports the Encore Platform's ID for this app. If the app is not linked it reports the empty string.
func (*Instance) PlatformOrLocalID ¶
PlatformOrLocalID reports PlatformID() if set and otherwise LocalID().
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager keeps track of known apps and watches them for changes.
func NewManager ¶
func (*Manager) FindLatestByPlatformID ¶
FindLatestByPlatformID finds the most recently updated app instance with the given platformID. If no such app is found it reports an error matching ErrNotFound.
Click to show internal directories.
Click to hide internal directories.