Documentation ¶
Index ¶
Constants ¶
View Source
const (
// ClientEncodeErr represents an error encoding parameters.
ClientEncodeErr = "client:encode"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { BaseURL string `json:"baseurl"` // BaseURL the API is served from, e.g. https://www.sherpadoc.org/example/ Functions []string `json:"functions"` // Function names exported by the API ID string `json:"id"` // Short ID of the API. May be nil. Title string `json:"title"` // Human-readable name of the API. May be nil. Version string `json:"version"` // Version of the API, should be in the form "major.minor.patch". May be nil. SherpaVersion int `json:"sherpaVersion"` // Version of the Sherpa specification this API implements. May be nil. }
Client lets you call functions from an existing Sherpa API. If the API was initialized with a non-nil function list, some fields will be nil (as indicated).
Click to show internal directories.
Click to hide internal directories.