config

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package config provides server configuration functionality.

Index

Constants

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

Constants

Variables

This section is empty.

Functions

func GetDefaultAddress

func GetDefaultAddress() string

GetDefaultAddress returns the default server address from environment or constant

Types

type Config

type Config struct {
	Address      string
	UserAgent    string
	IgnoreRobots bool
	ProxyURL     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