Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products.

Package google.golang.org/appengine/remote_api (v1.6.7)

Package remote_api implements the /_ah/remote_api endpoint. This endpoint is used by offline tools such as the bulk loader.

Functions

func NewRemoteContext

func NewRemoteContext(host string, client *http.Client) (context.Context, error)

NewRemoteContext returns a context that gives access to the production APIs for the application at the given host. All communication will be performed over SSL unless the host is localhost.

Client

type Client struct {
	// contains filtered or unexported fields
}

Client is a connection to the production APIs for an application.

func NewClient

func NewClient(host string, client *http.Client) (*Client, error)

NewClient returns a client for the given host. All communication will be performed over SSL unless the host is localhost.

func (*Client) NewContext

func (c *Client) NewContext(parent context.Context) context.Context

NewContext returns a copy of parent that will cause App Engine API calls to be sent to the client's remote host.