adding username translation

This commit is contained in:
Laurent Le Houerou 2021-12-22 10:49:02 +04:00
parent c2b48e4de4
commit 2a203f3ac7

View File

@ -8,26 +8,11 @@ import (
"io"
"net/http"
"sync"
"time"
)
type Profile struct {
Address string `json:"address"`
Username string `json:"username"`
Leaderboard struct {
Global string `json:"global"`
Team string `json:"team"`
Volume int `json:"volume"`
NextRank string `json:"next_rank"`
} `json:"leaderboard"`
LeaderboardFantoken struct {
Global string `json:"global"`
Team string `json:"team"`
Volume int `json:"volume"`
NextRank string `json:"next_rank"`
} `json:"leaderboard_fantoken"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
Address string `json:"address"`
Username string `json:"username"`
}
func getUsernameFromAddress(address string) (string, error) {