Documentation ¶
Index ¶
- Constants
- type PermissionByRedis
- func (PermissionByRedis) CaddyModule() caddy.ModuleInfo
- func (m PermissionByRedis) CertificateAllowed(ctx context.Context, name string) error
- func (m *PermissionByRedis) Cleanup() error
- func (m *PermissionByRedis) Provision(ctx caddy.Context) error
- func (m *PermissionByRedis) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
- func (m *PermissionByRedis) Validate() error
Constants ¶
View Source
const ( DefaultRedisAddress = "127.0.0.1:6379" DefaultRedisUsername = "default" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PermissionByRedis ¶
type PermissionByRedis struct { Client *redis.Client WwwRegex *regexp.Regexp Address string `json:"address"` Username string `json:"username"` Password string `json:"password"` Prefix string `json:"prefix"` // contains filtered or unexported fields }
func (PermissionByRedis) CaddyModule ¶
func (PermissionByRedis) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
func (PermissionByRedis) CertificateAllowed ¶
func (m PermissionByRedis) CertificateAllowed(ctx context.Context, name string) error
func (*PermissionByRedis) Cleanup ¶
func (m *PermissionByRedis) Cleanup() error
func (*PermissionByRedis) Provision ¶
func (m *PermissionByRedis) Provision(ctx caddy.Context) error
Provision implements the caddy.Provisioner interface.
func (*PermissionByRedis) UnmarshalCaddyfile ¶
func (m *PermissionByRedis) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
UnmarshalCaddyfile implements caddyfile.Unmarshaler. Syntax:
ask_redis <secret>
func (*PermissionByRedis) Validate ¶
func (m *PermissionByRedis) Validate() error
Click to show internal directories.
Click to hide internal directories.