Documentation ¶
Index ¶
- type Handler
- func (u *Handler) AddToBlacklist(ctx context.Context, subnet string) error
- func (u *Handler) AddToWhitelist(ctx context.Context, subnet string) error
- func (u *Handler) Auth(ctx context.Context, login string, password string, ip string) error
- func (u *Handler) Drop(ctx context.Context, login string, ip string) error
- func (u *Handler) RemoveFromBlacklist(ctx context.Context, subnet string) error
- func (u *Handler) RemoveFromWhitelist(ctx context.Context, subnet string) error
- type Usage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) AddToBlacklist ¶
func (*Handler) AddToWhitelist ¶
func (*Handler) RemoveFromBlacklist ¶
type Usage ¶
type Usage interface { Auth(ctx context.Context, login string, password string, ip string) error Drop(ctx context.Context, login string, ip string) error AddToBlacklist(ctx context.Context, subnet string) error RemoveFromBlacklist(ctx context.Context, subnet string) error AddToWhitelist(ctx context.Context, subnet string) error RemoveFromWhitelist(ctx context.Context, subnet string) error }
Click to show internal directories.
Click to hide internal directories.