# Functions
DatabasesFromSecrets finds DSNs in secrets and creates a map of databases.
No description provided by the author
FromContext returns the DynamicModuleContext attached to a context.
No description provided by the author
NewBuilder creates a new blank Builder for the given module.
No description provided by the author
NewDatabase creates a Database that can be added to ModuleContext.
NewDynamicContext creates a new DynamicModuleContext.
No description provided by the author
NewTestDatabase creates a Database that can be added to ModuleContext
Test databases can be used within module tests.
# Constants
No description provided by the author
# Structs
Database represents a database connection based on a DSN It holds a private field for the database which is accessible through moduleCtx.GetDatabase(name).
DirectBehavior indicates that the verb should be executed by calling the function directly (for testing).
DynamicModuleContext provides up-to-date ModuleContext instances supplied by the controller.
MockBehavior indicates the verb has a mock implementation.
ModuleContext holds the context needed for a module, including configs, secrets and DSNs
ModuleContext is immutable.
# Interfaces
LeaseClient is the interface for acquiring, heartbeating and releasing leases.
No description provided by the author
VerbBehavior indicates how to execute a verb.
# Type aliases
Builder is used to build a ModuleContext.
No description provided by the author
Verb is a function that takes a request and returns a response but is not constrained by request/response type like ftl.Verb
It is used for definitions of mock verbs as well as real implementations of verbs to directly execute.