grpcclient

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Address          string            `json:"address"`
	CACertPath       string            `json:"ca_cert_path"`
	ClientCertPath   string            `json:"client_cert_path"`
	ClientKeyPath    string            `json:"client_key_path"`
	APIKey           string            `json:"api_key"`
	Insecure         bool              `json:"insecure"`
	TimeoutInSeconds int               `json:"timeout_in_seconds"`
	Token            string            `json:"token"`
	Headers          map[string]string `json:"headers"`
}

func (*Config) ToClientOptions added in v0.1.0

func (cfg *Config) ToClientOptions(dop DialOptionsProvider) ([]client.ConnectionOption, error)

type DialOptionsProvider

type DialOptionsProvider func(*Config) ([]grpc.DialOption, error)

func NewDialOptionsProvider

func NewDialOptionsProvider() DialOptionsProvider

Jump to

Keyboard shortcuts

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