client

package
v0.0.0-...-2bc910a Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(ctx context.Context, config ClientConfig) (*client, error)

NewClient returns a new reporting gRPC client

Types

type Client

type Client interface {
	// Record records an event
	Record(types.Event)
}

Client defines the reporting client interface

type ClientConfig

type ClientConfig struct {
	// ServerAddr is the address of the reporting gRPC server
	ServerAddr string
	// ServerName is the SNI server name
	ServerName string
	// Certificate is the client certificate to authenticate with
	Certificate tls.Certificate
	// Insecure is whether the client should skip server cert verification
	Insecure bool
}

ClientConfig defines the reporting client config

Jump to

Keyboard shortcuts

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