2022-07-26 23:16:28 +02:00
|
|
|
// Copyright 2022 Lauris BH. All rights reserved.
|
|
|
|
// Use of this source code is governed by a MIT-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
package transform
|
|
|
|
|
|
|
|
type Source struct {
|
|
|
|
Name string
|
|
|
|
Content []byte
|
|
|
|
}
|
|
|
|
|
|
|
|
type Transformer interface {
|
|
|
|
Transform([]*Source) ([]*Pipeline, error)
|
2022-08-01 17:01:09 +02:00
|
|
|
PostProcess([]byte) ([]byte, error)
|
2022-07-26 23:16:28 +02:00
|
|
|
}
|