Exemple #1
0
// NewOperation returns a resource of the appropriate sub-type for the provided
// operation record.
func NewOperation(
	ctx context.Context,
	row db.OperationRecord,
) (result hal.Pageable, err error) {
	return operations.New(ctx, row)
}
Exemple #2
0
// NewOperation returns a resource of the appropriate sub-type for the provided
// operation record.
func NewOperation(
	ctx context.Context,
	row history.Operation,
) (result hal.Pageable, err error) {
	return operations.New(ctx, row)
}