Versions in this module Expand all Collapse all v1 v1.0.0 Aug 18, 2021 Changes in this version + type CreateOption func(o *CreateOptions) + func WithCommand(args ...string) CreateOption + func WithEnv(env []string) CreateOption + func WithOutput(out io.Writer) CreateOption + type CreateOptions struct + Command []string + Env []string + Output io.Writer + 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 Notifier interface + Close func() error + Notify func() (<-chan Event, error) + type Option func(o *Options) + func WithNotifier(n Notifier) Option + func WithType(t string) Option + type Options struct + Notifier Notifier + 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 + Update func(*Service) error + var DefaultName = "go.micro.runtime" + var DefaultRuntime Runtime = NewRuntime() + func NewRuntime(opts ...Option) Runtime + type Service struct + Metadata map[string]string + Name string + Source string + Version string