usecase

package
v0.0.0-...-2cdf4dc Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountInputPort

type AccountInputPort interface {
	List(ctx context.Context) ([]*entity.Account, error)
	Find(ctx context.Context, id string) (*entity.Account, error)
	Store(ctx context.Context, in *AccountStoreInput) (*entity.Account, error)
	Delete(ctx context.Context, id string) (int, error)
}

func NewAccountInteractor

func NewAccountInteractor(ar entity.AccountRepository) AccountInputPort

type AccountStoreInput

type AccountStoreInput struct {
	FirstName string `json:"first_name"`
	LastName  string `json:"last_name"`
}

Jump to

Keyboard shortcuts

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