api

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAntiBruteForceServiceServer

func RegisterAntiBruteForceServiceServer(s *grpc.Server, srv AntiBruteForceServiceServer)

Types

type AddToBlackListRequest

type AddToBlackListRequest struct {
	Net                  string   `protobuf:"bytes,1,opt,name=net,proto3" json:"net,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AddToBlackListRequest) Descriptor

func (*AddToBlackListRequest) Descriptor() ([]byte, []int)

func (*AddToBlackListRequest) GetNet

func (m *AddToBlackListRequest) GetNet() string

func (*AddToBlackListRequest) ProtoMessage

func (*AddToBlackListRequest) ProtoMessage()

func (*AddToBlackListRequest) Reset

func (m *AddToBlackListRequest) Reset()

func (*AddToBlackListRequest) String

func (m *AddToBlackListRequest) String() string

func (*AddToBlackListRequest) XXX_DiscardUnknown

func (m *AddToBlackListRequest) XXX_DiscardUnknown()

func (*AddToBlackListRequest) XXX_Marshal

func (m *AddToBlackListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AddToBlackListRequest) XXX_Merge

func (m *AddToBlackListRequest) XXX_Merge(src proto.Message)

func (*AddToBlackListRequest) XXX_Size

func (m *AddToBlackListRequest) XXX_Size() int

func (*AddToBlackListRequest) XXX_Unmarshal

func (m *AddToBlackListRequest) XXX_Unmarshal(b []byte) error

type AddToBlackListResponse

type AddToBlackListResponse struct {
	Error                string   `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AddToBlackListResponse) Descriptor

func (*AddToBlackListResponse) Descriptor() ([]byte, []int)

func (*AddToBlackListResponse) GetError

func (m *AddToBlackListResponse) GetError() string

func (*AddToBlackListResponse) ProtoMessage

func (*AddToBlackListResponse) ProtoMessage()

func (*AddToBlackListResponse) Reset

func (m *AddToBlackListResponse) Reset()

func (*AddToBlackListResponse) String

func (m *AddToBlackListResponse) String() string

func (*AddToBlackListResponse) XXX_DiscardUnknown

func (m *AddToBlackListResponse) XXX_DiscardUnknown()

func (*AddToBlackListResponse) XXX_Marshal

func (m *AddToBlackListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AddToBlackListResponse) XXX_Merge

func (m *AddToBlackListResponse) XXX_Merge(src proto.Message)

func (*AddToBlackListResponse) XXX_Size

func (m *AddToBlackListResponse) XXX_Size() int

func (*AddToBlackListResponse) XXX_Unmarshal

func (m *AddToBlackListResponse) XXX_Unmarshal(b []byte) error

type AddToWhiteListRequest

type AddToWhiteListRequest struct {
	Net                  string   `protobuf:"bytes,1,opt,name=net,proto3" json:"net,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AddToWhiteListRequest) Descriptor

func (*AddToWhiteListRequest) Descriptor() ([]byte, []int)

func (*AddToWhiteListRequest) GetNet

func (m *AddToWhiteListRequest) GetNet() string

func (*AddToWhiteListRequest) ProtoMessage

func (*AddToWhiteListRequest) ProtoMessage()

func (*AddToWhiteListRequest) Reset

func (m *AddToWhiteListRequest) Reset()

func (*AddToWhiteListRequest) String

func (m *AddToWhiteListRequest) String() string

func (*AddToWhiteListRequest) XXX_DiscardUnknown

func (m *AddToWhiteListRequest) XXX_DiscardUnknown()

func (*AddToWhiteListRequest) XXX_Marshal

func (m *AddToWhiteListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AddToWhiteListRequest) XXX_Merge

func (m *AddToWhiteListRequest) XXX_Merge(src proto.Message)

func (*AddToWhiteListRequest) XXX_Size

func (m *AddToWhiteListRequest) XXX_Size() int

func (*AddToWhiteListRequest) XXX_Unmarshal

func (m *AddToWhiteListRequest) XXX_Unmarshal(b []byte) error

type AddToWhiteListResponse

type AddToWhiteListResponse struct {
	Error                string   `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AddToWhiteListResponse) Descriptor

