Documentation
¶
Index ¶
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 logr runner. Build it with New(), configure with chained methods, then call .Start().
run.New(myApp.Run).
LogFile("./logs/api.log").
OnReady(func() { fmt.Println("ready!") }).
Start()
func New ¶
New creates a new App with the given run function as the app entrypoint. Call .Start() to launch — or chain options first.
func (*App) LogFile ¶
LogFile sets the log file path the TUI will tail in watch mode. Defaults to ./logs/app.log if not set.
func (*App) OnReady ¶
OnReady registers a callback invoked once the TUI is ready and tailing. If not set and a run function was provided, it is started automatically.
Click to show internal directories.
Click to hide internal directories.