Documentation ¶
Index ¶
- type BinaryFunction
- type BinaryKVFunction
- type BinaryKVFunction2
- type BinaryKVOperator
- type BinaryOperator
- type Comparator
- type ComparatorKV
- type Consumer
- type ConsumerKV
- type Func
- type FuncRetry
- type FuncReturnDataOrErr
- type FuncReturnErr
- type GrpcServiceMethod
- type Less
- type LessKV
- type Predicate
- type PredicateKV
- type Supplier
- type SupplierKV
- type Task
- type TaskWithErr
- type UnaryFunction
- type UnaryKVFunction
- type UnaryKVFunction2
- type UnaryKVOperator
- type UnaryOperator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BinaryFunction ¶ added in v0.1.12
type BinaryFunction[T, R, U any] func(T, R) U
BinaryFunction 将两个类型转为第三个类型
type BinaryKVFunction ¶ added in v0.1.12
type BinaryKVFunction[K, V, R, U any] func(K, V, R) U
type BinaryKVFunction2 ¶ added in v0.1.12
type BinaryKVFunction2[K, V, RK, RV, UK, UV any] func(K, V, RK, RV) (UK, UV)
type BinaryKVOperator ¶ added in v0.1.12
type BinaryKVOperator[K, V any] func(K, V, K, V) (K, V)
type BinaryOperator ¶ added in v0.1.12
type BinaryOperator[T any] func(T, T) T
BinaryOperator 输入两个相同类型的参数,对其做二元运算,返回相同类型的结果
type Comparator ¶ added in v0.1.12
Comparator 比较两个元素. 第一个元素大于第二个元素时,返回正数; 第一个元素小于第二个元素时,返回负数; 否则返回 0.
type ComparatorKV ¶ added in v0.1.12
Comparator 比较两个元素. 第一个元素大于第二个元素时,返回正数; 第一个元素小于第二个元素时,返回负数; 否则返回 0.
type FuncReturnDataOrErr ¶ added in v0.3.0
type FuncReturnErr ¶ added in v0.3.0
type FuncReturnErr func() error
type GrpcServiceMethod ¶
type TaskWithErr ¶
type UnaryFunction ¶ added in v0.1.12
type UnaryFunction[T, R any] func(T) R
UnaryFunction 将一个类型转为另一个类型
type UnaryKVFunction ¶ added in v0.1.12
type UnaryKVFunction[K, V, R any] func(K, V) R
UnaryKVFunction 将一个类型转为另一个类型
type UnaryKVFunction2 ¶ added in v0.1.12
type UnaryKVFunction2[K, V, RK, RV any] func(K, V) (RK, RV)
type UnaryKVOperator ¶ added in v0.1.12
type UnaryKVOperator[K, V any] func(K, V) (K, V)
type UnaryOperator ¶ added in v0.1.12
type UnaryOperator[T any] func(T) T
UnaryOperator 对输入进行一元运算返回相同类型的结果
Click to show internal directories.
Click to hide internal directories.