connection

package
v1.0.10-0...-7349ede Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClientConfiguration

func GetClientConfiguration(addr string) configuration.Replicator

func NewGRPCServer

func NewGRPCServer(cfg configuration.Exporter, grpcMetrics *grpc_prometheus.ServerMetrics) (*grpc.Server, error)

NewGRPCServer configures the gRPC server with metrics

Types

type GRPCClientConnection

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

func NewGRPCClientConnection

func NewGRPCClientConnection(ctx context.Context, cfg configuration.Replicator) (*GRPCClientConnection, error)

NewGRPCClientConnection returns implementation

func (*GRPCClientConnection) GetGRPCConn

func (c *GRPCClientConnection) GetGRPCConn() *grpc.ClientConn

func (*GRPCClientConnection) NotifyShutdown

func (c *GRPCClientConnection) NotifyShutdown(ctx context.Context, stopChannel chan<- struct{}, waitForStateChange time.Duration)

type Token

type Token struct {
	AccessToken string    `json:"access_token"`
	ExpiresIn   int64     `json:"expires_in"`
	ReceivedAt  time.Time `json:"-"`
}

Jump to

Keyboard shortcuts

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