Add Markdown HTML publication
This commit is contained in:
26
internal/transform/transform.go
Normal file
26
internal/transform/transform.go
Normal file
@@ -0,0 +1,26 @@
|
||||
package transform
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"gitea.maximumdirect.net/eric/distributor/internal/bundle"
|
||||
"gitea.maximumdirect.net/eric/distributor/internal/storage"
|
||||
)
|
||||
|
||||
type Output struct {
|
||||
Path string
|
||||
SourcePath string
|
||||
Transform string
|
||||
Data []byte
|
||||
SHA256 string
|
||||
Size int64
|
||||
}
|
||||
|
||||
type Request struct {
|
||||
SourceBundle bundle.Bundle
|
||||
SourceBackend storage.Backend
|
||||
}
|
||||
|
||||
type Transformer interface {
|
||||
Generate(ctx context.Context, req Request) ([]Output, error)
|
||||
}
|
||||
Reference in New Issue
Block a user