repository

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DirWalker

type DirWalker interface {
	Walk(
		ctx context.Context,
		function WalkDirFunc,
		prefixFunc WalkDirNextPrefixFunc,
		prefix, path string,
		ignoreDot bool,
		maxDepth int,
	) error
}

type FileWalker

type FileWalker interface {
	Walk(ctx context.Context, function WalkFileFunc, path, extension string, ignoreDot bool) error
}

type GitHubClient

type GitHubClient interface {
	SearchCode(ctx context.Context, query string, opt *SearchCodeOption) (SearchCodeResult, error)
	GetContent(ctx context.Context, owner, repo, path string) (string, error)
}

type HttpClient

type HttpClient interface {
	Get(url string) (io.ReadCloser, error)
}

type SearchCodeItem

type SearchCodeItem struct {
	Name       string
	Path       string
	Repository string
	Fragments  []string
}

type SearchCodeOption

type SearchCodeOption struct {
	Language *string
	Repo     *string
}

type SearchCodeResult

type SearchCodeResult struct {
	Total int
	Items []SearchCodeItem
}

type WalkDirFunc

type WalkDirFunc func(name, prefix string, isLastEntry bool) error

type WalkDirNextPrefixFunc

type WalkDirNextPrefixFunc func(prefix string, isLastEntry bool) string

type WalkFileFunc

type WalkFileFunc func(path string) error

Jump to

Keyboard shortcuts

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