Documentation
¶
Index ¶
- type ChallengeCache
- func (c *ChallengeCache) CleanExpired()
- func (c *ChallengeCache) CountActive() int
- func (c *ChallengeCache) DebugChallenges() []debugChallengeInfo
- func (c *ChallengeCache) Delete(token string)
- func (c *ChallengeCache) Get(token string) (string, bool)
- func (c *ChallengeCache) GetDomain(token string) (string, bool)
- func (c *ChallengeCache) Set(token, response, domain string, ttl time.Duration)
- type HTTPServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChallengeCache ¶
type ChallengeCache struct {
// contains filtered or unexported fields
}
ChallengeCache 存储 ACME challenge token 和 response 的映射
func (*ChallengeCache) CleanExpired ¶
func (c *ChallengeCache) CleanExpired()
CleanExpired 清理所有过期的 challenge
func (*ChallengeCache) CountActive ¶ added in v0.6.0
func (c *ChallengeCache) CountActive() int
CountActive 返回当前未过期的 challenge 数量。
func (*ChallengeCache) DebugChallenges ¶ added in v0.6.0
func (c *ChallengeCache) DebugChallenges() []debugChallengeInfo
DebugChallenges 返回当前有效 challenge 的脱敏调试信息。
func (*ChallengeCache) Get ¶
func (c *ChallengeCache) Get(token string) (string, bool)
Get 获取 challenge response
type HTTPServer ¶
type HTTPServer struct {
// contains filtered or unexported fields
}
HTTPServer HTTP-01 验证服务器
func (*HTTPServer) RemoveChallenge ¶
func (s *HTTPServer) RemoveChallenge(token string)
RemoveChallenge 移除 challenge
func (*HTTPServer) SetChallenge ¶
func (s *HTTPServer) SetChallenge(token, response, domain string)
SetChallenge 设置 challenge token 和 response,10 分钟后过期
Click to show internal directories.
Click to hide internal directories.