source

package
v0.0.0-...-7d5b4ed Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2026 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Directory

type Directory struct {
	Path     string
	MaxSize  int64
	Excludes []string
}

func NewDirectory

func NewDirectory(
	path string, maxSize int64, excludes []string,
) *Directory

func (*Directory) Chunks

func (d *Directory) Chunks(
	ctx context.Context, out chan<- types.Chunk,
) error

func (*Directory) String

func (d *Directory) String() string

type Git

type Git struct {
	RepoPath   string
	Branch     string
	Since      string
	Depth      int
	StagedOnly bool
	MaxSize    int64
	Excludes   []string
}

func NewGit

func NewGit(
	repoPath string,
	branch string,
	since string,
	depth int,
	stagedOnly bool,
	maxSize int64,
	excludes []string,
) *Git

func (*Git) Chunks

func (g *Git) Chunks(
	ctx context.Context, out chan<- types.Chunk,
) error

func (*Git) String

func (g *Git) String() string

type Source

type Source interface {
	Chunks(ctx context.Context, out chan<- types.Chunk) error
	String() string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL