Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultFlagSet ¶
DefaultFlagSet returns the default flags (flagset) for running the commandline `api` application.
func Run ¶
Run will execute the commandline `api` application using the default flags and `RunOptions`.
func RunWithFlagSet ¶
Run will execute the commandline `api` application using `RunOptions` derived from 'fs'.
func RunWithOptions ¶
func RunWithOptions(ctx context.Context, opts *RunOptions) error
Run will execute the commandline `api` application using `RunOptions`.
Types ¶
type RunOptions ¶
type RunOptions struct {
// The HTTP verb to execute an API method with.
Verb string
// A valid `sfomuseum/go-sfomuseum-api/client.Client` URI.
APIClientURI string
// One or more query parameters to execute an API method with (at a minimum the "method" parameter is required).
Args *url.Values
}
RunOptions defines options and configurations to execute the commandline `api` application with.
func RunOptionsFromFlagSet ¶
func RunOptionsFromFlagSet(fs *flag.FlagSet) (*RunOptions, error)
RunOptionsFromFlagSet will return a new `RunOptions` for use with the commandline `api` application derived from 'fs'.
Click to show internal directories.
Click to hide internal directories.