Documentation
¶
Index ¶
- type Application
- func (a *Application) BuiltAt() time.Time
- func (a *Application) ConfigFolder() string
- func (a *Application) Context() context.Context
- func (a *Application) Ecosystem() string
- func (a *Application) EcosystemLookupEnv(key string) (string, bool)
- func (a *Application) Environment() string
- func (a *Application) Exit(err error)
- func (a *Application) FullName() string
- func (a *Application) ID() uuid.UUID
- func (a *Application) LongDesc() string
- func (a *Application) LookupEnv(key string) (string, bool)
- func (a *Application) Name() string
- func (a *Application) PrintVersion()
- func (a *Application) ShortDesc() string
- func (a *Application) StartedAt() time.Time
- func (a *Application) Stop()
- func (a *Application) Version() string
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
func (*Application) BuiltAt ¶
func (a *Application) BuiltAt() time.Time
func (*Application) ConfigFolder ¶
func (a *Application) ConfigFolder() string
func (*Application) Context ¶
func (a *Application) Context() context.Context
func (*Application) Ecosystem ¶
func (a *Application) Ecosystem() string
func (*Application) EcosystemLookupEnv ¶
func (a *Application) EcosystemLookupEnv(key string) (string, bool)
func (*Application) Environment ¶
func (a *Application) Environment() string
func (*Application) Exit ¶
func (a *Application) Exit(err error)
func (*Application) FullName ¶
func (a *Application) FullName() string
func (*Application) ID ¶
func (a *Application) ID() uuid.UUID
func (*Application) LongDesc ¶
func (a *Application) LongDesc() string
func (*Application) Name ¶
func (a *Application) Name() string
func (*Application) PrintVersion ¶
func (a *Application) PrintVersion()
func (*Application) ShortDesc ¶
func (a *Application) ShortDesc() string
func (*Application) StartedAt ¶
func (a *Application) StartedAt() time.Time
func (*Application) Stop ¶
func (a *Application) Stop()
func (*Application) Version ¶
func (a *Application) Version() string
type Option ¶
type Option func(*Application) error
func WithBuiltAt ¶
func WithConfigFolder ¶
func WithEcosystem ¶
func WithLongDesc ¶
func WithShortDesc ¶
func WithVersion ¶
Click to show internal directories.
Click to hide internal directories.