Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterChannelzServer(s grpc.ServiceRegistrar, srv ChannelzServer)
- type ChannelzClient
- type ChannelzServer
- type UnimplementedChannelzServer
- func (UnimplementedChannelzServer) GetChannel(context.Context, *v1.GetChannelRequest) (*v1.GetChannelResponse, error)
- func (UnimplementedChannelzServer) GetServer(context.Context, *v1.GetServerRequest) (*v1.GetServerResponse, error)
- func (UnimplementedChannelzServer) GetServerSockets(context.Context, *v1.GetServerSocketsRequest) (*v1.GetServerSocketsResponse, error)
- func (UnimplementedChannelzServer) GetServers(context.Context, *v1.GetServersRequest) (*v1.GetServersResponse, error)
- func (UnimplementedChannelzServer) GetSocket(context.Context, *v1.GetSocketRequest) (*v1.GetSocketResponse, error)
- func (UnimplementedChannelzServer) GetSubchannel(context.Context, *v1.GetSubchannelRequest) (*v1.GetSubchannelResponse, error)
- func (UnimplementedChannelzServer) GetTopChannels(context.Context, *v1.GetTopChannelsRequest) (*v1.GetTopChannelsResponse, error)
- type UnsafeChannelzServer
Constants ¶
const ( Channelz_GetTopChannels_FullMethodName = "/grpc.channelz.v1.Channelz/GetTopChannels" Channelz_GetServers_FullMethodName = "/grpc.channelz.v1.Channelz/GetServers" Channelz_GetServer_FullMethodName = "/grpc.channelz.v1.Channelz/GetServer" Channelz_GetServerSockets_FullMethodName = "/grpc.channelz.v1.Channelz/GetServerSockets" Channelz_GetChannel_FullMethodName = "/grpc.channelz.v1.Channelz/GetChannel" Channelz_GetSubchannel_FullMethodName = "/grpc.channelz.v1.Channelz/GetSubchannel" Channelz_GetSocket_FullMethodName = "/grpc.channelz.v1.Channelz/GetSocket" )
Variables ¶
var Channelz_ServiceDesc = grpc.ServiceDesc{ ServiceName: "grpc.channelz.v1.Channelz", HandlerType: (*ChannelzServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetTopChannels", Handler: _Channelz_GetTopChannels_Handler, }, { MethodName: "GetServers", Handler: _Channelz_GetServers_Handler, }, { MethodName: "GetServer", Handler: _Channelz_GetServer_Handler, }, { MethodName: "GetServerSockets", Handler: _Channelz_GetServerSockets_Handler, }, { MethodName: "GetChannel", Handler: _Channelz_GetChannel_Handler, }, { MethodName: "GetSubchannel", Handler: _Channelz_GetSubchannel_Handler, }, { MethodName: "GetSocket", Handler: _Channelz_GetSocket_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "grpc/channelz/v1/channelz.proto", }
Channelz_ServiceDesc is the grpc.ServiceDesc for Channelz service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterChannelzServer ¶
func RegisterChannelzServer(s grpc.ServiceRegistrar, srv ChannelzServer)
Types ¶
type ChannelzClient ¶
type ChannelzClient interface { // Gets all root channels (i.e. channels the application has directly // created). This does not include subchannels nor non-top level channels. GetTopChannels(ctx context.Context, in *v1.GetTopChannelsRequest, opts ...grpc.CallOption) (*v1.GetTopChannelsResponse, error) // Gets all servers that exist in the process. GetServers(ctx context.Context, in *v1.GetServersRequest, opts ...grpc.CallOption) (*v1.GetServersResponse, error) // Returns a single Server, or else a NOT_FOUND code. GetServer(ctx context.Context, in *v1.GetServerRequest, opts ...grpc.CallOption) (*v1.GetServerResponse, error) // Gets all server sockets that exist in the process. GetServerSockets(ctx context.Context, in *v1.GetServerSocketsRequest, opts ...grpc.CallOption) (*v1.GetServerSocketsResponse, error) // Returns a single Channel, or else a NOT_FOUND code. GetChannel(ctx context.Context, in *v1.GetChannelRequest, opts ...grpc.CallOption) (*v1.GetChannelResponse, error) // Returns a single Subchannel, or else a NOT_FOUND code. GetSubchannel(ctx context.Context, in *v1.GetSubchannelRequest, opts ...grpc.CallOption) (*v1.GetSubchannelResponse, error) // Returns a single Socket or else a NOT_FOUND code. GetSocket(ctx context.Context, in *v1.GetSocketRequest, opts ...grpc.CallOption) (*v1.GetSocketResponse, error) }
ChannelzClient is the client API for Channelz service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewChannelzClient ¶
func NewChannelzClient(cc grpc.ClientConnInterface) ChannelzClient
type ChannelzServer ¶
type ChannelzServer interface { // Gets all root channels (i.e. channels the application has directly // created). This does not include subchannels nor non-top level channels. GetTopChannels(context.Context, *v1.GetTopChannelsRequest) (*v1.GetTopChannelsResponse, error) // Gets all servers that exist in the process. GetServers(context.Context, *v1.GetServersRequest) (*v1.GetServersResponse, error) // Returns a single Server, or else a NOT_FOUND code. GetServer(context.Context, *v1.GetServerRequest) (*v1.GetServerResponse, error) // Gets all server sockets that exist in the process. GetServerSockets(context.Context, *v1.GetServerSocketsRequest) (*v1.GetServerSocketsResponse, error) // Returns a single Channel, or else a NOT_FOUND code. GetChannel(context.Context, *v1.GetChannelRequest) (*v1.GetChannelResponse, error) // Returns a single Subchannel, or else a NOT_FOUND code. GetSubchannel(context.Context, *v1.GetSubchannelRequest) (*v1.GetSubchannelResponse, error) // Returns a single Socket or else a NOT_FOUND code. GetSocket(context.Context, *v1.GetSocketRequest) (*v1.GetSocketResponse, error) }
ChannelzServer is the server API for Channelz service. All implementations should embed UnimplementedChannelzServer for forward compatibility
type UnimplementedChannelzServer ¶
type UnimplementedChannelzServer struct { }
UnimplementedChannelzServer should be embedded to have forward compatible implementations.
func (UnimplementedChannelzServer) GetChannel ¶
func (UnimplementedChannelzServer) GetChannel(context.Context, *v1.GetChannelRequest) (*v1.GetChannelResponse, error)
func (UnimplementedChannelzServer) GetServer ¶
func (UnimplementedChannelzServer) GetServer(context.Context, *v1.GetServerRequest) (*v1.GetServerResponse, error)
func (UnimplementedChannelzServer) GetServerSockets ¶
func (UnimplementedChannelzServer) GetServerSockets(context.Context, *v1.GetServerSocketsRequest) (*v1.GetServerSocketsResponse, error)
func (UnimplementedChannelzServer) GetServers ¶
func (UnimplementedChannelzServer) GetServers(context.Context, *v1.GetServersRequest) (*v1.GetServersResponse, error)
func (UnimplementedChannelzServer) GetSocket ¶
func (UnimplementedChannelzServer) GetSocket(context.Context, *v1.GetSocketRequest) (*v1.GetSocketResponse, error)
func (UnimplementedChannelzServer) GetSubchannel ¶
func (UnimplementedChannelzServer) GetSubchannel(context.Context, *v1.GetSubchannelRequest) (*v1.GetSubchannelResponse, error)
func (UnimplementedChannelzServer) GetTopChannels ¶
func (UnimplementedChannelzServer) GetTopChannels(context.Context, *v1.GetTopChannelsRequest) (*v1.GetTopChannelsResponse, error)
type UnsafeChannelzServer ¶
type UnsafeChannelzServer interface {
// contains filtered or unexported methods
}
UnsafeChannelzServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ChannelzServer will result in compilation errors.