grpc

package
v2.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 9, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultPlugin = *NewPlugin()

Default instance of the plugin (e.g. without custom dependencies)

Functions

This section is empty.

Types

type Client

type Client struct {
	Deps // external dependencies
	// contains filtered or unexported fields
}

Client is aGRPC plugin structure

func NewPlugin

func NewPlugin(opts ...Option) *Client

Method to retrieve plugin instance with options (if defined)

func (*Client) Close

func (p *Client) Close() (err error)

Close function, called on the shutdown

func (*Client) Init

func (p *Client) Init() (err error)

Inti is the initialization function, called when the agent in started

func (*Client) String

func (p *Client) String() string

String is the GRPC plugin string representation

type Deps

type Deps struct {
	infra.PluginDeps
}

Deps is a structure for the plugin external dependencies

type Option

type Option func(*Client)

Jump to

Keyboard shortcuts

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