api

package
v1.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2024 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIApplication

type APIApplication struct {
	application.Application
}

APIApplication implements the application.Application interface as a commandline application to invoke the Flickr API and output results to STDOUT. It does not support uploading or replacing photos.

func (*APIApplication) DefaultFlagSet

func (app *APIApplication) DefaultFlagSet() *flag.FlagSet

Return the default FlagSet necessary for the APIApplication to run.

func (*APIApplication) Run

func (app *APIApplication) Run(ctx context.Context) (interface{}, error)

Invoke the APIApplication with its default FlagSet.

func (*APIApplication) RunWithFlagSet

func (app *APIApplication) RunWithFlagSet(ctx context.Context, fs *flag.FlagSet) (interface{}, error)

Invoke the APIApplication with a custom FlagSet.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL