domain

package
v0.0.0-...-81d1297 Latest Latest
Warning

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

Go to latest
Published: May 22, 2019 License: GPL-3.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 FiboRepository

type FiboRepository interface {
	Index(ctx context.Context, num int) ([]int, error)
}

FiboRepository represent the fibo's repository contract

type FiboUsecase

type FiboUsecase interface {
	Index(ctx context.Context, num int) ([]int, error)
}

FiboUsecase represent the fibo's usecases

type Num

type Num struct {
	Num1 int `json:"num1"`
	Num2 int `json:"num2"`
}

Num SumMap represent Sum's data model

func (*Num) FieldMap

func (o *Num) FieldMap(req *http.Request) binding.FieldMap

FieldMap binds HTTP request

func (*Num) Validate

func (o *Num) Validate(req *http.Request, errs binding.Errors) error

Validate perform data validation ...

type SumRepository

type SumRepository interface {
	Index(num Num) (int, error)
}

SumRepository represent the sum's repository contract

type SumUsecase

type SumUsecase interface {
	Index(um Num) (int, error)
}

SumUsecase represent the sum's usecases

Jump to

Keyboard shortcuts

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