server

package
v0.0.0-...-bdbaece Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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 NewServer

func NewServer(usage usage.Usage, logger *zap.Logger) *Server

func (*Server) AddToBlacklist

AddToBlacklist method adding suspicious subnet to blacklist

func (*Server) AddToWhitelist

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

RemoveFromBlacklist method removing subnet from blacklist

func (*Server) RemoveFromWhitelist

RemoveFromWhitelist method removing subnet from whitelist

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL