domain

package
v0.0.0-...-269e131 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoSuchEntity    = errors.New("no such entity")
	ErrInvalidArgument = errors.New("invalid argument")
)

Functions

This section is empty.

Types

type Foo

type Foo struct {
	ID   int64
	Name string
}

type FooRepository

type FooRepository interface {
	Get(ctx context.Context, id int64) (foo *Foo, err error)
	Put(ctx context.Context, foo *Foo) (err error)
}

type FooService

type FooService interface {
	Create(ctx context.Context, name string) (created *Foo, err error)
	Duplicate(ctx context.Context, id int64) (duplicated *Foo, err error)
}

func NewFooService

func NewFooService(fooRepository FooRepository) FooService

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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