Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterAntiBruteForceServer(s grpc.ServiceRegistrar, srv AntiBruteForceServer)
- type AntiBruteForceClient
- type AntiBruteForceServer
- type AuthRequest
- func (*AuthRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuthRequest) GetIp() string
- func (x *AuthRequest) GetLogin() string
- func (x *AuthRequest) GetPassword() string
- func (*AuthRequest) ProtoMessage()
- func (x *AuthRequest) ProtoReflect() protoreflect.Message
- func (x *AuthRequest) Reset()
- func (x *AuthRequest) String() string
- type AuthResponse
- type ListRequest
- type ListResponse
- type ResetRequest
- func (*ResetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ResetRequest) GetIp() string
- func (x *ResetRequest) GetLogin() string
- func (*ResetRequest) ProtoMessage()
- func (x *ResetRequest) ProtoReflect() protoreflect.Message
- func (x *ResetRequest) Reset()
- func (x *ResetRequest) String() string
- type ResetResponse
- type UnimplementedAntiBruteForceServer
- func (UnimplementedAntiBruteForceServer) AddToBlacklist(context.Context, *ListRequest) (*ListResponse, error)
- func (UnimplementedAntiBruteForceServer) AddToWhitelist(context.Context, *ListRequest) (*ListResponse, error)
- func (UnimplementedAntiBruteForceServer) CheckAuthorization(context.Context, *AuthRequest) (*AuthResponse, error)
- func (UnimplementedAntiBruteForceServer) RemoveFromBlacklist(context.Context, *ListRequest) (*ListResponse, error)
- func (UnimplementedAntiBruteForceServer) RemoveFromWhitelist(context.Context, *ListRequest) (*ListResponse, error)
- func (UnimplementedAntiBruteForceServer) ResetBucket(context.Context, *ResetRequest) (*ResetResponse, error)
- type UnsafeAntiBruteForceServer
Constants ¶
const ( AntiBruteForce_CheckAuthorization_FullMethodName = "/antibruteforce.AntiBruteForce/CheckAuthorization" AntiBruteForce_ResetBucket_FullMethodName = "/antibruteforce.AntiBruteForce/ResetBucket" AntiBruteForce_AddToBlacklist_FullMethodName = "/antibruteforce.AntiBruteForce/AddToBlacklist" AntiBruteForce_RemoveFromBlacklist_FullMethodName = "/antibruteforce.AntiBruteForce/RemoveFromBlacklist" AntiBruteForce_AddToWhitelist_FullMethodName = "/antibruteforce.AntiBruteForce/AddToWhitelist" AntiBruteForce_RemoveFromWhitelist_FullMethodName = "/antibruteforce.AntiBruteForce/RemoveFromWhitelist" )
Variables ¶
var AntiBruteForce_ServiceDesc = grpc.ServiceDesc{ ServiceName: "antibruteforce.AntiBruteForce", HandlerType: (*AntiBruteForceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CheckAuthorization", Handler: _AntiBruteForce_CheckAuthorization_Handler, }, { MethodName: "ResetBucket", Handler: _AntiBruteForce_ResetBucket_Handler, }, { MethodName: "AddToBlacklist", Handler: _AntiBruteForce_AddToBlacklist_Handler, }, { MethodName: "RemoveFromBlacklist", Handler: _AntiBruteForce_RemoveFromBlacklist_Handler, }, { MethodName: "AddToWhitelist", Handler: _AntiBruteForce_AddToWhitelist_Handler, }, { MethodName: "RemoveFromWhitelist", Handler: _AntiBruteForce_RemoveFromWhitelist_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "antibruteforce.proto", }
AntiBruteForce_ServiceDesc is the grpc.ServiceDesc for AntiBruteForce service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_antibruteforce_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAntiBruteForceServer ¶
func RegisterAntiBruteForceServer(s grpc.ServiceRegistrar, srv AntiBruteForceServer)
Types ¶
type AntiBruteForceClient ¶
type AntiBruteForceClient interface { CheckAuthorization(ctx context.Context, in *AuthRequest, opts ...grpc.CallOption) (*AuthResponse, error) ResetBucket(ctx context.Context, in *ResetRequest, opts ...grpc.CallOption) (*ResetResponse, error) AddToBlacklist(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) RemoveFromBlacklist(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) AddToWhitelist(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) RemoveFromWhitelist(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) }
AntiBruteForceClient is the client API for AntiBruteForce service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAntiBruteForceClient ¶
func NewAntiBruteForceClient(cc grpc.ClientConnInterface) AntiBruteForceClient
type AntiBruteForceServer ¶
type AntiBruteForceServer interface { CheckAuthorization(context.Context, *AuthRequest) (*AuthResponse, error) ResetBucket(context.Context, *ResetRequest) (*ResetResponse, error) AddToBlacklist(context.Context, *ListRequest) (*ListResponse, error) RemoveFromBlacklist(context.Context, *ListRequest) (*ListResponse, error) AddToWhitelist(context.Context, *ListRequest) (*ListResponse, error) RemoveFromWhitelist(context.Context, *ListRequest) (*ListResponse, error) // contains filtered or unexported methods }
AntiBruteForceServer is the server API for AntiBruteForce service. All implementations must embed UnimplementedAntiBruteForceServer for forward compatibility.
type AuthRequest ¶
type AuthRequest struct { Login string `protobuf:"bytes,1,opt,name=login,proto3" json:"login,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` Ip string `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"` // contains filtered or unexported fields }
func (*AuthRequest) Descriptor
deprecated
func (*AuthRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthRequest.ProtoReflect.Descriptor instead.
func (*AuthRequest) GetIp ¶
func (x *AuthRequest) GetIp() string
func (*AuthRequest) GetLogin ¶
func (x *AuthRequest) GetLogin() string
func (*AuthRequest) GetPassword ¶
func (x *AuthRequest) GetPassword() string
func (*AuthRequest) ProtoMessage ¶
func (*AuthRequest) ProtoMessage()
func (*AuthRequest) ProtoReflect ¶
func (x *AuthRequest) ProtoReflect() protoreflect.Message
func (*AuthRequest) Reset ¶
func (x *AuthRequest) Reset()
func (*AuthRequest) String ¶
func (x *AuthRequest) String() string
type AuthResponse ¶
type AuthResponse struct { Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` // contains filtered or unexported fields }
func (*AuthResponse) Descriptor
deprecated
func (*AuthResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthResponse.ProtoReflect.Descriptor instead.
func (*AuthResponse) GetOk ¶
func (x *AuthResponse) GetOk() bool
func (*AuthResponse) ProtoMessage ¶
func (*AuthResponse) ProtoMessage()
func (*AuthResponse) ProtoReflect ¶
func (x *AuthResponse) ProtoReflect() protoreflect.Message
func (*AuthResponse) Reset ¶
func (x *AuthResponse) Reset()
func (*AuthResponse) String ¶
func (x *AuthResponse) String() string
type ListRequest ¶
type ListRequest struct { Subnet string `protobuf:"bytes,1,opt,name=subnet,proto3" json:"subnet,omitempty"` // contains filtered or unexported fields }
func (*ListRequest) Descriptor
deprecated
func (*ListRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.
func (*ListRequest) GetSubnet ¶
func (x *ListRequest) GetSubnet() string
func (*ListRequest) ProtoMessage ¶
func (*ListRequest) ProtoMessage()
func (*ListRequest) ProtoReflect ¶
func (x *ListRequest) ProtoReflect() protoreflect.Message
func (*ListRequest) Reset ¶
func (x *ListRequest) Reset()
func (*ListRequest) String ¶
func (x *ListRequest) String() string
type ListResponse ¶
type ListResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // contains filtered or unexported fields }
func (*ListResponse) Descriptor
deprecated
func (*ListResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.
func (*ListResponse) GetSuccess ¶
func (x *ListResponse) GetSuccess() bool
func (*ListResponse) ProtoMessage ¶
func (*ListResponse) ProtoMessage()
func (*ListResponse) ProtoReflect ¶
func (x *ListResponse) ProtoReflect() protoreflect.Message
func (*ListResponse) Reset ¶
func (x *ListResponse) Reset()
func (*ListResponse) String ¶
func (x *ListResponse) String() string
type ResetRequest ¶
type ResetRequest struct { Login string `protobuf:"bytes,1,opt,name=login,proto3" json:"login,omitempty"` Ip string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"` // contains filtered or unexported fields }
func (*ResetRequest) Descriptor
deprecated
func (*ResetRequest) Descriptor() ([]byte, []int)
Deprecated: Use ResetRequest.ProtoReflect.Descriptor instead.
func (*ResetRequest) GetIp ¶
func (x *ResetRequest) GetIp() string
func (*ResetRequest) GetLogin ¶
func (x *ResetRequest) GetLogin() string
func (*ResetRequest) ProtoMessage ¶
func (*ResetRequest) ProtoMessage()
func (*ResetRequest) ProtoReflect ¶
func (x *ResetRequest) ProtoReflect() protoreflect.Message
func (*ResetRequest) Reset ¶
func (x *ResetRequest) Reset()
func (*ResetRequest) String ¶
func (x *ResetRequest) String() string
type ResetResponse ¶
type ResetResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // contains filtered or unexported fields }
func (*ResetResponse) Descriptor
deprecated
func (*ResetResponse) Descriptor() ([]byte, []int)
Deprecated: Use ResetResponse.ProtoReflect.Descriptor instead.
func (*ResetResponse) GetSuccess ¶
func (x *ResetResponse) GetSuccess() bool
func (*ResetResponse) ProtoMessage ¶
func (*ResetResponse) ProtoMessage()
func (*ResetResponse) ProtoReflect ¶
func (x *ResetResponse) ProtoReflect() protoreflect.Message
func (*ResetResponse) Reset ¶
func (x *ResetResponse) Reset()
func (*ResetResponse) String ¶
func (x *ResetResponse) String() string
type UnimplementedAntiBruteForceServer ¶
type UnimplementedAntiBruteForceServer struct{}
UnimplementedAntiBruteForceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedAntiBruteForceServer) AddToBlacklist ¶
func (UnimplementedAntiBruteForceServer) AddToBlacklist(context.Context, *ListRequest) (*ListResponse, error)
func (UnimplementedAntiBruteForceServer) AddToWhitelist ¶
func (UnimplementedAntiBruteForceServer) AddToWhitelist(context.Context, *ListRequest) (*ListResponse, error)
func (UnimplementedAntiBruteForceServer) CheckAuthorization ¶
func (UnimplementedAntiBruteForceServer) CheckAuthorization(context.Context, *AuthRequest) (*AuthResponse, error)
func (UnimplementedAntiBruteForceServer) RemoveFromBlacklist ¶
func (UnimplementedAntiBruteForceServer) RemoveFromBlacklist(context.Context, *ListRequest) (*ListResponse, error)
func (UnimplementedAntiBruteForceServer) RemoveFromWhitelist ¶
func (UnimplementedAntiBruteForceServer) RemoveFromWhitelist(context.Context, *ListRequest) (*ListResponse, error)
func (UnimplementedAntiBruteForceServer) ResetBucket ¶
func (UnimplementedAntiBruteForceServer) ResetBucket(context.Context, *ResetRequest) (*ResetResponse, error)
type UnsafeAntiBruteForceServer ¶
type UnsafeAntiBruteForceServer interface {
// contains filtered or unexported methods
}
UnsafeAntiBruteForceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AntiBruteForceServer will result in compilation errors.