Documentation
¶
Index ¶
- type Option
- func ConfigOptions(cc config.CompileConfig) []Option
- func WithCompileRoot(r string) Option
- func WithFullRescan() Option
- func WithIgnore(m *ignore.Matcher) Option
- func WithLogger(l *slog.Logger) Option
- func WithMaxFileSize(n int64) Option
- func WithMaxParallelism(n int) Option
- func WithMessage(m string) Option
- func WithPaths(p []string) Option
- func WithRedactor(r *redaction.Redactor) Option
- func WithReseedTemperatures() Option
- func WithTemps(t map[string]*float64) Option
- func WithWallClockTimeout(d time.Duration) Option
- type Result
- func Compile(ctx context.Context, st *store.Store, opts ...Option) (*Result, error)
- func CompileDir(ctx context.Context, st *store.Store, dir, message string, opts ...Option) (*Result, error)
- func CompileFile(ctx context.Context, st *store.Store, path, message string, opts ...Option) (*Result, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*options)
func ConfigOptions ¶ added in v0.3.2
func ConfigOptions(cc config.CompileConfig) []Option
Translate the workspace compile block into options; absent fields keep engine defaults.
func WithCompileRoot ¶
func WithFullRescan ¶ added in v0.1.7
func WithFullRescan() Option
func WithIgnore ¶
func WithLogger ¶
func WithMaxFileSize ¶ added in v0.3.2
func WithMaxParallelism ¶ added in v0.3.2
func WithMessage ¶
func WithRedactor ¶ added in v0.3.2
func WithReseedTemperatures ¶ added in v0.1.8
func WithReseedTemperatures() Option
func WithWallClockTimeout ¶ added in v0.3.2
type Result ¶
func CompileDir ¶
Click to show internal directories.
Click to hide internal directories.