infra

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info added in v0.0.9

type Info struct {
	// contains filtered or unexported fields
}

func NewInfo added in v0.0.9

func NewInfo() *Info

type Infra

type Infra interface {
	// close resource when app stop
	Close()

	HealthCheck() []error
}

type Infraer added in v0.0.7

type Infraer struct {
	// contains filtered or unexported fields
}

func NewInfraer added in v0.0.7

func NewInfraer(options ...Option) *Infraer

func (*Infraer) Inject added in v0.0.7

func (ir *Infraer) Inject(v *viper.Viper, injectInfos []*domain_file.InjectInfo) bool

injectToInfra inject repo to infra.go and execute wire command.

type Option added in v0.0.7

type Option func(*Infraer)

func WithIfacerExecer added in v0.0.7

func WithIfacerExecer(execer pkg.Exec) Option

func WithIfacerInfraInfo added in v0.0.7

func WithIfacerInfraInfo(infra *Info) Option

func WithIfacerLogger added in v0.0.7

func WithIfacerLogger(logger log.Logger) Option

func WithIfacerWriter added in v0.0.7

func WithIfacerWriter(writer filedir.IfaceWriter) Option

Jump to

Keyboard shortcuts

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