Versions in this module Expand all Collapse all v1 v1.69.1 Feb 15, 2025 Changes in this version + var Calls = NewRegistry() + var OptionsInfo = ...("rc_addr", []string{ ... }) + func Add(call Call) + func GetFs(ctx context.Context, in Params) (f fs.Fs, err error) + func GetFsAndRemote(ctx context.Context, in Params) (f fs.Fs, remote string, err error) + func GetFsAndRemoteNamed(ctx context.Context, in Params, fsName, remoteName string) (f fs.Fs, remote string, err error) + func GetFsNamed(ctx context.Context, in Params, fsName string) (f fs.Fs, err error) + func GetFsNamedFileOK(ctx context.Context, in Params, fsName string) (newCtx context.Context, 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 + func NewErrParamInvalid(err error) ErrParamInvalid + type ErrParamNotFound string + func (e ErrParamNotFound) Error() string + type Func func(ctx context.Context, in Params) (out Params, err error) + type Options struct + Auth libhttp.AuthConfig + EnableMetrics bool + Enabled bool + Files string + HTTP libhttp.Config + JobExpireDuration time.Duration + JobExpireInterval time.Duration + MetricsAuth libhttp.AuthConfig + MetricsHTTP libhttp.Config + MetricsTemplate libhttp.TemplateConfig + NoAuth bool + Serve bool + ServeNoModTime bool + Template libhttp.TemplateConfig + WebGUIFetchURL string + WebGUIForceUpdate bool + WebGUINoOpenBrowser bool + WebGUIUpdate bool + WebUI bool + var Opt Options + type Params map[string]interface + func (p Params) Copy() (out Params) + 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) GetFsDuration(key string) (fs.Duration, 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 + func Error(path string, in Params, err error, status int) (Params, int) + 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)