Documentation ¶
Overview ¶
Package test contains test utilities
Index ¶
- Constants
- func RunAccessLogServer(ctx context.Context, als *AccessLogService, port uint)
- func RunHTTP(ctx context.Context, upstreamPort uint)
- func RunManagementGateway(ctx context.Context, srv xds.Server, port uint)
- func RunManagementServer(ctx context.Context, server xds.Server, port uint)
- type AccessLogService
Constants ¶
View Source
const (
// Hello is the echo message
Hello = "Hi, there!\n"
)
Variables ¶
This section is empty.
Functions ¶
func RunAccessLogServer ¶
func RunAccessLogServer(ctx context.Context, als *AccessLogService, port uint)
RunAccessLogServer starts an accessloggrpc service.
func RunManagementGateway ¶
RunManagementGateway starts an HTTP gateway to an xDS server.
Types ¶
type AccessLogService ¶
type AccessLogService struct {
// contains filtered or unexported fields
}
AccessLogService buffers access logs from the remote Envoy nodes.
func (*AccessLogService) Dump ¶
func (svc *AccessLogService) Dump(f func(string))
Dump releases the collected log entries and clears the log entry list.
func (*AccessLogService) StreamAccessLogs ¶
func (svc *AccessLogService) StreamAccessLogs(stream alsgrpc.AccessLogService_StreamAccessLogsServer) error
StreamAccessLogs implements the access log service.
Click to show internal directories.
Click to hide internal directories.