Documentation
¶
Index ¶
- type Server
- func (s *Server) AddToBlacklist(ctx context.Context, req *api.AddToBlacklistRequest) (*api.AddToBlacklistResponse, error)
- func (s *Server) AddToWhitelist(ctx context.Context, req *api.AddToWhitelistRequest) (*api.AddToWhitelistResponse, error)
- func (s *Server) Auth(ctx context.Context, req *api.AuthRequest) (*api.AuthResponse, error)
- func (s *Server) Drop(ctx context.Context, req *api.DropRequest) (*api.DropResponse, error)
- func (s *Server) RemoveFromBlacklist(ctx context.Context, req *api.RemoveFromBlacklistRequest) (*api.RemoveFromBlacklistResponse, error)
- func (s *Server) RemoveFromWhitelist(ctx context.Context, req *api.RemoveFromWhitelistRequest) (*api.RemoveFromWhitelistResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { api.UnimplementedAntiBruteforceServer // contains filtered or unexported fields }
func (*Server) AddToBlacklist ¶
func (s *Server) AddToBlacklist(ctx context.Context, req *api.AddToBlacklistRequest) (*api.AddToBlacklistResponse, error)
AddToBlacklist method adding suspicious subnet to blacklist
func (*Server) AddToWhitelist ¶
func (s *Server) AddToWhitelist(ctx context.Context, req *api.AddToWhitelistRequest) (*api.AddToWhitelistResponse, error)
AddToWhitelist method adding subnet to whitelist
func (*Server) Auth ¶
func (s *Server) Auth(ctx context.Context, req *api.AuthRequest) (*api.AuthResponse, error)
Auth method authorising request
func (*Server) Drop ¶
func (s *Server) Drop(ctx context.Context, req *api.DropRequest) (*api.DropResponse, error)
Drop method dropping request
func (*Server) RemoveFromBlacklist ¶
func (s *Server) RemoveFromBlacklist(ctx context.Context, req *api.RemoveFromBlacklistRequest) (*api.RemoveFromBlacklistResponse, error)
RemoveFromBlacklist method removing subnet from blacklist
func (*Server) RemoveFromWhitelist ¶
func (s *Server) RemoveFromWhitelist(ctx context.Context, req *api.RemoveFromWhitelistRequest) (*api.RemoveFromWhitelistResponse, error)
RemoveFromWhitelist method removing subnet from whitelist
Click to show internal directories.
Click to hide internal directories.