Documentation
¶
Index ¶
- Variables
- type Controller
- type CosImageInfoDto
- type IpResult
- type Ipv4Detail
- type Ipv4Result
- type Ipv6Detail
- type Ipv6Result
- type KeyAuthResult
- type M
- type Service
- func (x *Service) Cos() (_ *cos.Client)
- func (x *Service) CosImageInfo(ctx context.Context, url string) (r M, err error)
- func (x *Service) CosPresigned() (_ M, err error)
- func (x *Service) GetIpv4(ctx context.Context, ip string) (_ IpResult, err error)
- func (x *Service) GetIpv6(ctx context.Context, ip string) (_ IpResult, err error)
- func (x *Service) KeyAuth(source string, id string, key string) (r *KeyAuthResult, err error)
- func (x *Service) SmsSend(ctx context.Context, sign string, tid string, params []string, phone []string) (err error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
TencentService *Service
}
func (*Controller) CosImageInfo ¶ added in v0.1.0
func (x *Controller) CosImageInfo(ctx context.Context, c *app.RequestContext)
func (*Controller) CosPresigned ¶
func (x *Controller) CosPresigned(_ context.Context, c *app.RequestContext)
type CosImageInfoDto ¶ added in v0.1.0
type CosImageInfoDto struct {
Url string `query:"url" vd:"required"`
}
type Ipv4Detail ¶ added in v0.1.14
type Ipv4Detail struct {
Continent string `bson:"continent" json:"continent"`
Country string `bson:"country" json:"country"`
Province string `bson:"prov" json:"prov"`
City string `bson:"city" json:"city"`
Owner string `bson:"owner" json:"owner"`
ISP string `bson:"isp" json:"isp"`
Areacode string `bson:"areacode" json:"areacode"`
Asnumber string `bson:"asnumber" json:"asnumber"`
Adcode string `bson:"adcode" json:"adcode"`
Zipcode string `bson:"zipcode" json:"zipcode"`
Timezone string `bson:"timezone" json:"timezone"`
Accuracy string `bson:"accuracy" json:"accuracy"`
Lat string `bson:"lat" json:"lat"`
Lng string `bson:"lng" json:"lng"`
Radius string `bson:"radius" json:"radius"`
Source string `bson:"source" json:"source"`
}
type Ipv4Result ¶ added in v0.1.14
type Ipv4Result struct {
Msg string `json:"msg"`
Success bool `json:"success"`
Code int `json:"code"`
Data struct {
OrderNo string `json:"orderNo"`
Result Ipv4Detail `json:"result"`
} `json:"data"`
}
func (*Ipv4Result) GetDetail ¶ added in v0.1.14
func (x *Ipv4Result) GetDetail() interface{}
func (*Ipv4Result) GetMsg ¶ added in v0.1.14
func (x *Ipv4Result) GetMsg() string
func (*Ipv4Result) IsSuccess ¶ added in v0.1.14
func (x *Ipv4Result) IsSuccess() bool
type Ipv6Detail ¶ added in v0.1.14
type Ipv6Detail struct {
Continent string `bson:"continent" json:"continent"`
Country string `bson:"country" json:"country"`
Province string `bson:"prov" json:"province"`
City string `bson:"city" json:"city"`
Owner string `bson:"owner" json:"owner"`
ISP string `bson:"isp" json:"isp"`
Areacode string `bson:"areacode" json:"areacode"`
Asnumber string `bson:"asnumber" json:"asnumber"`
Adcode string `bson:"adcode" json:"adcode"`
Zipcode string `bson:"zipcode" json:"zipcode"`
Timezone string `bson:"timezone" json:"timezone"`
Accuracy string `bson:"accuracy" json:"accuracy"`
Lat string `bson:"lat" json:"lat"`
Lng string `bson:"lng" json:"lng"`
Radius string `bson:"radius" json:"radius"`
Source string `bson:"source" json:"source"`
}
type Ipv6Result ¶ added in v0.1.14
type Ipv6Result struct {
Msg string `json:"msg"`
Success bool `json:"success"`
Code int `json:"code"`
Data struct {
OrderNo string `json:"orderNo"`
Result Ipv6Detail `json:"result"`
} `json:"data"`
}
func (*Ipv6Result) GetDetail ¶ added in v0.1.14
func (x *Ipv6Result) GetDetail() interface{}
func (*Ipv6Result) GetMsg ¶ added in v0.1.14
func (x *Ipv6Result) GetMsg() string
func (*Ipv6Result) IsSuccess ¶ added in v0.1.14
func (x *Ipv6Result) IsSuccess() bool
type KeyAuthResult ¶ added in v0.1.0
Click to show internal directories.
Click to hide internal directories.