Help us shape the future of Go! Take the 2026 Go Developer Survey

mcproute

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RouteKindMCP = routecore.RouteKindMCP
)
View Source
const (
	RouteProtocolMCP = routecore.RouteProtocolMCP
)

Variables

View Source
var (
	ErrRouteNotConfigured  = routecore.ErrRouteNotConfigured
	ErrStaticRouteReadOnly = routecore.ErrStaticRouteReadOnly
	ErrInvalidRouteID      = routecore.ErrInvalidRouteID
)

Functions

func DecodeStoredMCPRoute

func DecodeStoredMCPRoute(data []byte) (any, error)

Types

type AgentRouteConfig

type AgentRouteConfig = routecore.AgentRouteConfig

type MCPRoute

type MCPRoute struct {
	AgentRouteConfig
	ServiceID string        `json:"service_id"`
	State     MCPRouteState `json:"-"`
}

func NewMCPRouteFromConfig

func NewMCPRouteFromConfig(cfg AgentRouteConfig) (MCPRoute, error)

func NewRuntimeMCPRoute

func NewRuntimeMCPRoute(cfg MCPRouteConfig) MCPRoute

func (MCPRoute) Config

func (r MCPRoute) Config() MCPRouteConfig

func (MCPRoute) MarshalJSON

func (r MCPRoute) MarshalJSON() ([]byte, error)

func (*MCPRoute) Normalize

func (r *MCPRoute) Normalize()

func (*MCPRoute) NormalizeTimestamps

func (r *MCPRoute) NormalizeTimestamps(now time.Time)

func (MCPRoute) ToConfig

func (r MCPRoute) ToConfig() (AgentRouteConfig, error)

func (*MCPRoute) UnmarshalJSON

func (r *MCPRoute) UnmarshalJSON(data []byte) error

type MCPRouteConfig

type MCPRouteConfig struct {
	AgentRouteConfig
	ServiceID string `json:"service_id"`
}

MCPRouteConfig is the expanded configuration form of an MCP route.

func NewMCPRouteConfigFromConfig

func NewMCPRouteConfigFromConfig(cfg AgentRouteConfig) (MCPRouteConfig, error)

func (MCPRouteConfig) MarshalJSON

func (r MCPRouteConfig) MarshalJSON() ([]byte, error)

func (*MCPRouteConfig) Normalize

func (r *MCPRouteConfig) Normalize()

func (*MCPRouteConfig) NormalizeTimestamps

func (r *MCPRouteConfig) NormalizeTimestamps(now time.Time)

func (MCPRouteConfig) ToConfig

func (r MCPRouteConfig) ToConfig() (AgentRouteConfig, error)

func (*MCPRouteConfig) UnmarshalJSON

func (r *MCPRouteConfig) UnmarshalJSON(data []byte) error

type MCPRouteResolver

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

func NewMCPRouteResolver

func NewMCPRouteResolver(configManager *routecore.AgentRouteConfigManager) *MCPRouteResolver

func (*MCPRouteResolver) ConfigManager

func (*MCPRouteResolver) CreateConfig

func (r *MCPRouteResolver) CreateConfig(ctx context.Context, route routecore.AgentRouteConfig, tag string) error

func (*MCPRouteResolver) DeleteConfig

func (r *MCPRouteResolver) DeleteConfig(ctx context.Context, routeID string) error

func (*MCPRouteResolver) GetConfig

func (r *MCPRouteResolver) GetConfig(ctx context.Context, routeID string) (routecore.AgentRouteConfig, error)

func (*MCPRouteResolver) ListConfigs

func (*MCPRouteResolver) Resolve

func (*MCPRouteResolver) ResolveByID

func (r *MCPRouteResolver) ResolveByID(ctx context.Context, routeID string) (*MCPRoute, error)

func (*MCPRouteResolver) UpdateConfig

func (r *MCPRouteResolver) UpdateConfig(ctx context.Context, routeID string, route routecore.AgentRouteConfig) error

type MCPRouteState

type MCPRouteState struct{}

MCPRouteState holds runtime-only state for a resolved MCP route.

type RouteAuthPolicy

type RouteAuthPolicy = routecore.RouteAuthPolicy

type RouteKind

type RouteKind = routecore.RouteKind

type RouteListOptions

type RouteListOptions = routecore.RouteListOptions

type RouteMatch

type RouteMatch = routecore.RouteMatchPolicy

type RouteProtocol

type RouteProtocol = routecore.RouteProtocol

Jump to

Keyboard shortcuts

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