Documentation
¶
Index ¶
- type Runner
- func (r *Runner[RT, CT]) AddConsoleLogWriter() *Runner[RT, CT]
- func (r *Runner[RT, CT]) AddHTTPLogWriter() *Runner[RT, CT]
- func (r *Runner[RT, CT]) AddLogWriter(w io.Writer) *Runner[RT, CT]
- func (r *Runner[RT, CT]) LoadConfigFile(path string) *Runner[RT, CT]
- func (r *Runner[RT, CT]) LoadEnvConfig() *Runner[RT, CT]
- func (r *Runner[RT, CT]) Run() error
- func (r *Runner[RT, CT]) RunContext(ctx context.Context) error
- func (r *Runner[RT, CT]) SetAppName(name string) *Runner[RT, CT]
- func (r *Runner[RT, CT]) SetAppVersion(ver string) *Runner[RT, CT]
- func (r *Runner[RT, CT]) SetConfig(cfg CT) *Runner[RT, CT]
- type Runtime
- type Validatable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Runner ¶
type Runner[RT func(*Runtime[CT]) error, CT any] struct { // contains filtered or unexported fields }
func (*Runner[RT, CT]) AddConsoleLogWriter ¶
func (*Runner[RT, CT]) AddHTTPLogWriter ¶
func (*Runner[RT, CT]) AddLogWriter ¶
func (*Runner[RT, CT]) LoadConfigFile ¶
func (*Runner[RT, CT]) LoadEnvConfig ¶
func (*Runner[RT, CT]) SetAppName ¶
func (*Runner[RT, CT]) SetAppVersion ¶
type Validatable ¶
type Validatable interface {
Validate() error
}
Click to show internal directories.
Click to hide internal directories.