๐Ÿ“ฆ yanecc / check-domain

๐Ÿ“„ struct.go ยท 26 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26package main

type Config struct {
	ApiKey       string
	AccurateMode bool
	UseWhois     bool
}

type Check struct {
	Domain struct {
		Availability string `json:"domainAvailability"`
		Name         string `json:"domainName"`
	} `json:"DomainInfo"`
}

type Balance struct {
	Data []struct {
		ProductID int `json:"product_id"`
		Product   struct {
			ID   int    `json:"id"`
			Name string `json:"name"`
		} `json:"product"`
		Credits int `json:"credits"`
	} `json:"data"`
}