client

package
v0.0.0-...-f75b535 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultEndpoint = "legacy.g-portal.cloud:443"
View Source
const Version = "1.0.3"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(accessToken string, options ...grpc.DialOption) (*Client, error)

NewClient Returns a new GRPC client

func (*Client) PublicClient

func (c *Client) PublicClient() ptypes.PublicAPIClient

PublicClient Returns the ptypes.PublicAPIClient for unauthenticated requests

func (*Client) UserClient

func (c *Client) UserClient() ptypes.UserAPIClient

UserClient Returns the ptypes.UserAPIClient for authenticated requests

type GPCloudAuth

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

func (GPCloudAuth) GetRequestMetadata

func (a GPCloudAuth) GetRequestMetadata(ctx context.Context, uri ...string) (map[string]string, error)

func (GPCloudAuth) RequireTransportSecurity

func (a GPCloudAuth) RequireTransportSecurity() bool

Jump to

Keyboard shortcuts

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