infra

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 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