Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) ClearCache()
- func (c *Client) GetAPI(ctx context.Context, serviceID string) (*googleapismodule.API, error)
- func (c *Client) GetMethods(ctx context.Context, serviceID string) ([]googleapismodule.MethodInfo, error)
- func (c *Client) GetPreferredServices(ctx context.Context) ([]ServiceOption, error)
- func (c *Client) GetServices(ctx context.Context) ([]ServiceOption, error)
- type ServiceOption
Constants ¶
View Source
const (
// DiscoveryListURL is the URL to fetch the list of all Google APIs
DiscoveryListURL = "https://discovery.googleapis.com/discovery/v1/apis"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides access to Google API Discovery documents
func (*Client) GetMethods ¶
func (c *Client) GetMethods(ctx context.Context, serviceID string) ([]googleapismodule.MethodInfo, error)
GetMethods returns all available methods for a given service
func (*Client) GetPreferredServices ¶
func (c *Client) GetPreferredServices(ctx context.Context) ([]ServiceOption, error)
GetPreferredServices returns only the preferred version of each service
func (*Client) GetServices ¶
func (c *Client) GetServices(ctx context.Context) ([]ServiceOption, error)
GetServices returns a list of available Google API services
Click to show internal directories.
Click to hide internal directories.