grpc

package
v0.1.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Conn *grpc.ClientConn
	Opts *Option
}

func NewClient

func NewClient(opts ...Opt) (*Client, error)

type Opt

type Opt func(c *Option)

func WithCredentials

func WithCredentials() Opt

func WithDisableTls

func WithDisableTls() Opt

func WithDisablesCredentials

func WithDisablesCredentials() Opt

func WithPerRPCCredentials

func WithPerRPCCredentials(creds credentials.PerRPCCredentials) Opt

func WithTls

func WithTls(creds credentials.TransportCredentials) Opt

func WithURI

func WithURI(target string) Opt

type Option

type Option struct {
	Uri     string
	GrpcOpt []grpc.DialOption
}

func DefaultOptions

func DefaultOptions() *Option

Jump to

Keyboard shortcuts

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