mirror of
https://github.com/libp2p/go-libp2p-core.git
synced 2025-01-28 04:30:08 +08:00
22 lines
778 B
Go
22 lines
778 B
Go
package introspection
|
|
|
|
import (
|
|
"github.com/libp2p/go-libp2p/core/introspection"
|
|
)
|
|
|
|
// Introspector is the interface to be satisfied by components that are capable
|
|
// of spelunking the state of the system, and representing in accordance with
|
|
// the introspection schema.
|
|
//
|
|
// It's very rare to build a custom implementation of this interface;
|
|
// it exists mostly for mocking. In most cases, you'll end up using the
|
|
// default introspector.
|
|
//
|
|
// Introspector implementations are usually injected in introspection endpoints
|
|
// to serve the data to clients, but they can also be used separately for
|
|
// embedding or testing.
|
|
//
|
|
// Experimental.
|
|
// Deprecated: use github.com/libp2p/go-libp2p/core/introspection.Introspector instead
|
|
type Introspector = introspection.Introspector
|