client

package
v0.0.0-...-6af7e68 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultEndpoint = "grpc.gpcore.io:443"
View Source
const Version = "23.3.0"

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthOption

type AuthOption struct {
	Provider *AuthProviderOption
}

func (*AuthOption) GetRequestMetadata

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

func (*AuthOption) RequireTransportSecurity

func (a *AuthOption) RequireTransportSecurity() bool

type AuthProviderOption

type AuthProviderOption interface {
	GetToken(context.Context) (string, error)
}

type Client

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

func NewClient

func NewClient(extraOptions ...interface{}) (*Client, error)

NewClient Returns a new GRPC client

func (*Client) AuthClient

func (c *Client) AuthClient() authv1grpc.AuthServiceClient

AuthClient Returns the CloudServiceClient

func (*Client) ClientConnection

func (c *Client) ClientConnection() *grpc.ClientConn

ClientConnection Returns the *grpc.ClientConn

func (*Client) CloudClient

func (c *Client) CloudClient() cloudv1grpc.CloudServiceClient

CloudClient Returns the CloudServiceClient

func (*Client) MetadataClient

func (c *Client) MetadataClient() metadatav1grpc.MetadataServiceClient

MetadataClient Returns the MetadataServiceClient

func (*Client) NetworkClient

func (c *Client) NetworkClient() networkv1grpc.NetworkServiceClient

NetworkClient Returns the NetworkServiceClient

func (*Client) PaymentClient

func (c *Client) PaymentClient() paymentv1grpc.PaymentServiceClient

PaymentClient Returns the PaymentServiceClient

type EndpointOverrideOption

type EndpointOverrideOption string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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