usecase

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2019 License: MIT Imports: 11 Imported by: 6

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 env.Environment,
) (io.Reader, error)
func Header(
	params *port.HeaderParams,
	outputPort port.OutputPort,
	env env.Environment,
) (io.Reader, error)

func Service

func Service(params *port.ServiceParams, outputPort port.OutputPort, env env.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) 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 env.Environment

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

func (*InteractorParams) Cleanup

func (p *InteractorParams) Cleanup(ctx context.Context) error

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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