di

package
v0.0.0-...-f810e02 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DgraphComponent

type DgraphComponent interface {
	DgraphSchemaRepository() schema.Repository
}

DgraphComponent containes dependencies for accessing to Dgraph.

type FileComponent

type FileComponent interface {
	FileSchemaRepository() schema.Repository
}

FileComponent containes dependencies for accessing to local filesystem.

type GrpcComponent

type GrpcComponent interface {
	GetDgraphPool() repo.GrpcPool
}

GrpcComponent contains GrpcPool instances

type RootComponent

type RootComponent interface {
	SystemComponent
	DgraphComponent
	ServiceComponent
}

RootComponent contains dependencies for this app.

func New

func New(config *system.Config) RootComponent

New creates a new app.

type ServiceComponent

type ServiceComponent interface {
	ShowSchemaDiffService() service.ShowSchemaDiffService
	ApplySchemaDiffService() service.ApplySchemaDiffService
}

ServiceComponent contains service implementations.

type SystemComponent

type SystemComponent interface {
	Config() *system.Config
	UI() system.UI
}

SystemComponent provides accessors for moodules in system package.

Jump to

Keyboard shortcuts

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