Documentation
¶
Index ¶
- Constants
- Variables
- type Archive
- type Batch
- type Batcher
- type Client
- type CreateOption
- type CreateOptions
- type Group
- type Option
- type Options
- type Scheduler
- func (s *Scheduler) Append(task *Task) error
- func (s *Scheduler) Create(name string, opts ...CreateOption) error
- func (s *Scheduler) Delete(name string) error
- func (s *Scheduler) Read(name string) (*Group, error)
- func (s *Scheduler) Scale(name string, n int) error
- func (s *Scheduler) Sync(env string, deps ...string) error
- type Stat
- type State
- type Task
- type Worker
Constants ¶
View Source
const ServaModuletName = "mfe"
Variables ¶
View Source
var StateText = [...]string{
"started",
"running",
"stopped",
}
Functions ¶
This section is empty.
Types ¶
type Archive ¶
type Batch ¶
type Batch struct { }
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
type CreateOption ¶
type CreateOption func(*CreateOptions)
func BatchSize ¶
func BatchSize(size int) CreateOption
func Env ¶
func Env(env string) CreateOption
func Local ¶
func Local(dir string) CreateOption
func Remote ¶
func Remote(addr string) CreateOption
type CreateOptions ¶
type Group ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.