Documentation ¶
Index ¶
- type ConnectionOption
- type ConnectionOptions
- type Connections
- func (c *Connections) BrowserControllerClient() browsercontrollerV1.BrowserControllerClient
- func (c *Connections) Close()
- func (c *Connections) Connect() error
- func (c *Connections) ContentWriterClient() contentwriterV1.ContentWriterClient
- func (c *Connections) DnsResolverClient() dnsresolverV1.DnsResolverClient
- type EmptyConnectionOption
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.
Click to show internal directories.
Click to hide internal directories.