Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cobra.Command{ Use: "solscan", Example: "ENDPOINTS=https://api.solscan.io/collection?sortBy=volume LIMIT=500 nftkitten solscan >.out.json; [ $? -eq 0 ] && mv .out.json out.json || rm .out.json", Run: func(cmd *cobra.Command, args []string) { if endpoints, _ := os.LookupEnv("ENDPOINTS"); endpoints == "" { log.Fatalln("No ENDPOINTS") } else { limit := lookupEnvToI("LIMIT", 0) if rate := lookupEnvToI("RATE", 5); rate <= 0 { execute(strings.Split(endpoints, "\n"), limit, 5) } else { execute(strings.Split(endpoints, "\n"), limit, rate) } } }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.