Documentation ¶
Index ¶
- Constants
- func CheckValidMode(mode string, local bool) (hubpb.HostsReq_Mode, string, error)
- func GetHostSettings(ctx context.Context, addr, peerId string) (*nodepb.Node_Settings, error)
- func QueryHosts(ctx context.Context, node *core.IpfsNode, mode string) ([]*hubpb.Host, error)
- func QueryStats(ctx context.Context, node *core.IpfsNode) (*hubpb.StatsResp, error)
Constants ¶
View Source
const ( HubModeAll = "all" // special all case (for local reading) AllModeHelpText = `` /* 217-byte string literal not displayed */ )
Variables ¶
This section is empty.
Functions ¶
func CheckValidMode ¶
CheckValidMode takes in a raw mode string and returns the host request mode type if valid, and if local is true and mode is empty, return prefix for storing such information into local datastore.
func GetHostSettings ¶
func QueryHosts ¶
QueryHosts queries the BTFS-Hub to retrieve the latest list of hosts info according to a certain mode.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.