Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Open ¶
func Open(cfg Config, rt http.RoundTripper) (*restBackend, error)
Open opens the REST backend with the given config.
func ParseConfig ¶
ParseConfig parses the string s and extracts the REST server URL.
Types ¶
type Config ¶
type Config struct { URL *url.URL Connections uint `option:"connections" help:"set a limit for the number of concurrent connections (default: 5)"` }
Config contains all configuration necessary to connect to a REST server.
type ErrIsNotExist ¶
ErrIsNotExist is returned whenever the requested file does not exist on the server.
func (ErrIsNotExist) Error ¶
func (e ErrIsNotExist) Error() string
Click to show internal directories.
Click to hide internal directories.