serviceconnections

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectionOption

type ConnectionOption interface {
	// contains filtered or unexported methods
}

ConnectionOption configures how to connect to a service.

func WithConnectTimeout

func WithConnectTimeout(connectTimeout time.Duration) ConnectionOption

func WithDialOptions

func WithDialOptions(dialOption ...grpc.DialOption) ConnectionOption

func WithHost

func WithHost(host string) ConnectionOption

func WithPort

func WithPort(port string) ConnectionOption

type ConnectionOptions

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

connectionOptions configure a connection. connectionOptions are set by the ConnectionOption values passed to NewConnectionOptions.

func NewConnectionOptions

func NewConnectionOptions(serviceName string, opts ...ConnectionOption) *ConnectionOptions

func (*ConnectionOptions) Addr

func (c *ConnectionOptions) Addr() string

type Connections

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

Connections holds the clients for external grpc services

func NewConnections

func NewConnections(contentWriterOptions, dnsOptions, browserControllerOptions *ConnectionOptions) *Connections

func (*Connections) BrowserControllerClient

func (c *Connections) BrowserControllerClient() browsercontrollerV1.BrowserControllerClient

func (*Connections) Close

func (c *Connections) Close()

func (*Connections) Connect

func (c *Connections) Connect() error

func (*Connections) ContentWriterClient

func (c *Connections) ContentWriterClient() contentwriterV1.ContentWriterClient

func (*Connections) DnsResolverClient

func (c *Connections) DnsResolverClient() dnsresolverV1.DnsResolverClient

type EmptyConnectionOption

type EmptyConnectionOption struct{}

EmptyConnectionOption does not alter the configuration. It can be embedded in another structure to build custom connection options.

Jump to

Keyboard shortcuts

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