component

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2017 License: Apache-2.0 Imports: 1 Imported by: 11

README

Component

CircleCI

Go version of Component dependencies library originally made as Stuart Sierra's Component.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component interface {
	Start() Component
	Stop() Component
}

func ComponentWith

func ComponentWith(c Component, deps ...string) Component

type ComponentItem

type ComponentItem struct {
	Component
	// contains filtered or unexported fields
}

func (*ComponentItem) Start

func (this *ComponentItem) Start() Component

func (*ComponentItem) Stop

func (this *ComponentItem) Stop() Component

type SystemMap

type SystemMap map[string]Component

func (*SystemMap) Graph

func (this *SystemMap) Graph() *dependency.MapDependencyGraph

func (*SystemMap) Start

func (this *SystemMap) Start()

func (*SystemMap) Stop

func (this *SystemMap) Stop()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL