Documentation
¶
Overview ¶
Package runa provides a CLI-first full-stack Go application framework.
Index ¶
- func AppPath(path string) runtime.Option
- func BasePath(path string) runtime.Option
- func Config(name ...string) *config.Store
- func ConfigPath(path string) runtime.Option
- func DataPath(path string) runtime.Option
- func DefaultContext() context.Context
- func Env(name string) runtime.Option
- func Execute(ctx context.Context, args []string) error
- func Freeze(ctx context.Context) error
- func Invoke[T any]() (T, error)
- func MustInvoke[T any]() T
- func New(options ...runtime.Option) *runtime.App
- func Provide[T any](constructor func(*App) (T, error))
- func ProvideValue[T any](value T)
- func PublicPath(path string) runtime.Option
- func Run(ctx context.Context) error
- func Shutdown(ctx context.Context) error
- func Timezone(name string) runtime.Option
- func Writer(out io.Writer, errOut ...io.Writer) runtime.Option
- type App
- type Map
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigPath ¶
ConfigPath sets the configuration directory relative to the base path.
func DefaultContext ¶
DefaultContext returns the framework root context.
func MustInvoke ¶
func MustInvoke[T any]() T
MustInvoke resolves a dependency from the default container or panics.
func ProvideValue ¶
func ProvideValue[T any](value T)
ProvideValue registers an eager dependency value on the default container.
func PublicPath ¶
PublicPath sets the public asset directory relative to the base path.
Types ¶
type App ¶
App is the Runa application facade type.
func Command ¶
func Command(commands ...runacommand.Command) *App
Command registers commands on the default application.
func Install ¶
func Install(providers ...runaprovider.Provider) *App
Install installs providers on the default application.
func SetDefault ¶
SetDefault sets the process-wide default application.
Directories
¶
| Path | Synopsis |
|---|---|
|
asset
module
|
|
|
audit
module
|
|
|
auth
module
|
|
|
cache
|
|
|
redis
module
|
|
|
cluster
module
|
|
|
console
module
|
|
|
crud
module
|
|
|
database
module
|
|
|
oro
module
|
|
|
redis
module
|
|
|
devtools
module
|
|
|
Package host provides Runa host primitives.
|
Package host provides Runa host primitives. |
|
id
module
|
|
|
jsonrpc
module
|
|
|
kernel
|
|
|
embedgen
module
|
|
|
lang
module
|
|
|
lock
module
|
|
|
log
module
|
|
|
message
|
|
|
redis
module
|
|
|
middleware
module
|
|
|
observe
module
|
|
|
openapi
module
|
|
|
rate
module
|
|
|
route
module
|
|
|
security
module
|
|
|
session
module
|
|
|
storage
module
|
|
|
s3
module
|
|
|
validate
module
|
|
|
view
module
|
|
|
ws
module
|
Click to show internal directories.
Click to hide internal directories.