Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AllowedIPAddresses ¶
func CreateGetSelfPublicBinded ¶
func CreateGetSelfPublicBinded(binded InterfacesAddrFunc) AllowedIPAddresses
type Config ¶
type Config struct { IPSelf bool `default:"true" comment:"Allow domain if it resolver for one of public IPs of this server."` IPWhiteList string `default:"" comment:"Allow domain if it resolver for one of the ips."` BlackList string `default:"" comment:"Regexp in golang syntax of blacklisted domain for issue certificate.\nThis list overrided by whitelist."` WhiteList string `` /* 162-byte string literal not displayed */ }
func (*Config) CreateDomainChecker ¶
func (c *Config) CreateDomainChecker(ctx context.Context) (DomainChecker, error)
type DomainChecker ¶
type IPList ¶
type IPList struct { Addresses AllowedIPAddresses Resolver Resolver AutoUpdateInterval time.Duration // Set zero for disable autorenew. // contains filtered or unexported fields }
func NewIPList ¶
func NewIPList(ctx context.Context, addresses AllowedIPAddresses) *IPList
After create can change settings fields, than can call StartAutoRenew struct fields MUST NOT changes after call StartAutoRenew or concurrency with usage.
func (*IPList) IsDomainAllowed ¶
func (*IPList) StartAutoRenew ¶
func (s *IPList) StartAutoRenew()
Can called most once - for autorenew internal ips
type InterfacesAddrFunc ¶
type Not ¶
type Not struct {
// contains filtered or unexported fields
}
func NewNot ¶
func NewNot(origin DomainChecker) Not
Click to show internal directories.
Click to hide internal directories.