file

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package file provides local file context source.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Source

type Source struct {
	// contains filtered or unexported fields
}

Source reads context from local files.

func NewSource

func NewSource(cfg ctx.FileConfig) (*Source, error)

NewSource creates a new file source from configuration.

func (*Source) Fetch

func (s *Source) Fetch(c context.Context) (*ctx.ContextData, error)

Fetch reads the file and returns its context.

func (*Source) Name

func (s *Source) Name() string

Name returns the source identifier.

func (*Source) String

func (s *Source) String() string

String returns a human-readable description.

func (*Source) Type

func (s *Source) Type() ctx.SourceType

Type returns the source type.

Jump to

Keyboard shortcuts

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