Documentation
¶
Overview ¶
Package clients provides functions for invoking the APIs of the verification server
Index ¶
- func GetCertificate(ctx context.Context, hostname, apikey, token, hmac string, ...) (*api.VerificationCertificateRequest, *api.VerificationCertificateResponse, ...)
- func GetToken(ctx context.Context, hostname, apikey, code string, timeout time.Duration) (*api.VerifyCodeRequest, *api.VerifyCodeResponse, error)
- func IssueCode(ctx context.Context, hostname string, apiKey, reportType, symptomDate string, ...) (*api.IssueCodeRequest, *api.IssueCodeResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCertificate ¶
func GetCertificate(ctx context.Context, hostname, apikey, token, hmac string, timeout time.Duration) (*api.VerificationCertificateRequest, *api.VerificationCertificateResponse, error)
GetCertificate exchanges a verification token + HMAC for a verification certificate.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.