Documentation ¶
Index ¶
- Variables
- func AppendErrGroup(eg *errgroup.Group, f ErrFunc, args ...interface{})
- func AppendErrGroupWithContext(ctx context.Context, eg *errgroup.Group, f ErrFunc, args ...interface{})
- func FindPtr[T any](db *mysql.DB) ([]*T, error)
- func ShardingInt(i int) uint32
- func WhereFind[T any](db *mysql.DB, query interface{}, args ...interface{}) ([]T, error)
- func WhereFindPtr[T any](db *mysql.DB, query interface{}, args ...interface{}) ([]*T, error)
- type ErrFunc
- type ORG
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ResourcePrometheusMetricName = "metric_name" ResourcePrometheusLabelName = "label_name" ResourcePrometheusLabelValue = "label_value" ResourcePrometheusMetricAPPLabelLayout = "metric_app_label_layout" ResourcePrometheusLabel = "label" ResourcePrometheusMetricLabelName = "metric_label_name" )
View Source
var ( TargetLabelInstance = "instance" TargetLabelJob = "job" )
Functions ¶
func AppendErrGroup ¶
func ShardingInt ¶
现在使用此方法的地方,传参实际在 uint32 范围内,使用此方法是为了方便调用 concurrent 库
Types ¶
Click to show internal directories.
Click to hide internal directories.