config

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package config provides server configuration functionality.

Index

Constants

View Source
const (
	ServerName    = "fetch-server"
	ServerVersion = "1.0.0"
	DefaultUA     = "Mozilla/5.0 (compatible; MCPFetchBot/1.0)"
)

Constants

View Source
const (
	TransportSSE            = "sse"
	TransportStreamableHTTP = "streamable-http"
)

Transport types

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Port         int
	UserAgent    string
	IgnoreRobots bool
	ProxyURL     string
	Transport    string
}

Config holds the server configuration

func ParseFlags

func ParseFlags() Config

ParseFlags parses command line flags and returns configuration

Jump to

Keyboard shortcuts

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