Documentation
¶
Index ¶
Constants ¶
View Source
const UserAgent = "surfer-cli"
Variables ¶
View Source
var APIBaseURL = func() string { if v := viper.GetString("api-url"); v != "" { return v } return "https://api.surfe.com" }
APIBaseURL returns the base URL for Surfe API calls. Override via config file (api-url), env var (SURFER_API_URL), or --api-url flag.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewWithOptions ¶
NewWithOptions creates a client with custom base URL and token function (for testing).
Click to show internal directories.
Click to hide internal directories.