Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository interface { BlacklistAdd(ctx context.Context, subnet string) error BlacklistRemove(ctx context.Context, subnet string) error WhitelistAdd(ctx context.Context, subnet string) error WhitelistRemove(ctx context.Context, subnet string) error FindIPInList(ctx context.Context, ip string) (string, error) }
Repository interface contain methods to work with storage
type Usecase ¶
type Usecase interface { Check(ctx context.Context, login string, password string, ip string) error Reset(ctx context.Context, login string, ip string) error BlacklistAdd(ctx context.Context, subnet string) error BlacklistRemove(ctx context.Context, subnet string) error WhitelistAdd(ctx context.Context, subnet string) error WhitelistRemove(ctx context.Context, subnet string) error }
Usecase interface contain main antibruteforce methods
Click to show internal directories.
Click to hide internal directories.