protoconv
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package protoconv supports converting between the internal channelzimplementation and the protobuf representation of all the entities.
Index¶
- func GetChannel(id int64) (*channelzpb.Channel, error)
- func GetServer(id int64) (*channelzpb.Server, error)
- func GetServerSockets(serverID, startID int64, len int) (sockets []*channelzpb.SocketRef, end bool)
- func GetServers(startID int64, len int) (servers []*channelzpb.Server, end bool)
- func GetSocket(id int64) (*channelzpb.Socket, error)
- func GetSubChannel(id int64) (*channelzpb.Subchannel, error)
- func GetTopChannels(startID int64, len int) (channels []*channelzpb.Channel, end bool)
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
funcGetChannel¶
func GetChannel(idint64) (*channelzpb.Channel,error)
GetChannel returns the protobuf representation of the channel with the givenID.
funcGetServer¶
func GetServer(idint64) (*channelzpb.Server,error)
GetServer returns the protobuf representation of the server with the givenID.
funcGetServerSockets¶
func GetServerSockets(serverID, startIDint64, lenint) (sockets []*channelzpb.SocketRef, endbool)
GetServerSockets returns the protobuf representation of the server (listen)sockets starting at startID (max of len), and returns end=true if no serversockets exist with higher IDs.
funcGetServers¶
func GetServers(startIDint64, lenint) (servers []*channelzpb.Server, endbool)
GetServers returns the protobuf representation of the servers starting atstartID (max of len), and returns end=true if no servers exist with higherIDs.
funcGetSocket¶
func GetSocket(idint64) (*channelzpb.Socket,error)
GetSocket returns the protobuf representation of the socket with the givenID.
funcGetSubChannel¶
func GetSubChannel(idint64) (*channelzpb.Subchannel,error)
GetSubChannel returns the protobuf representation of the subchannel with thegiven ID.
funcGetTopChannels¶
func GetTopChannels(startIDint64, lenint) (channels []*channelzpb.Channel, endbool)
GetTopChannels returns the protobuf representation of the channels startingat startID (max of len), and returns end=true if no top channels exist withhigher IDs.
Types¶
This section is empty.