rootpathresolver

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OSLayer

type OSLayer interface {
	GOOS() string
	IsAbs(path string) bool
}

type RootPathResolver

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

func New

func New(osLayer OSLayer) *RootPathResolver

func (*RootPathResolver) Resolve

func (r *RootPathResolver) Resolve(root entities.MCPRoot) (string, error)

Resolve converts a Root's file:// URI to a local filesystem path. Returns an error for non-file schemes, UNC paths, or non-absolute paths.

Jump to

Keyboard shortcuts

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