func (*AddToWhiteListResponse) Descriptor() ([]byte, []int)

func (*AddToWhiteListResponse) GetError

func (m *AddToWhiteListResponse) GetError() string

func (*AddToWhiteListResponse) ProtoMessage

func (*AddToWhiteListResponse) ProtoMessage()

func (*AddToWhiteListResponse) Reset

func (m *AddToWhiteListResponse) Reset()

func (*AddToWhiteListResponse) String

func (m *AddToWhiteListResponse) String() string

func (*AddToWhiteListResponse) XXX_DiscardUnknown

func (m *AddToWhiteListResponse) XXX_DiscardUnknown()

func (*AddToWhiteListResponse) XXX_Marshal

func (m *AddToWhiteListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AddToWhiteListResponse) XXX_Merge

func (m *AddToWhiteListResponse) XXX_Merge(src proto.Message)

func (*AddToWhiteListResponse) XXX_Size

func (m *AddToWhiteListResponse) XXX_Size() int

func (*AddToWhiteListResponse) XXX_Unmarshal

func (m *AddToWhiteListResponse) XXX_Unmarshal(b []byte) error

type AntiBruteForceServiceClient

type AntiBruteForceServiceClient interface {
	CheckAuth(ctx context.Context, in *CheckAuthRequest, opts ...grpc.CallOption) (*CheckAuthResponse, error)
	AddToWhiteList(ctx context.Context, in *AddToWhiteListRequest, opts ...grpc.CallOption) (*AddToWhiteListResponse, error)
	AddToBlackList(ctx context.Context, in *AddToBlackListRequest, opts ...grpc.CallOption) (*AddToBlackListResponse, error)
	DeleteFromWhiteList(ctx context.Context, in *DeleteFromWhiteListRequest, opts ...grpc.CallOption) (*DeleteFromWhiteListResponse, error)
	DeleteFromBlackList(ctx context.Context, in *DeleteFromBlackListRequest, opts ...grpc.CallOption) (*DeleteFromBlackListResponse, error)
	ResetLimit(ctx context.Context, in *ResetLimitRequest, opts ...grpc.CallOption) (*ResetLimitResponse, error)
}

AntiBruteForceServiceClient is the client API for AntiBruteForceService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewAntiBruteForceServiceClient

func NewAntiBruteForceServiceClient(cc *grpc.ClientConn) AntiBruteForceServiceClient

type AntiBruteForceServiceServer

AntiBruteForceServiceServer is the server API for AntiBruteForceService service.

type Auth

type Auth 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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Auth) Descriptor

func (*Auth) Descriptor() ([]byte, []int)

func (*Auth) GetIp

func (m *Auth) GetIp() string

func (*Auth) GetLogin

func (m *Auth) GetLogin() string

func (*Auth) GetPassword

func (m *Auth) GetPassword() string

func (*Auth) ProtoMessage

func (*Auth) ProtoMessage()

func (*Auth) Reset

func (m *Auth) Reset()

func (*Auth) String

func (m *Auth) String() string

func (*Auth) XXX_DiscardUnknown

func (m *Auth) XXX_DiscardUnknown()

func (*Auth) XXX_Marshal

func (m *Auth) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Auth) XXX_Merge

func (m *Auth) XXX_Merge(src proto.Message)

func (*Auth) XXX_Size

func (m *Auth) XXX_Size() int

func (*Auth) XXX_Unmarshal

func (m *Auth) XXX_Unmarshal(b []byte) error

type CheckAuthRequest

