overload

package
v1.2.12 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultAllowOpts

func DefaultAllowOpts() allowOptions

DefaultAllowOpts 返回默认选项

Types

type AllowOption

type AllowOption interface {
	Apply(*allowOptions)
}

AllowOption AllowOptions allow options.

type DoneInfo

type DoneInfo struct {
	Err error
	Op  Op
}

DoneInfo 完成信息

type Limiter

type Limiter interface {
	Allow(ctx context.Context, opts ...AllowOption) (func(info DoneInfo), error)
}

Limiter 限制接口

type Op

type Op int

Op 操作类型

const (
	Success Op = iota
	Ignore
	Drop
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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