di

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2018 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppComponent

type AppComponent interface {
	// cli context
	Config() *ery.Config

	// domain
	LocalMappingRepository() domain.MappingRepository
	RemoteMappingRepository() domain.MappingRepository

	// app
	APIServer() app.Server
	DNSServer() app.Server
	ProxyServer() app.Server
	ContainerWatcher() app.Watcher
	DaemonFactory() daemon.Factory
	CommandRunner() command.Runner
}

AppComponent is an interface to provide accessors for dependencies.

func NewAppComponent

func NewAppComponent(cfg *ery.Config) AppComponent

NewAppComponent creates a new AppComponent instance.

Jump to

Keyboard shortcuts

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