Skip to content

yuhuajing/FilecoinGateWayThroughSaturnClient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

IpfsGateWay

Get the CID data through the Saturn CDN network

go build main.go

./main QmYuvnFKLi8cf7KjZn9NKQvYKamSJ9V9MZRyfakkRL5pPv ./test.txt

获取saturn nodes // func getOrchestratorEndpoint() []string { // DefaultOrchestratorEndpoint := "https://orchestrator.strn.pl/nodes/nearby?count=1000" // OrchestratorClient := http.DefaultClient // resp, err := OrchestratorClient.Get(DefaultOrchestratorEndpoint) // if err != nil { // fmt.Println(err) // } // defer resp.Body.Close() // responses := make([]string, 0) // if err := json.NewDecoder(resp.Body).Decode(&responses); err != nil { // fmt.Println(err) // } // fmt.Print("got backends from orchestrator", "cnt", len(responses), "endpoint", DefaultOrchestratorEndpoint) // return responses // }

About

Get the CID data through the Saturn CDN network

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages