Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/segmentio/kafka-go
/ IsZero
Method
IsZero
protocol/cluster.go:37–39 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
35
}
36
37
func
(c Cluster) IsZero() bool {
38
return
c.ClusterID ==
""
&& c.Controller == 0 && len(c.Brokers) == 0 && len(c.Topics) == 0
39
}
40
41
func
(c Cluster) Format(w fmt.State, _ rune) {
42
tw := new(tabwriter.Writer)
Callers
15
Read
Method · 0.80
Write
Method · 0.80
connect
Method · 0.80
TestClientPipeline
Function · 0.80
writeCompressedMessages
Method · 0.80
ApiVersions
Method · 0.80
timestamp
Function · 0.80
deadlineToTimeout
Function · 0.80
adjustDeadlineForRTT
Function · 0.80
checkTimeoutErr
Function · 0.80
TestClientListOffsets
Function · 0.80
writeBatch
Method · 0.80
Calls
no outgoing calls
Tested by
5
Read
Method · 0.64
Write
Method · 0.64
TestClientPipeline
Function · 0.64
TestClientListOffsets
Function · 0.64
TestDefaultSignTime
Function · 0.64