Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { // Include common client methods as well. gangwayClient.Common // contains filtered or unexported fields }
func NewFromFile ¶
NewFromFile creates a Gangway client from a JSON service account key file and an audience string.
func (*Client) EmbedCredentials ¶
EmbedCredentials is used to modify a provided context so that it has the the necessary token and apiKey attached to it in the metadata.
func (*Client) MkToken ¶
MkToken generates a new JWT token with a 1h TTL. This is apparently a cheap operation, according to https://github.com/GoogleCloudPlatform/golang-samples/blob/e7a5459d85661a35c5eb4f0b5759b7b30ac6ff90/endpoints/getting-started-grpc/client/main.go#L81-L88.
type ClientInsecure ¶
type ClientInsecure struct { // Include common client methods as well. gangwayClient.Common // contains filtered or unexported fields }
func NewInsecure ¶
func NewInsecure(addr, projectNumber string) (*ClientInsecure, error)
func (*ClientInsecure) Close ¶
func (c *ClientInsecure) Close()
func (*ClientInsecure) EmbedProjectNumber ¶
func (c *ClientInsecure) EmbedProjectNumber(ctx context.Context) context.Context
Click to show internal directories.
Click to hide internal directories.