Versions in this module Expand all Collapse all v1 v1.0.1 May 10, 2021 v1.0.0 May 9, 2021 Changes in this version + var DefaultName = "go.micro.runtime" + var DefaultRuntime Runtime = NewRuntime() + var ErrAlreadyExists = errors.New("already exists") + type CreateOption func(o *CreateOptions) + func CreateImage(img string) CreateOption + func CreateType(t string) CreateOption + func WithArgs(args ...string) CreateOption + func WithCommand(cmd ...string) CreateOption + func WithEnv(env []string) CreateOption + func WithOutput(out io.Writer) CreateOption + func WithRetries(retries int) CreateOption + type CreateOptions struct + Args []string + Command []string + Env []string + Image string + Output io.Writer + Retries int + Type string + type Event struct + Service string + Timestamp time.Time + Type EventType + Version string + type EventType int + const Create + const Delete + const Update + func (t EventType) String() string + type Option func(o *Options) + func WithImage(t string) Option + func WithScheduler(n Scheduler) Option + func WithSource(src string) Option + func WithType(t string) Option + type Options struct + Image string + Scheduler Scheduler + Source string + Type string + type ReadOption func(o *ReadOptions) + func ReadService(service string) ReadOption + func ReadType(t string) ReadOption + func ReadVersion(version string) ReadOption + type ReadOptions struct + Service string + Type string + Version string + type Runtime interface + Create func(*Service, ...CreateOption) error + Delete func(*Service) error + Init func(...Option) error + List func() ([]*Service, error) + Read func(...ReadOption) ([]*Service, error) + Start func() error + Stop func() error + String func() string + Update func(*Service) error + func NewRuntime(opts ...Option) Runtime + type Scheduler interface + Close func() error + Notify func() (<-chan Event, error) + type Service struct + Metadata map[string]string + Name string + Source string + Version string Incompatible versions in this module v2.3.0+incompatible May 9, 2021