grpc

package
v2.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2019 License: Apache-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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