mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-12-02 17:13:33 +01:00
11 lines
368 B
Go
11 lines
368 B
Go
package provider
|
|
|
|
import "context"
|
|
|
|
// SourcePreviews bounds author previews independently of full repository imports.
|
|
// Adapters must use the supplied identity and immutable revision.
|
|
type SourcePreviews interface {
|
|
PreviewTree(context.Context, Access, int) ([]Entry, bool, error)
|
|
PreviewFile(context.Context, Access, string, int64) ([]byte, int64, bool, error)
|
|
}
|