Documentation ¶
Index ¶
- Constants
- type Config
- type MemStore
- func (s *MemStore) AutoCleanup()
- func (s *MemStore) Clean()
- func (s *MemStore) GetACMEChallengeTokens(_ context.Context, id uuid.UUID) ([]string, error)
- func (s *MemStore) IncrementStat(_ context.Context, key string, value int64)
- func (s *MemStore) SetACMEChallengeTokens(_ context.Context, id uuid.UUID, tokens []string) error
- type RedisStore
- type Server
- type StaticRecord
- type Store
Constants ¶
View Source
const Version = "1.0.0"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { RootDomain string `mapstructure:"root_domain"` APIHost string `mapstructure:"api_host"` APIListenHTTP string `mapstructure:"api_listen_http"` APIListenHTTPS string `mapstructure:"api_listen_https"` APIBehindProxy bool `mapstructure:"api_behind_proxy"` CertFile string `mapstructure:"tls_cert"` KeyFile string `mapstructure:"tls_key"` ACMEEnabled bool `mapstructure:"acme_enabled"` ACMEContact string `mapstructure:"acme_contact"` StaticRecords map[string]StaticRecord `mapstructure:"static_records"` TokenKey string `mapstructure:"token_key"` Store string `mapstructure:"store"` RedisAddr string `mapstructure:"redis_addr"` RedisUser string `mapstructure:"redis_user"` RedisPass string `mapstructure:"redis_pass"` RedisDB int `mapstructure:"redis_db"` }
type MemStore ¶
type MemStore struct {
// contains filtered or unexported fields
}
func NewMemStore ¶
func NewMemStore(logger *zap.SugaredLogger) (*MemStore, error)
func (*MemStore) AutoCleanup ¶
func (s *MemStore) AutoCleanup()
func (*MemStore) GetACMEChallengeTokens ¶
func (*MemStore) IncrementStat ¶
type RedisStore ¶
type RedisStore struct {
// contains filtered or unexported fields
}
func NewRedisStore ¶
func NewRedisStore(cfg Config) *RedisStore
func (*RedisStore) GetACMEChallengeTokens ¶
func (*RedisStore) IncrementStat ¶
func (s *RedisStore) IncrementStat(_ context.Context, _ string, _ int64)
func (*RedisStore) SetACMEChallengeTokens ¶
type StaticRecord ¶
type StaticRecord struct {
A []string
}
Click to show internal directories.
Click to hide internal directories.