Versions in this module Expand all Collapse all v0 v0.2.3 Feb 27, 2015 v0.2.2 Feb 27, 2015 Changes in this version + const HopTimeoutDecrement + const ResponseTimeout + var ErrAlreadyRunning = errors.New("diagnostic with that ID already running") + var ProtocolDiag protocol.ID = "/ipfs/diagnostics" + func GetGraphJson(dinfo []*DiagInfo) []byte + type DiagInfo struct + BwIn uint64 + BwOut uint64 + CodeVersion string + Connections []connDiagInfo + ID string + Keys []string + LifeSpan time.Duration + func (di *DiagInfo) Marshal() []byte + type Diagnostics struct + func NewDiagnostics(self peer.ID, h host.Host) *Diagnostics + func (d *Diagnostics) GetDiagnostic(timeout time.Duration) ([]*DiagInfo, error) + func (d *Diagnostics) HandleMessage(ctx context.Context, s inet.Stream) error + type DotWriter struct + W io.Writer + func (w *DotWriter) Write(buf []byte) (n int, err error) + func (w *DotWriter) WriteEdge(i, j int, di *DiagInfo, conn connDiagInfo) error + func (w *DotWriter) WriteGraph(dinfo []*DiagInfo) error + func (w *DotWriter) WriteNetHeader(dinfo []*DiagInfo) error + func (w *DotWriter) WriteNode(i int, di *DiagInfo) error + func (w *DotWriter) WriteS(s string) (n int, err error)