ability

package
v0.0.0-...-726c1b7 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IAbility

type IAbility interface {
	// Check 参数校验
	Check(ctx context.Context) error
	// Process 数据处理
	Process(ctx context.Context) error
}

type Option

type Option struct {
	Uc  *biz.KratosDemoUserUsecase
	Log *log.Helper
}

type OptionFunc

type OptionFunc func(option *Option)

OptionFunc 可选参数处理

func WithLogHelper

func WithLogHelper(log *log.Helper) OptionFunc

WithLogHelper ...

func WithUsecase

func WithUsecase(uc *biz.KratosDemoUserUsecase) OptionFunc

WithUsecase ...

Jump to

Keyboard shortcuts

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