usecase

package
v0.0.0-...-194d0c4 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Call

func Call(
	params *port.CallParams,
	outputPort port.OutputPort,
	inputter port.Inputter,
	grpcClient entity.GRPCClient,
	builder port.DynamicBuilder,
	env entity.Environment,
) (io.Reader, error)

func Describe

func Describe(params *port.DescribeParams, outputPort port.OutputPort, env entity.Environment) (io.Reader, error)
func Header(
	params *port.HeaderParams,
	outputPort port.OutputPort,
	env entity.Environment,
) (io.Reader, error)

func Package

func Package(params *port.PackageParams, outputPort port.OutputPort, env entity.Environment) (io.Reader, error)

func Service

func Service(params *port.ServiceParams, outputPort port.OutputPort, env entity.Environment) (io.Reader, error)

func Show

func Show(params *port.ShowParams, outputPort port.OutputPort, env entity.Environment) (io.Reader, error)

Types

type Interactor

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

func NewInteractor

func NewInteractor(params *InteractorParams) *Interactor

func (*Interactor) Call

func (i *Interactor) Call(params *port.CallParams) (io.Reader, error)

func (*Interactor) Close

func (i *Interactor) Close(ctx context.Context) error

Close closes all dependencies by each Close method.

func (*Interactor) Describe

func (i *Interactor) Describe(params *port.DescribeParams) (io.Reader, error)

func (*Interactor) Header

func (i *Interactor) Header(params *port.HeaderParams) (io.Reader, error)

func (*Interactor) Package

func (i *Interactor) Package(params *port.PackageParams) (io.Reader, error)

func (*Interactor) Service

func (i *Interactor) Service(params *port.ServiceParams) (io.Reader, error)

func (*Interactor) Show

func (i *Interactor) Show(params *port.ShowParams) (io.Reader, error)

type InteractorParams

type InteractorParams struct {
	Env *entity.Env

	OutputPort     port.OutputPort
	InputterPort   port.Inputter
	DynamicBuilder port.DynamicBuilder
	GRPCClient     entity.GRPCClient
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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