config

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2026 License: MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const DefaultAPIBaseURL = "https://api.raindrop.io/rest/v1"
View Source
const DefaultEndpoint = "https://api.raindrop.io/rest/v2/ai/mcp"

Variables

This section is empty.

Functions

func DefaultEnvFileForDisplay

func DefaultEnvFileForDisplay() string

func EnvFiles added in v0.2.0

func EnvFiles() []string

func ValidateURL added in v0.2.0

func ValidateURL(value string) error

ValidateURL permits secure remote endpoints and HTTP loopback fixtures.

Types

type Config

type Config struct {
	Endpoint    string
	APIBaseURL  string
	Token       string
	TokenSource string
}

func Load

func Load() (Config, error)

func Read added in v0.2.0

func Read() (Config, error)

Read resolves configuration without requiring a token. Never serialize Config: use Status for diagnostics so credentials stay out of output.

func (Config) Status added in v0.2.0

func (c Config) Status() Status

type Status added in v0.2.0

type Status struct {
	APIBaseURL      string   `json:"apiBaseURL"`
	MCPEndpoint     string   `json:"mcpEndpoint"`
	EnvFiles        []string `json:"envFiles"`
	TokenConfigured bool     `json:"tokenConfigured"`
	TokenSource     string   `json:"tokenSource,omitempty"`
}

Jump to

Keyboard shortcuts

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