示例#1
0
// NewEffect returns a resource of the appropriate sub-type for the provided
// effect record.
func NewEffect(
	ctx context.Context,
	row db.EffectRecord,
) (result hal.Pageable, err error) {
	return effects.New(ctx, row)
}
示例#2
0
文件: main.go 项目: FihlaTV/horizon
// NewEffect returns a resource of the appropriate sub-type for the provided
// effect record.
func NewEffect(
	ctx context.Context,
	row history.Effect,
) (result hal.Pageable, err error) {
	return effects.New(ctx, row)
}