Documentation
¶
Index ¶
Constants ¶
View Source
const (
// DefaultURI is the default base URI to use for the Twtxt API endpoint
DefaultURI = "http://localhost:8000/api/v1/"
)
Variables ¶
View Source
var ( // DefaultUserAgent ... DefaultUserAgent = fmt.Sprintf("twt/%s", twtxt.FullVersion()) ErrUnauthorized = errors.New("error: authorization failed") // ErrServerError ErrServerError = errors.New("error: server error") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { BaseURL *url.URL Config *Config UserAgent string // contains filtered or unexported fields }
Client ...
Click to show internal directories.
Click to hide internal directories.