type CheckAuthRequest struct {
	Auth                 *Auth    `protobuf:"bytes,1,opt,name=auth,proto3" json:"auth,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CheckAuthRequest) Descriptor

func (*CheckAuthRequest) Descriptor() ([]byte, []int)

func (*CheckAuthRequest) GetAuth

func (m *CheckAuthRequest) GetAuth() *Auth

func (*CheckAuthRequest) ProtoMessage

func (*CheckAuthRequest) ProtoMessage()

func (*CheckAuthRequest) Reset

func (m *CheckAuthRequest) Reset()

func (*CheckAuthRequest) String

func (m *CheckAuthRequest) String() string

func (*CheckAuthRequest) XXX_DiscardUnknown

func (m *CheckAuthRequest) XXX_DiscardUnknown()

func (*CheckAuthRequest) XXX_Marshal

func (m *CheckAuthRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CheckAuthRequest) XXX_Merge

func (m *CheckAuthRequest) XXX_Merge(src proto.Message)

func (*CheckAuthRequest) XXX_Size

func (m *CheckAuthRequest) XXX_Size() int

func (*CheckAuthRequest) XXX_Unmarshal

func (m *CheckAuthRequest) XXX_Unmarshal(b []byte) error

type CheckAuthResponse

type CheckAuthResponse struct {
	// Types that are valid to be assigned to Result:
	//	*CheckAuthResponse_Ok
	//	*CheckAuthResponse_Error
	Result               isCheckAuthResponse_Result `protobuf_oneof:"result"`
	XXX_NoUnkeyedLiteral struct{}                   `json:"-"`
	XXX_unrecognized     []byte                     `json:"-"`
	XXX_sizecache        int32                      `json:"-"`
}

func (*CheckAuthResponse) Descriptor

func (*CheckAuthResponse) Descriptor() ([]byte, []int)

func (*CheckAuthResponse) GetError

func (m *CheckAuthResponse) GetError() string

func (*CheckAuthResponse) GetOk

func (m *CheckAuthResponse) GetOk() bool

func (*CheckAuthResponse) GetResult

func (m *CheckAuthResponse) GetResult() isCheckAuthResponse_Result

func (*CheckAuthResponse) ProtoMessage

func (*CheckAuthResponse) ProtoMessage()

func (*CheckAuthResponse) Reset

func (m *CheckAuthResponse) Reset()

func (*CheckAuthResponse) String

func (m *CheckAuthResponse) String() string

func (*CheckAuthResponse) XXX_DiscardUnknown

func (m *CheckAuthResponse) XXX_DiscardUnknown()

func (*CheckAuthResponse) XXX_Marshal

func (m *CheckAuthResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CheckAuthResponse) XXX_Merge

func (m *CheckAuthResponse) XXX_Merge(src proto.Message)

func (*CheckAuthResponse) XXX_OneofWrappers

func (*CheckAuthResponse) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*CheckAuthResponse) XXX_Size

func (m *CheckAuthResponse) XXX_Size() int

func (*CheckAuthResponse) XXX_Unmarshal

func (m *CheckAuthResponse) XXX_Unmarshal(b []byte) error

type CheckAuthResponse_Error

type CheckAuthResponse_Error struct {
	Error string `protobuf:"bytes,2,opt,name=error,proto3,oneof"`
}

type CheckAuthResponse_Ok

type CheckAuthResponse_Ok struct {
	Ok bool `protobuf:"varint,1,opt,name=ok,proto3,oneof"`
}

type DeleteFromBlackListRequest

type DeleteFromBlackListRequest struct {
	Net                  string   `protobuf:"bytes,1,opt,name=net,proto3" json:"net,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeleteFromBlackListRequest) Descriptor

func (*DeleteFromBlackListRequest) Descriptor() ([]byte, []int)

func (*DeleteFromBlackListRequest) GetNet

func (m *DeleteFromBlackListRequest) GetNet() string

func (*DeleteFromBlackListRequest) ProtoMessage

func (*DeleteFromBlackListRequest) ProtoMessage()

func (*DeleteFromBlackListRequest) Reset

func (m *DeleteFromBlackListRequest) Reset()

func (*DeleteFromBlackListRequest) String

func (m *DeleteFromBlackListRequest) String() string

func (*DeleteFromBlackListRequest) XXX_DiscardUnknown

func (m *DeleteFromBlackListRequest) XXX_DiscardUnknown()

func (*DeleteFromBlackListRequest) XXX_Marshal

func (m *DeleteFromBlackListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteFromBlackListRequest) XXX_Merge

func (m *DeleteFromBlackListRequest) XXX_Merge(src proto.Message)

func (*DeleteFromBlackListRequest) XXX_Size

func (m *DeleteFromBlackListRequest) XXX_Size() int

func (*DeleteFromBlackListRequest) XXX_Unmarshal

func (m *DeleteFromBlackListRequest) XXX_Unmarshal(b []byte) error

type DeleteFromBlackListResponse

type DeleteFromBlackListResponse struct {
	Error                string   `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeleteFromBlackListResponse) Descriptor

func (*DeleteFromBlackListResponse) Descriptor() ([]byte, []int)

func (*DeleteFromBlackListResponse) GetError

func (m *DeleteFromBlackListResponse) GetError() string

func (*DeleteFromBlackListResponse) ProtoMessage

func (*DeleteFromBlackListResponse) ProtoMessage()

func (*DeleteFromBlackListResponse) Reset

func (m *DeleteFromBlackListResponse) Reset()

func (*DeleteFromBlackListResponse) String

func (m *DeleteFromBlackListResponse) String() string

func (*DeleteFromBlackListResponse) XXX_DiscardUnknown

func (m *DeleteFromBlackListResponse) XXX_DiscardUnknown()

func (*DeleteFromBlackListResponse) XXX_Marshal

func (m *DeleteFromBlackListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteFromBlackListResponse) XXX_Merge

func (m *DeleteFromBlackListResponse) XXX_Merge(src proto.Message)

func (*DeleteFromBlackListResponse) XXX_Size

func (m *DeleteFromBlackListResponse) XXX_Size() int

func (*DeleteFromBlackListResponse) XXX_Unmarshal

func (m *DeleteFromBlackListResponse) XXX_Unmarshal(b []byte) error

type DeleteFromWhiteListRequest

type DeleteFromWhiteListRequest struct {
	Net                  string   `protobuf:"bytes,1,opt,name=net,proto3" json:"net,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeleteFromWhiteListRequest) Descriptor

func (*DeleteFromWhiteListRequest) Descriptor() ([]byte, []int)

func (*DeleteFromWhiteListRequest) GetNet

func (m *DeleteFromWhiteListRequest) GetNet() string

func (*DeleteFromWhiteListRequest) ProtoMessage

func (*DeleteFromWhiteListRequest) ProtoMessage()

func (*DeleteFromWhiteListRequest) Reset

func (m *DeleteFromWhiteListRequest) Reset()

func (*DeleteFromWhiteListRequest) String

func (m *DeleteFromWhiteListRequest) String() string

func (*DeleteFromWhiteListRequest) XXX_DiscardUnknown

func (m *DeleteFromWhiteListRequest) XXX_DiscardUnknown()

func (*DeleteFromWhiteListRequest) XXX_Marshal

func (m *DeleteFromWhiteListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteFromWhiteListRequest) XXX_Merge

func (m *DeleteFromWhiteListRequest) XXX_Merge(src proto.Message)

func (*DeleteFromWhiteListRequest) XXX_Size

func (m *DeleteFromWhiteListRequest) XXX_Size() int

func (*DeleteFromWhiteListRequest) XXX_Unmarshal

func (m *DeleteFromWhiteListRequest) XXX_Unmarshal(b []byte) error

type DeleteFromWhiteListResponse

type DeleteFromWhiteListResponse struct {
	Error                string   `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeleteFromWhiteListResponse) Descriptor

func (*DeleteFromWhiteListResponse) Descriptor() ([]byte, []int)

func (*DeleteFromWhiteListResponse) GetError

func (m *DeleteFromWhiteListResponse) GetError() string

func (*DeleteFromWhiteListResponse) ProtoMessage

func (*DeleteFromWhiteListResponse) ProtoMessage()

func (*DeleteFromWhiteListResponse) Reset

func (m *DeleteFromWhiteListResponse) Reset()

func (*DeleteFromWhiteListResponse) String

func (m *DeleteFromWhiteListResponse) String() string

func (*DeleteFromWhiteListResponse) XXX_DiscardUnknown

func (m *DeleteFromWhiteListResponse) XXX_DiscardUnknown()

func (*DeleteFromWhiteListResponse) XXX_Marshal

func (m *DeleteFromWhiteListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteFromWhiteListResponse) XXX_Merge

func (m *DeleteFromWhiteListResponse) XXX_Merge(src proto.Message)

func (*DeleteFromWhiteListResponse) XXX_Size

func (m *DeleteFromWhiteListResponse) XXX_Size() int

func (*DeleteFromWhiteListResponse) XXX_Unmarshal

func (m *DeleteFromWhiteListResponse) XXX_Unmarshal(b []byte) error

type ResetLimitRequest

type ResetLimitRequest 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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ResetLimitRequest) Descriptor

func (*ResetLimitRequest) Descriptor() ([]byte, []int)

func (*ResetLimitRequest) GetIp

func (m *ResetLimitRequest) GetIp() string

func (*ResetLimitRequest) GetLogin

func (m *ResetLimitRequest) GetLogin() string

func (*ResetLimitRequest) ProtoMessage

func (*ResetLimitRequest) ProtoMessage()

func (*ResetLimitRequest) Reset

func (m *ResetLimitRequest) Reset()

func (*ResetLimitRequest) String

func (m *ResetLimitRequest) String() string

func (*ResetLimitRequest) XXX_DiscardUnknown

func (m *ResetLimitRequest) XXX_DiscardUnknown()

func (*ResetLimitRequest) XXX_Marshal

func (m *ResetLimitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResetLimitRequest) XXX_Merge

func (m *ResetLimitRequest) XXX_Merge(src proto.Message)

func (*ResetLimitRequest) XXX_Size

func (m *ResetLimitRequest) XXX_Size() int

func (*ResetLimitRequest) XXX_Unmarshal

func (m *ResetLimitRequest) XXX_Unmarshal(b []byte) error

type ResetLimitResponse

type ResetLimitResponse struct {
	Error                string   `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ResetLimitResponse) Descriptor

func (*ResetLimitResponse) Descriptor() ([]byte, []int)

func (*ResetLimitResponse) GetError

func (m *ResetLimitResponse) GetError() string

func (*ResetLimitResponse) ProtoMessage

func (*ResetLimitResponse) ProtoMessage()

func (*ResetLimitResponse) Reset

func (m *ResetLimitResponse) Reset()

func (*ResetLimitResponse) String

func (m *ResetLimitResponse) String() string

func (*ResetLimitResponse) XXX_DiscardUnknown

func (m *ResetLimitResponse) XXX_DiscardUnknown()

func (*ResetLimitResponse) XXX_Marshal

func (m *ResetLimitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResetLimitResponse) XXX_Merge

func (m *ResetLimitResponse) XXX_Merge(src proto.Message)

func (*ResetLimitResponse) XXX_Size

func (m *ResetLimitResponse) XXX_Size() int

func (*ResetLimitResponse) XXX_Unmarshal

func (m *ResetLimitResponse) XXX_Unmarshal(b []byte) error

type UnimplementedAntiBruteForceServiceServer

type UnimplementedAntiBruteForceServiceServer struct {
}

UnimplementedAntiBruteForceServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedAntiBruteForceServiceServer) AddToBlackList

func (*UnimplementedAntiBruteForceServiceServer) AddToWhiteList

func (*UnimplementedAntiBruteForceServiceServer) CheckAuth

func (*UnimplementedAntiBruteForceServiceServer) DeleteFromBlackList

func (*UnimplementedAntiBruteForceServiceServer) DeleteFromWhiteList

func (*UnimplementedAntiBruteForceServiceServer) ResetLimit

Jump to

Keyboard shortcuts

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