コード例 #1
0
ファイル: main.go プロジェクト: masonforest/horizon
// 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)
}
コード例 #2
0
ファイル: main.go プロジェクト: FihlaTV/horizon
// 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)
}