Documentation ¶ Index ¶ Variables type Verifier func New(config config.YiDunConfig) (*Verifier, error) func (n *Verifier) Verify(validate, user string) (*VerifyResult, error) type VerifyResult Constants ¶ This section is empty. Variables ¶ View Source var ( CaptchaIdIsEmpty = errors.New("captchaId is empty") SecretIdIsEmpty = errors.New("secretId is empty") SecretKeyIsEmpty = errors.New("secretKey is empty") ValidateDataIsEmpty = errors.New("validate data is empty") ) Functions ¶ This section is empty. Types ¶ type Verifier ¶ type Verifier struct { // contains filtered or unexported fields } func New ¶ func New(config config.YiDunConfig) (*Verifier, error) func (*Verifier) Verify ¶ func (n *Verifier) Verify(validate, user string) (*VerifyResult, error) type VerifyResult ¶ type VerifyResult struct { Err int `json:"error"` Msg string `json:"msg"` Result bool `json:"result"` Phone string `json:"phone"` ExtraData string `json:"extraData"` } Source Files ¶ View all Source files http.go sdk.go Click to show internal directories. Click to hide internal directories.