Documentation ¶
Index ¶
- func Arch() string
- func Args() (args []string)
- func Dir() string
- func Executable() string
- func Go(fn func())
- func GoGroup(n int, fn func())
- func LoadConf[Conf any](filename string) Conf
- func Name() string
- func OS() string
- func ParseCmdLine(version string) (confFile string, ok bool)
- func Pid() int
- func Run[UserConf any](version string, fn func(UserConf))
- func RunJust(version string, opts ulog.Options, fn func())
- func WaitInterrupt()
- type Conf
- type GoSwarm
- type Job
- func (o *Job) Cancel()
- func (o *Job) Do() bool
- func (o *Job) OnFinish(fn func()) *Job
- func (o *Job) OnInit(fn func() error) *Job
- func (o *Job) OnStart(fn func()) *Job
- func (o *Job) Run(fn func())
- func (o *Job) RunLoop(fn func())
- func (o *Job) RunTicks(fn func(), interval time.Duration)
- func (o *Job) Sleep(timeout time.Duration)
- func (o *Job) Stop()
- func (o *Job) Wait()
- func (o *Job) WithLog(log *ulog.Log) *Job
- func (o *Job) WithLogLevel(level ulog.Level) *Job
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Executable ¶
func Executable() string
func ParseCmdLine ¶
func WaitInterrupt ¶ added in v0.1.51
func WaitInterrupt()
Types ¶
type Conf ¶
type GoSwarm ¶ added in v0.2.4
type GoSwarm struct {
// contains filtered or unexported fields
}
func NewGoSwarm ¶ added in v0.2.4
func NewGoSwarm() *GoSwarm
Click to show internal directories.
Click to hide internal directories.