Versions in this module Expand all Collapse all v1 v1.54.4 Nov 23, 2020 Changes in this version + var Calls = NewRegistry() + var DefaultOpt = Options + func Add(call Call) + func AddOption(name string, option interface{}) + func AddOptionReload(name string, option interface{}, reload func() error) + func GetFs(in Params) (f fs.Fs, err error) + func GetFsAndRemote(in Params) (f fs.Fs, remote string, err error) + func GetFsAndRemoteNamed(in Params, fsName, remoteName string) (f fs.Fs, remote string, err error) + func GetFsNamed(in Params, fsName string) (f fs.Fs, err error) + func IsErrParamInvalid(err error) bool + func IsErrParamNotFound(err error) bool + func NotErrParamNotFound(err error) bool + func Reshape(out interface{}, in interface{}) error + func WriteJSON(w io.Writer, out Params) error + type Call struct + AuthRequired bool + Fn Func + Help string + NeedsRequest bool + NeedsResponse bool + Path string + Title string + type ErrParamInvalid struct + type ErrParamNotFound string + func (e ErrParamNotFound) Error() string + type Func func(ctx context.Context, in Params) (out Params, err error) + type Options struct + AccessControlAllowOrigin string + EnableMetrics bool + Enabled bool + Files string + HTTPOptions httplib.Options + JobExpireDuration time.Duration + JobExpireInterval time.Duration + NoAuth bool + Serve bool + WebGUIFetchURL string + WebGUIForceUpdate bool + WebGUINoOpenBrowser bool + WebGUIUpdate bool + WebUI bool + type Params map[string]interface + func (p Params) Get(key string) (interface{}, error) + func (p Params) GetBool(key string) (bool, error) + func (p Params) GetDuration(key string) (time.Duration, error) + func (p Params) GetFloat64(key string) (float64, error) + func (p Params) GetHTTPRequest() (*http.Request, error) + func (p Params) GetHTTPResponseWriter() (*http.ResponseWriter, error) + func (p Params) GetInt64(key string) (int64, error) + func (p Params) GetString(key string) (string, error) + func (p Params) GetStruct(key string, out interface{}) error + func (p Params) GetStructMissingOK(key string, out interface{}) error + type Registry struct + func NewRegistry() *Registry + func (r *Registry) Add(call Call) + func (r *Registry) Get(path string) *Call + func (r *Registry) List() (out []*Call)