business

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Assistant

type Assistant func(next Task) Task

Assistant はビジネスロジックを補佐するアシスタントの定義です。

type Manager

type Manager interface {
	Execute(context.Context, Task) (interface{}, error)
}

Manager はビジネスロジックを管理するマネージャーのIFです。

func New

func New(assistants ...Assistant) Manager

New はアシスタントを設定したマネージャーを生成します。

type Task

type Task = func(ctx context.Context) (interface{}, error)

Task はアシスタントが担当する処理の定義です。

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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