Documentation ¶
Overview ¶
Package filling is the icp filling number
Index ¶
- type AuthParams
- type AuthorizeRequest
- type AuthorizeResponse
- type DomainInfo
- type Filling
- func (i *Filling) DomainFilling(ctx context.Context, req *QueryRequest) (*QueryResponse, error)
- func (i *Filling) DomainTLD(ctx context.Context, link string, level int) (resp *tld.DomainTLDResp, err error)
- func (i *Filling) QueryFilling(ctx context.Context, req *QueryRequest) (*QueryResponse, error)
- func (i *Filling) String() string
- type Option
- type ParamInput
- type QueryParams
- type QueryRequest
- type QueryResp
- type QueryResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthParams ¶
type AuthParams struct { Business string `json:"bussiness"` Expire int64 `json:"expire"` Refresh string `json:"refresh"` }
AuthParams auth params
type AuthorizeRequest ¶
type AuthorizeRequest struct { AuthKey string `json:"authKey"` Timestamp string `json:"timeStamp"` }
AuthorizeRequest authorize request
func (*AuthorizeRequest) String ¶
func (r *AuthorizeRequest) String() string
String return authorizes request string
type AuthorizeResponse ¶
type AuthorizeResponse struct { Code int `json:"code"` Msg string `json:"msg"` Success bool `json:"success"` Params *AuthParams `json:"params"` }
AuthorizeResponse authorize response
type DomainInfo ¶
type DomainInfo struct { ContentTypeName string `json:"contentTypeName"` Domain string `json:"domain"` DomainID int64 `json:"domainId"` HomeURL string `json:"homeUrl"` LeaderName string `json:"leaderName"` LimitAccess string `json:"limitAccess"` MainID int64 `json:"mainId"` MainLicence string `json:"mainLicence"` NatureName string `json:"natureName"` ServiceID int64 `json:"serviceId"` ServiceLicence string `json:"serviceLicence"` ServiceName string `json:"serviceName"` UnitName string `json:"unitName"` UpdateRecordTime string `json:"updateRecordTime"` }
DomainInfo domain info
type Filling ¶
type Filling struct {
// contains filtered or unexported fields
}
Filling is the icp filling number object
func (*Filling) DomainFilling ¶
func (i *Filling) DomainFilling(ctx context.Context, req *QueryRequest) (*QueryResponse, error)
DomainFilling query domain filling number
func (*Filling) DomainTLD ¶ added in v1.3.0
func (i *Filling) DomainTLD(ctx context.Context, link string, level int) (resp *tld.DomainTLDResp, err error)
DomainTLD is a struct that contains the TLD and the domain name
func (*Filling) QueryFilling ¶
func (i *Filling) QueryFilling(ctx context.Context, req *QueryRequest) (*QueryResponse, error)
QueryFilling query domain filling number
type Option ¶
type Option func(o *options)
Option is the option for logger.
func WithLogger ¶ added in v1.5.0
WithLogger is the option for logger.
func WithRequest ¶ added in v1.5.0
WithRequest is the option for request.
type ParamInput ¶
type ParamInput struct { AuthorizeRequest *AuthorizeRequest QueryRequest *QueryRequest Path string ContentType string }
ParamInput request params
type QueryParams ¶
type QueryParams struct { EndRow int `json:"endRow"` FirstPage int `json:"firstPage"` HasNextPage bool `json:"hasNextPage"` HasPreviousPage bool `json:"hasPreviousPage"` IsFirstPage bool `json:"isFirstPage"` IsLastPage bool `json:"isLastPage"` LastPage int `json:"lastPage"` List []*DomainInfo `json:"list"` NextPage int `json:"nextPage"` PageNum int `json:"pageNum"` PageSize int `json:"pageSize"` Pages int `json:"pages"` PrePage int `json:"prePage"` Size int `json:"size"` StartRow int `json:"startRow"` Total int `json:"total"` }
QueryParams query params
func (*QueryParams) NavigatePageNumsString ¶
func (r *QueryParams) NavigatePageNumsString() string
NavigatePageNumsString Navigate Page Nums String
func (*QueryParams) ParamsListString ¶
func (r *QueryParams) ParamsListString() string
ParamsListString return params list to string
func (*QueryParams) String ¶
func (r *QueryParams) String() string
String return query params string
type QueryRequest ¶
type QueryRequest struct { PageNum string `json:"pageNum"` PageSize string `json:"pageSize"` UnitName string `json:"unitName" description:"unit name"` Link string `json:"link" description:"link"` }
QueryRequest query request
func (*QueryRequest) String ¶
func (r *QueryRequest) String() string
String return query request string
type QueryResp ¶
type QueryResp struct { IcpNumber string `json:"icp_number"` IcpName string `json:"icp_name"` Attr string `json:"attr"` Date string `json:"date"` }
QueryResp is a struct for icp data
type QueryResponse ¶
type QueryResponse struct { Code int `json:"code"` Msg string `json:"msg"` Success bool `json:"success"` Params *QueryParams `json:"params"` }
QueryResponse query response
func (*QueryResponse) String ¶
func (r *QueryResponse) String() string
String return query response string