MCPcopy
hub / github.com/grpc/grpc-go / ManagementServer

Struct ManagementServer

internal/testutils/xds/e2e/server.go:49–69  ·  view source on GitHub ↗

ManagementServer is a thin wrapper around the xDS control plane implementation provided by envoyproxy/go-control-plane.

Source from the content-addressed store, hash-verified

47// ManagementServer is a thin wrapper around the xDS control plane
48// implementation provided by envoyproxy/go-control-plane.
49type ManagementServer struct {
50 // Address is the host:port on which the management server is listening for
51 // new connections.
52 Address string
53
54 // LRSServer points to the fake LRS server implementation. Set only if the
55 // SupportLoadReportingService option was set to true when creating this
56 // management server.
57 LRSServer *fakeserver.Server
58
59 cancel context.CancelFunc // To stop the v3 ADS service.
60 xs v3server.Server // v3 implementation of ADS.
61 gs *grpc.Server // gRPC server which exports the ADS service.
62 cache v3cache.SnapshotCache // Resource snapshot.
63 version int // Version of resource snapshot.
64
65 // A logging interface, usually supplied from *testing.T.
66 logger interface {
67 Logf(format string, args ...any)
68 }
69}
70
71// ManagementServerOptions contains options to be passed to the management
72// server during creation.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected