test

package
v1.28.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// From ./out/TestCA.crt. Also copy this file to ./testdata/caroot.crt
	TestCARootCertificate = `` /* 1752-byte string literal not displayed */

	// From ./out/TestServer.crt.  Also copy this file to ./testdata/testserver.crt.
	TestServerPublicCertificate = `` /* 1521-byte string literal not displayed */

	// From ./out/TestServer.key. Also copy this file to ./testdata/testserver.key.
	TestServerPrivateKey = `` /* 1678-byte string literal not displayed */

	// ServerName is encoded in the above certificates.
	ServerName = "127.0.0.1"

	ErrUnsupported = fmt.Errorf("unsupported method")
)

Functions

This section is empty.

Types

type Server

type Server struct {
	InsecureMetricsPort int
	SecureMetricsPort   int
	InsecureTracePort   int
	SecureTracePort     int
	// contains filtered or unexported fields
}

func NewServer

func NewServer() *Server

func (*Server) MetricsMDs

func (s *Server) MetricsMDs() []grpcMetadata.MD

func (*Server) MetricsRequests

func (s *Server) MetricsRequests() []*metricService.ExportMetricsServiceRequest

func (*Server) Stop

func (s *Server) Stop()

func (*Server) TraceMDs

func (s *Server) TraceMDs() []grpcMetadata.MD

func (*Server) TraceRequests

func (s *Server) TraceRequests() []*traceService.ExportTraceServiceRequest

Jump to

Keyboard shortcuts

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