Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultPingTimeout = 6 * time.Second DefaultMaxMissingPingCounter = 3 )
View Source
const GRPCDefinitionVersion = "2.0.0"
View Source
const GRPCGracefulStopTimeout = 10 * time.Second
Variables ¶
View Source
var (
RequestedKillError = errors.New("kill requested")
)
Functions ¶
func StartCollectorGRPC ¶
Types ¶
type Channel ¶
type Channel struct {
*inprocgrpc.Channel
}
func NewChannel ¶
func NewChannel() *Channel
func (*Channel) GracefulStop ¶
func (c *Channel) GracefulStop()
type CollectorProxy ¶
type PublisherProxy ¶
type Server ¶
type Server interface { grpchan.ServiceRegistry // For compatibility with the native grpc.Server Serve(lis net.Listener) error GracefulStop() Stop() }
func NewGRPCServer ¶
An abstraction providing a unified interface for
- the native go-grpc implementation
- https://github.com/solarwinds/grpchan - this one provides a way of using gRPC with a custom transport (that means sth other than the native h2 - HTTP1.1 or inprocess/channels are available out of the box)
Click to show internal directories.
Click to hide internal directories.