Versions in this module Expand all Collapse all v1 v1.0.0 Nov 25, 2020 Changes in this version + const ClientTypeH5 + const ClientTypeNative + const ClientTypeUnknown + const ClientTypeWeb + const GeetestChallenge + const GeetestSeccode + const GeetestServerStatusSessionKey + const GeetestValidate + var DefaultClientOptions = ClientOptions + type Client struct + func NewClient(geetestID string, geetestKey string, opts ...Option) *Client + func (g *Client) BuildChallenge(challenge string, digestmod string) (enchallenge string) + func (g *Client) Register(digestmod string, userID ...string) (res *RegisterResponse, err error) + func (g *Client) Validate(challenge, seccode string, userID ...string) (res *ValidateResponse, err error) + type ClientOptions struct + APIURL string + ClientType string + HTTPTimeout int + IPAddress string + JSONFormat string + RegisterURL string + ValidteURL string + Version string + type Option func(*ClientOptions) + func OptionAPIURL(v string) Option + func OptionRegisterURL(v string) Option + type RegisterRequest struct + Digestmod string + Gt string + func (req *RegisterRequest) Validation() (err error) + type RegisterResponse struct + Challenge string + type RegisterResponseForWeb struct + Challenge string + Gt string + NewCaptcha string + Success int + type RequestComm struct + ClientType string + IPAddress string + JSONFormat string + Sdk string + UserID string + func (req *RequestComm) Validation() (err error) + type ValidateRequest struct + CaptchaID string + Challenge string + Seccode string + func (req *ValidateRequest) Validation() (err error) + type ValidateResponse struct + Seccode string