-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Get network info * Add get network info to crawler, using the new shared strategy * NetworkName/Prefix are optional
- Loading branch information
1 parent
bee711a
commit 068ad4b
Showing
4 changed files
with
65 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package rpc | ||
|
||
import ( | ||
"github.com/samber/mo" | ||
) | ||
|
||
// GetNetworkInfoOptions options for the get_network_info rpc calls | ||
type GetNetworkInfoOptions struct {} | ||
|
||
// GetNetworkInfoResponse common get_network_info response from all RPC services | ||
type GetNetworkInfoResponse struct { | ||
Response | ||
NetworkName mo.Option[string] `json:"network_name"` | ||
NetworkPrefix mo.Option[string] `json:"network_prefix"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters