Documentation ¶
Index ¶
- type App
- type Option
- func WithContext(ctx context.Context) Option
- func WithDB(d *db.DB) Option
- func WithEnv(env actx.Environment) Option
- func WithFDs(stdin io.Reader, stdout, stderr io.Writer) Option
- func WithFS(fs vfs.FileSystem) Option
- func WithLogger(isStdoutTTY, isStderrTTY bool) Option
- func WithStore(store store.Store) Option
- func WithUser(user *models.User) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App is the application.
type Option ¶
type Option func(*App)
Option is a function that allows configuring the application.
func WithEnv ¶
func WithEnv(env actx.Environment) Option
WithEnv sets the process environment used by the application.
func WithFS ¶
func WithFS(fs vfs.FileSystem) Option
WithFS sets the filesystem used by the application.
func WithLogger ¶
WithLogger initializes the logger used by the application.
Click to show internal directories.
Click to hide internal directories.