Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterCommonHTTPServer(s *http.Server, srv CommonHTTPServer)
- func RegisterCommonServer(s grpc.ServiceRegistrar, srv CommonServer)
- type CommonClient
- type CommonHTTPClient
- type CommonHTTPClientImpl
- func (c *CommonHTTPClientImpl) FireWallAddToWhitelist(ctx context.Context, in *FireWallVerifyReq, opts ...http.CallOption) (*FireWallVerifyRep, error)
- func (c *CommonHTTPClientImpl) FireWallBlockIP(ctx context.Context, in *FireWallVerifyReq, opts ...http.CallOption) (*FireWallVerifyRep, error)
- func (c *CommonHTTPClientImpl) FireWallUnblockIP(ctx context.Context, in *FireWallVerifyReq, opts ...http.CallOption) (*FireWallVerifyRep, error)
- func (c *CommonHTTPClientImpl) FireWallVerify(ctx context.Context, in *FireWallVerifyReq, opts ...http.CallOption) (*FireWallVerifyRep, error)
- func (c *CommonHTTPClientImpl) GetBlockedIPs(ctx context.Context, in *FireWallListReq, opts ...http.CallOption) (*FireWallListRep, error)
- func (c *CommonHTTPClientImpl) GetCaptcha(ctx context.Context, in *GetCaptchaReq, opts ...http.CallOption) (*GetCaptchaRep, error)
- func (c *CommonHTTPClientImpl) GetWhitelistedIPs(ctx context.Context, in *FireWallListReq, opts ...http.CallOption) (*FireWallListRep, error)
- func (c *CommonHTTPClientImpl) RemoveFromWhitelist(ctx context.Context, in *FireWallVerifyReq, opts ...http.CallOption) (*FireWallVerifyRep, error)
- func (c *CommonHTTPClientImpl) UpToken(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*UpTokenRep, error)
- func (c *CommonHTTPClientImpl) UploadFile(ctx context.Context, in *UploadFileReq, opts ...http.CallOption) (*UploadFileRep, error)
- func (c *CommonHTTPClientImpl) VerifyCaptcha(ctx context.Context, in *VerifyCaptchaReq, opts ...http.CallOption) (*VerifyCaptchaRep, error)
- type CommonHTTPServer
- type CommonServer
- type FireWallListRep
- func (*FireWallListRep) Descriptor() ([]byte, []int)deprecated
- func (x *FireWallListRep) GetList() []string
- func (*FireWallListRep) ProtoMessage()
- func (x *FireWallListRep) ProtoReflect() protoreflect.Message
- func (x *FireWallListRep) Reset()
- func (x *FireWallListRep) String() string
- func (m *FireWallListRep) Validate() error
- func (m *FireWallListRep) ValidateAll() error
- type FireWallListRepMultiError
- type FireWallListRepValidationError
- func (e FireWallListRepValidationError) Cause() error
- func (e FireWallListRepValidationError) Error() string
- func (e FireWallListRepValidationError) ErrorName() string
- func (e FireWallListRepValidationError) Field() string
- func (e FireWallListRepValidationError) Key() bool
- func (e FireWallListRepValidationError) Reason() string
- type FireWallListReq
- func (*FireWallListReq) Descriptor() ([]byte, []int)deprecated
- func (x *FireWallListReq) GetPage() int64
- func (x *FireWallListReq) GetPageSize() int64
- func (*FireWallListReq) ProtoMessage()
- func (x *FireWallListReq) ProtoReflect() protoreflect.Message
- func (x *FireWallListReq) Reset()
- func (x *FireWallListReq) String() string
- func (m *FireWallListReq) Validate() error
- func (m *FireWallListReq) ValidateAll() error
- type FireWallListReqMultiError
- type FireWallListReqValidationError
- func (e FireWallListReqValidationError) Cause() error
- func (e FireWallListReqValidationError) Error() string
- func (e FireWallListReqValidationError) ErrorName() string
- func (e FireWallListReqValidationError) Field() string
- func (e FireWallListReqValidationError) Key() bool
- func (e FireWallListReqValidationError) Reason() string
- type FireWallVerifyRep
- func (*FireWallVerifyRep) Descriptor() ([]byte, []int)deprecated
- func (x *FireWallVerifyRep) GetStatus() bool
- func (*FireWallVerifyRep) ProtoMessage()
- func (x *FireWallVerifyRep) ProtoReflect() protoreflect.Message
- func (x *FireWallVerifyRep) Reset()
- func (x *FireWallVerifyRep) String() string
- func (m *FireWallVerifyRep) Validate() error
- func (m *FireWallVerifyRep) ValidateAll() error
- type FireWallVerifyRepMultiError
- type FireWallVerifyRepValidationError
- func (e FireWallVerifyRepValidationError) Cause() error
- func (e FireWallVerifyRepValidationError) Error() string
- func (e FireWallVerifyRepValidationError) ErrorName() string
- func (e FireWallVerifyRepValidationError) Field() string
- func (e FireWallVerifyRepValidationError) Key() bool
- func (e FireWallVerifyRepValidationError) Reason() string
- type FireWallVerifyReq
- func (*FireWallVerifyReq) Descriptor() ([]byte, []int)deprecated
- func (x *FireWallVerifyReq) GetLastIp() string
- func (*FireWallVerifyReq) ProtoMessage()
- func (x *FireWallVerifyReq) ProtoReflect() protoreflect.Message
- func (x *FireWallVerifyReq) Reset()
- func (x *FireWallVerifyReq) String() string
- func (m *FireWallVerifyReq) Validate() error
- func (m *FireWallVerifyReq) ValidateAll() error
- type FireWallVerifyReqMultiError
- type FireWallVerifyReqValidationError
- func (e FireWallVerifyReqValidationError) Cause() error
- func (e FireWallVerifyReqValidationError) Error() string
- func (e FireWallVerifyReqValidationError) ErrorName() string
- func (e FireWallVerifyReqValidationError) Field() string
- func (e FireWallVerifyReqValidationError) Key() bool
- func (e FireWallVerifyReqValidationError) Reason() string
- type GetCaptchaRep
- func (*GetCaptchaRep) Descriptor() ([]byte, []int)deprecated
- func (x *GetCaptchaRep) GetCaptchaId() string
- func (x *GetCaptchaRep) GetData() string
- func (*GetCaptchaRep) ProtoMessage()
- func (x *GetCaptchaRep) ProtoReflect() protoreflect.Message
- func (x *GetCaptchaRep) Reset()
- func (x *GetCaptchaRep) String() string
- func (m *GetCaptchaRep) Validate() error
- func (m *GetCaptchaRep) ValidateAll() error
- type GetCaptchaRepMultiError
- type GetCaptchaRepValidationError
- func (e GetCaptchaRepValidationError) Cause() error
- func (e GetCaptchaRepValidationError) Error() string
- func (e GetCaptchaRepValidationError) ErrorName() string
- func (e GetCaptchaRepValidationError) Field() string
- func (e GetCaptchaRepValidationError) Key() bool
- func (e GetCaptchaRepValidationError) Reason() string
- type GetCaptchaReq
- func (*GetCaptchaReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetCaptchaReq) GetLastIp() string
- func (*GetCaptchaReq) ProtoMessage()
- func (x *GetCaptchaReq) ProtoReflect() protoreflect.Message
- func (x *GetCaptchaReq) Reset()
- func (x *GetCaptchaReq) String() string
- func (m *GetCaptchaReq) Validate() error
- func (m *GetCaptchaReq) ValidateAll() error
- type GetCaptchaReqMultiError
- type GetCaptchaReqValidationError
- func (e GetCaptchaReqValidationError) Cause() error
- func (e GetCaptchaReqValidationError) Error() string
- func (e GetCaptchaReqValidationError) ErrorName() string
- func (e GetCaptchaReqValidationError) Field() string
- func (e GetCaptchaReqValidationError) Key() bool
- func (e GetCaptchaReqValidationError) Reason() string
- type UnimplementedCommonServer
- func (UnimplementedCommonServer) FireWallAddToWhitelist(context.Context, *FireWallVerifyReq) (*FireWallVerifyRep, error)
- func (UnimplementedCommonServer) FireWallBlockIP(context.Context, *FireWallVerifyReq) (*FireWallVerifyRep, error)
- func (UnimplementedCommonServer) FireWallUnblockIP(context.Context, *FireWallVerifyReq) (*FireWallVerifyRep, error)
- func (UnimplementedCommonServer) FireWallVerify(context.Context, *FireWallVerifyReq) (*FireWallVerifyRep, error)
- func (UnimplementedCommonServer) GetBlockedIPs(context.Context, *FireWallListReq) (*FireWallListRep, error)
- func (UnimplementedCommonServer) GetCaptcha(context.Context, *GetCaptchaReq) (*GetCaptchaRep, error)
- func (UnimplementedCommonServer) GetWhitelistedIPs(context.Context, *FireWallListReq) (*FireWallListRep, error)
- func (UnimplementedCommonServer) RemoveFromWhitelist(context.Context, *FireWallVerifyReq) (*FireWallVerifyRep, error)
- func (UnimplementedCommonServer) UpToken(context.Context, *emptypb.Empty) (*UpTokenRep, error)
- func (UnimplementedCommonServer) UploadFile(context.Context, *UploadFileReq) (*UploadFileRep, error)
- func (UnimplementedCommonServer) VerifyCaptcha(context.Context, *VerifyCaptchaReq) (*VerifyCaptchaRep, error)
- type UnsafeCommonServer
- type UpTokenRep
- func (*UpTokenRep) Descriptor() ([]byte, []int)deprecated
- func (x *UpTokenRep) GetToken() string
- func (*UpTokenRep) ProtoMessage()
- func (x *UpTokenRep) ProtoReflect() protoreflect.Message
- func (x *UpTokenRep) Reset()
- func (x *UpTokenRep) String() string
- func (m *UpTokenRep) Validate() error
- func (m *UpTokenRep) ValidateAll() error
- type UpTokenRepMultiError
- type UpTokenRepValidationError
- type UploadFileRep
- func (*UploadFileRep) Descriptor() ([]byte, []int)deprecated
- func (x *UploadFileRep) GetFile() string
- func (*UploadFileRep) ProtoMessage()
- func (x *UploadFileRep) ProtoReflect() protoreflect.Message
- func (x *UploadFileRep) Reset()
- func (x *UploadFileRep) String() string
- func (m *UploadFileRep) Validate() error
- func (m *UploadFileRep) ValidateAll() error
- type UploadFileRepMultiError
- type UploadFileRepValidationError
- func (e UploadFileRepValidationError) Cause() error
- func (e UploadFileRepValidationError) Error() string
- func (e UploadFileRepValidationError) ErrorName() string
- func (e UploadFileRepValidationError) Field() string
- func (e UploadFileRepValidationError) Key() bool
- func (e UploadFileRepValidationError) Reason() string
- type UploadFileReq
- func (*UploadFileReq) Descriptor() ([]byte, []int)deprecated
- func (x *UploadFileReq) GetFile() string
- func (x *UploadFileReq) GetPath() string
- func (*UploadFileReq) ProtoMessage()
- func (x *UploadFileReq) ProtoReflect() protoreflect.Message
- func (x *UploadFileReq) Reset()
- func (x *UploadFileReq) String() string
- func (m *UploadFileReq) Validate() error
- func (m *UploadFileReq) ValidateAll() error
- type UploadFileReqMultiError
- type UploadFileReqValidationError
- func (e UploadFileReqValidationError) Cause() error
- func (e UploadFileReqValidationError) Error() string
- func (e UploadFileReqValidationError) ErrorName() string
- func (e UploadFileReqValidationError) Field() string
- func (e UploadFileReqValidationError) Key() bool
- func (e UploadFileReqValidationError) Reason() string
- type VerifyCaptchaRep
- func (*VerifyCaptchaRep) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyCaptchaRep) GetStatus() bool
- func (*VerifyCaptchaRep) ProtoMessage()
- func (x *VerifyCaptchaRep) ProtoReflect() protoreflect.Message
- func (x *VerifyCaptchaRep) Reset()
- func (x *VerifyCaptchaRep) String() string
- func (m *VerifyCaptchaRep) Validate() error
- func (m *VerifyCaptchaRep) ValidateAll() error
- type VerifyCaptchaRepMultiError
- type VerifyCaptchaRepValidationError
- func (e VerifyCaptchaRepValidationError) Cause() error
- func (e VerifyCaptchaRepValidationError) Error() string
- func (e VerifyCaptchaRepValidationError) ErrorName() string
- func (e VerifyCaptchaRepValidationError) Field() string
- func (e VerifyCaptchaRepValidationError) Key() bool
- func (e VerifyCaptchaRepValidationError) Reason() string
- type VerifyCaptchaReq
- func (*VerifyCaptchaReq) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyCaptchaReq) GetAnswer() string
- func (x *VerifyCaptchaReq) GetCaptchaId() string
- func (x *VerifyCaptchaReq) GetLastIp() string
- func (*VerifyCaptchaReq) ProtoMessage()
- func (x *VerifyCaptchaReq) ProtoReflect() protoreflect.Message
- func (x *VerifyCaptchaReq) Reset()
- func (x *VerifyCaptchaReq) String() string
- func (m *VerifyCaptchaReq) Validate() error
- func (m *VerifyCaptchaReq) ValidateAll() error
- type VerifyCaptchaReqMultiError
- type VerifyCaptchaReqValidationError
- func (e VerifyCaptchaReqValidationError) Cause() error
- func (e VerifyCaptchaReqValidationError) Error() string
- func (e VerifyCaptchaReqValidationError) ErrorName() string
- func (e VerifyCaptchaReqValidationError) Field() string
- func (e VerifyCaptchaReqValidationError) Key() bool
- func (e VerifyCaptchaReqValidationError) Reason() string
Constants ¶
const ( Common_GetCaptcha_FullMethodName = "/api.common.v1.Common/GetCaptcha" Common_VerifyCaptcha_FullMethodName = "/api.common.v1.Common/VerifyCaptcha" Common_FireWallVerify_FullMethodName = "/api.common.v1.Common/FireWallVerify" Common_FireWallBlockIP_FullMethodName = "/api.common.v1.Common/FireWallBlockIP" Common_FireWallUnblockIP_FullMethodName = "/api.common.v1.Common/FireWallUnblockIP" Common_GetBlockedIPs_FullMethodName = "/api.common.v1.Common/GetBlockedIPs" Common_FireWallAddToWhitelist_FullMethodName = "/api.common.v1.Common/FireWallAddToWhitelist" Common_RemoveFromWhitelist_FullMethodName = "/api.common.v1.Common/RemoveFromWhitelist" Common_GetWhitelistedIPs_FullMethodName = "/api.common.v1.Common/GetWhitelistedIPs" Common_UpToken_FullMethodName = "/api.common.v1.Common/UpToken" Common_UploadFile_FullMethodName = "/api.common.v1.Common/UploadFile" )
const OperationCommonFireWallAddToWhitelist = "/api.common.v1.Common/FireWallAddToWhitelist"
const OperationCommonFireWallBlockIP = "/api.common.v1.Common/FireWallBlockIP"
const OperationCommonFireWallUnblockIP = "/api.common.v1.Common/FireWallUnblockIP"
const OperationCommonFireWallVerify = "/api.common.v1.Common/FireWallVerify"
const OperationCommonGetBlockedIPs = "/api.common.v1.Common/GetBlockedIPs"
const OperationCommonGetCaptcha = "/api.common.v1.Common/GetCaptcha"
const OperationCommonGetWhitelistedIPs = "/api.common.v1.Common/GetWhitelistedIPs"
const OperationCommonRemoveFromWhitelist = "/api.common.v1.Common/RemoveFromWhitelist"
const OperationCommonUpToken = "/api.common.v1.Common/UpToken"
const OperationCommonUploadFile = "/api.common.v1.Common/UploadFile"
const OperationCommonVerifyCaptcha = "/api.common.v1.Common/VerifyCaptcha"
Variables ¶
var Common_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.common.v1.Common", HandlerType: (*CommonServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetCaptcha", Handler: _Common_GetCaptcha_Handler, }, { MethodName: "VerifyCaptcha", Handler: _Common_VerifyCaptcha_Handler, }, { MethodName: "FireWallVerify", Handler: _Common_FireWallVerify_Handler, }, { MethodName: "FireWallBlockIP", Handler: _Common_FireWallBlockIP_Handler, }, { MethodName: "FireWallUnblockIP", Handler: _Common_FireWallUnblockIP_Handler, }, { MethodName: "GetBlockedIPs", Handler: _Common_GetBlockedIPs_Handler, }, { MethodName: "FireWallAddToWhitelist", Handler: _Common_FireWallAddToWhitelist_Handler, }, { MethodName: "RemoveFromWhitelist", Handler: _Common_RemoveFromWhitelist_Handler, }, { MethodName: "GetWhitelistedIPs", Handler: _Common_GetWhitelistedIPs_Handler, }, { MethodName: "UpToken", Handler: _Common_UpToken_Handler, }, { MethodName: "UploadFile", Handler: _Common_UploadFile_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "common/v1/common.proto", }
Common_ServiceDesc is the grpc.ServiceDesc for Common service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_api_common_v1_common_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCommonHTTPServer ¶
func RegisterCommonHTTPServer(s *http.Server, srv CommonHTTPServer)
func RegisterCommonServer ¶
func RegisterCommonServer(s grpc.ServiceRegistrar, srv CommonServer)
Types ¶
type CommonClient ¶
type CommonClient interface { // 获取验证码 GetCaptcha(ctx context.Context, in *GetCaptchaReq, opts ...grpc.CallOption) (*GetCaptchaRep, error) // 验证验证码 VerifyCaptcha(ctx context.Context, in *VerifyCaptchaReq, opts ...grpc.CallOption) (*VerifyCaptchaRep, error) // 防火墙检查 FireWallVerify(ctx context.Context, in *FireWallVerifyReq, opts ...grpc.CallOption) (*FireWallVerifyRep, error) // 防火墙封禁IP FireWallBlockIP(ctx context.Context, in *FireWallVerifyReq, opts ...grpc.CallOption) (*FireWallVerifyRep, error) // 防火墙解禁IP FireWallUnblockIP(ctx context.Context, in *FireWallVerifyReq, opts ...grpc.CallOption) (*FireWallVerifyRep, error) // 获取黑单列表 GetBlockedIPs(ctx context.Context, in *FireWallListReq, opts ...grpc.CallOption) (*FireWallListRep, error) // 防火墙添加白名单IP FireWallAddToWhitelist(ctx context.Context, in *FireWallVerifyReq, opts ...grpc.CallOption) (*FireWallVerifyRep, error) // 防火墙从白名单中删除IP RemoveFromWhitelist(ctx context.Context, in *FireWallVerifyReq, opts ...grpc.CallOption) (*FireWallVerifyRep, error) // 获取白名单列表 GetWhitelistedIPs(ctx context.Context, in *FireWallListReq, opts ...grpc.CallOption) (*FireWallListRep, error) // 获取Token UpToken(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*UpTokenRep, error) // 上传文件 UploadFile(ctx context.Context, in *UploadFileReq, opts ...grpc.CallOption) (*UploadFileRep, error) }
CommonClient is the client API for Common 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 NewCommonClient ¶
func NewCommonClient(cc grpc.ClientConnInterface) CommonClient
type CommonHTTPClient ¶
type CommonHTTPClient interface { FireWallAddToWhitelist(ctx context.Context, req *FireWallVerifyReq, opts ...http.CallOption) (rsp *FireWallVerifyRep, err error) FireWallBlockIP(ctx context.Context, req *FireWallVerifyReq, opts ...http.CallOption) (rsp *FireWallVerifyRep, err error) FireWallUnblockIP(ctx context.Context, req *FireWallVerifyReq, opts ...http.CallOption) (rsp *FireWallVerifyRep, err error) FireWallVerify(ctx context.Context, req *FireWallVerifyReq, opts ...http.CallOption) (rsp *FireWallVerifyRep, err error) GetBlockedIPs(ctx context.Context, req *FireWallListReq, opts ...http.CallOption) (rsp *FireWallListRep, err error) GetCaptcha(ctx context.Context, req *GetCaptchaReq, opts ...http.CallOption) (rsp *GetCaptchaRep, err error) GetWhitelistedIPs(ctx context.Context, req *FireWallListReq, opts ...http.CallOption) (rsp *FireWallListRep, err error) RemoveFromWhitelist(ctx context.Context, req *FireWallVerifyReq, opts ...http.CallOption) (rsp *FireWallVerifyRep, err error) UpToken(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *UpTokenRep, err error) UploadFile(ctx context.Context, req *UploadFileReq, opts ...http.CallOption) (rsp *UploadFileRep, err error) VerifyCaptcha(ctx context.Context, req *VerifyCaptchaReq, opts ...http.CallOption) (rsp *VerifyCaptchaRep, err error) }
func NewCommonHTTPClient ¶
func NewCommonHTTPClient(client *http.Client) CommonHTTPClient
type CommonHTTPClientImpl ¶
type CommonHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*CommonHTTPClientImpl) FireWallAddToWhitelist ¶ added in v0.0.30
func (c *CommonHTTPClientImpl) FireWallAddToWhitelist(ctx context.Context, in *FireWallVerifyReq, opts ...http.CallOption) (*FireWallVerifyRep, error)
func (*CommonHTTPClientImpl) FireWallBlockIP ¶ added in v0.0.31
func (c *CommonHTTPClientImpl) FireWallBlockIP(ctx context.Context, in *FireWallVerifyReq, opts ...http.CallOption) (*FireWallVerifyRep, error)
func (*CommonHTTPClientImpl) FireWallUnblockIP ¶ added in v0.0.30
func (c *CommonHTTPClientImpl) FireWallUnblockIP(ctx context.Context, in *FireWallVerifyReq, opts ...http.CallOption) (*FireWallVerifyRep, error)
func (*CommonHTTPClientImpl) FireWallVerify ¶ added in v0.0.26
func (c *CommonHTTPClientImpl) FireWallVerify(ctx context.Context, in *FireWallVerifyReq, opts ...http.CallOption) (*FireWallVerifyRep, error)
func (*CommonHTTPClientImpl) GetBlockedIPs ¶ added in v0.0.33
func (c *CommonHTTPClientImpl) GetBlockedIPs(ctx context.Context, in *FireWallListReq, opts ...http.CallOption) (*FireWallListRep, error)
func (*CommonHTTPClientImpl) GetCaptcha ¶
func (c *CommonHTTPClientImpl) GetCaptcha(ctx context.Context, in *GetCaptchaReq, opts ...http.CallOption) (*GetCaptchaRep, error)
func (*CommonHTTPClientImpl) GetWhitelistedIPs ¶ added in v0.0.33
func (c *CommonHTTPClientImpl) GetWhitelistedIPs(ctx context.Context, in *FireWallListReq, opts ...http.CallOption) (*FireWallListRep, error)
func (*CommonHTTPClientImpl) RemoveFromWhitelist ¶ added in v0.0.30
func (c *CommonHTTPClientImpl) RemoveFromWhitelist(ctx context.Context, in *FireWallVerifyReq, opts ...http.CallOption) (*FireWallVerifyRep, error)
func (*CommonHTTPClientImpl) UpToken ¶ added in v0.0.34
func (c *CommonHTTPClientImpl) UpToken(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*UpTokenRep, error)
func (*CommonHTTPClientImpl) UploadFile ¶ added in v0.0.36
func (c *CommonHTTPClientImpl) UploadFile(ctx context.Context, in *UploadFileReq, opts ...http.CallOption) (*UploadFileRep, error)
func (*CommonHTTPClientImpl) VerifyCaptcha ¶
func (c *CommonHTTPClientImpl) VerifyCaptcha(ctx context.Context, in *VerifyCaptchaReq, opts ...http.CallOption) (*VerifyCaptchaRep, error)
type CommonHTTPServer ¶
type CommonHTTPServer interface { // FireWallAddToWhitelist 防火墙添加白名单IP FireWallAddToWhitelist(context.Context, *FireWallVerifyReq) (*FireWallVerifyRep, error) // FireWallBlockIP 防火墙封禁IP FireWallBlockIP(context.Context, *FireWallVerifyReq) (*FireWallVerifyRep, error) // FireWallUnblockIP 防火墙解禁IP FireWallUnblockIP(context.Context, *FireWallVerifyReq) (*FireWallVerifyRep, error) // FireWallVerify 防火墙检查 FireWallVerify(context.Context, *FireWallVerifyReq) (*FireWallVerifyRep, error) // GetBlockedIPs 获取黑单列表 GetBlockedIPs(context.Context, *FireWallListReq) (*FireWallListRep, error) // GetCaptcha 获取验证码 GetCaptcha(context.Context, *GetCaptchaReq) (*GetCaptchaRep, error) // GetWhitelistedIPs 获取白名单列表 GetWhitelistedIPs(context.Context, *FireWallListReq) (*FireWallListRep, error) // RemoveFromWhitelist 防火墙从白名单中删除IP RemoveFromWhitelist(context.Context, *FireWallVerifyReq) (*FireWallVerifyRep, error) // UpToken 获取Token UpToken(context.Context, *emptypb.Empty) (*UpTokenRep, error) // UploadFile 上传文件 UploadFile(context.Context, *UploadFileReq) (*UploadFileRep, error) // VerifyCaptcha 验证验证码 VerifyCaptcha(context.Context, *VerifyCaptchaReq) (*VerifyCaptchaRep, error) }
type CommonServer ¶
type CommonServer interface { // 获取验证码 GetCaptcha(context.Context, *GetCaptchaReq) (*GetCaptchaRep, error) // 验证验证码 VerifyCaptcha(context.Context, *VerifyCaptchaReq) (*VerifyCaptchaRep, error) // 防火墙检查 FireWallVerify(context.Context, *FireWallVerifyReq) (*FireWallVerifyRep, error) // 防火墙封禁IP FireWallBlockIP(context.Context, *FireWallVerifyReq) (*FireWallVerifyRep, error) // 防火墙解禁IP FireWallUnblockIP(context.Context, *FireWallVerifyReq) (*FireWallVerifyRep, error) // 获取黑单列表 GetBlockedIPs(context.Context, *FireWallListReq) (*FireWallListRep, error) // 防火墙添加白名单IP FireWallAddToWhitelist(context.Context, *FireWallVerifyReq) (*FireWallVerifyRep, error) // 防火墙从白名单中删除IP RemoveFromWhitelist(context.Context, *FireWallVerifyReq) (*FireWallVerifyRep, error) // 获取白名单列表 GetWhitelistedIPs(context.Context, *FireWallListReq) (*FireWallListRep, error) // 获取Token UpToken(context.Context, *emptypb.Empty) (*UpTokenRep, error) // 上传文件 UploadFile(context.Context, *UploadFileReq) (*UploadFileRep, error) // contains filtered or unexported methods }
CommonServer is the server API for Common service. All implementations must embed UnimplementedCommonServer for forward compatibility
type FireWallListRep ¶ added in v0.0.33
type FireWallListRep struct { List []string `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
列表
func (*FireWallListRep) Descriptor
deprecated
added in
v0.0.33
func (*FireWallListRep) Descriptor() ([]byte, []int)
Deprecated: Use FireWallListRep.ProtoReflect.Descriptor instead.
func (*FireWallListRep) GetList ¶ added in v0.0.33
func (x *FireWallListRep) GetList() []string
func (*FireWallListRep) ProtoMessage ¶ added in v0.0.33
func (*FireWallListRep) ProtoMessage()
func (*FireWallListRep) ProtoReflect ¶ added in v0.0.33
func (x *FireWallListRep) ProtoReflect() protoreflect.Message
func (*FireWallListRep) Reset ¶ added in v0.0.33
func (x *FireWallListRep) Reset()
func (*FireWallListRep) String ¶ added in v0.0.33
func (x *FireWallListRep) String() string
func (*FireWallListRep) Validate ¶ added in v0.0.33
func (m *FireWallListRep) Validate() error
Validate checks the field values on FireWallListRep with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*FireWallListRep) ValidateAll ¶ added in v0.0.33
func (m *FireWallListRep) ValidateAll() error
ValidateAll checks the field values on FireWallListRep with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FireWallListRepMultiError, or nil if none found.
type FireWallListRepMultiError ¶ added in v0.0.33
type FireWallListRepMultiError []error
FireWallListRepMultiError is an error wrapping multiple validation errors returned by FireWallListRep.ValidateAll() if the designated constraints aren't met.
func (FireWallListRepMultiError) AllErrors ¶ added in v0.0.33
func (m FireWallListRepMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FireWallListRepMultiError) Error ¶ added in v0.0.33
func (m FireWallListRepMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FireWallListRepValidationError ¶ added in v0.0.33
type FireWallListRepValidationError struct {
// contains filtered or unexported fields
}
FireWallListRepValidationError is the validation error returned by FireWallListRep.Validate if the designated constraints aren't met.
func (FireWallListRepValidationError) Cause ¶ added in v0.0.33
func (e FireWallListRepValidationError) Cause() error
Cause function returns cause value.
func (FireWallListRepValidationError) Error ¶ added in v0.0.33
func (e FireWallListRepValidationError) Error() string
Error satisfies the builtin error interface
func (FireWallListRepValidationError) ErrorName ¶ added in v0.0.33
func (e FireWallListRepValidationError) ErrorName() string
ErrorName returns error name.
func (FireWallListRepValidationError) Field ¶ added in v0.0.33
func (e FireWallListRepValidationError) Field() string
Field function returns field value.
func (FireWallListRepValidationError) Key ¶ added in v0.0.33
func (e FireWallListRepValidationError) Key() bool
Key function returns key value.
func (FireWallListRepValidationError) Reason ¶ added in v0.0.33
func (e FireWallListRepValidationError) Reason() string
Reason function returns reason value.
type FireWallListReq ¶ added in v0.0.33
type FireWallListReq struct { Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` PageSize int64 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"` // contains filtered or unexported fields }
列表
func (*FireWallListReq) Descriptor
deprecated
added in
v0.0.33
func (*FireWallListReq) Descriptor() ([]byte, []int)
Deprecated: Use FireWallListReq.ProtoReflect.Descriptor instead.
func (*FireWallListReq) GetPage ¶ added in v0.0.33
func (x *FireWallListReq) GetPage() int64
func (*FireWallListReq) GetPageSize ¶ added in v0.0.33
func (x *FireWallListReq) GetPageSize() int64
func (*FireWallListReq) ProtoMessage ¶ added in v0.0.33
func (*FireWallListReq) ProtoMessage()
func (*FireWallListReq) ProtoReflect ¶ added in v0.0.33
func (x *FireWallListReq) ProtoReflect() protoreflect.Message
func (*FireWallListReq) Reset ¶ added in v0.0.33
func (x *FireWallListReq) Reset()
func (*FireWallListReq) String ¶ added in v0.0.33
func (x *FireWallListReq) String() string
func (*FireWallListReq) Validate ¶ added in v0.0.33
func (m *FireWallListReq) Validate() error
Validate checks the field values on FireWallListReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*FireWallListReq) ValidateAll ¶ added in v0.0.33
func (m *FireWallListReq) ValidateAll() error
ValidateAll checks the field values on FireWallListReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FireWallListReqMultiError, or nil if none found.
type FireWallListReqMultiError ¶ added in v0.0.33
type FireWallListReqMultiError []error
FireWallListReqMultiError is an error wrapping multiple validation errors returned by FireWallListReq.ValidateAll() if the designated constraints aren't met.
func (FireWallListReqMultiError) AllErrors ¶ added in v0.0.33
func (m FireWallListReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FireWallListReqMultiError) Error ¶ added in v0.0.33
func (m FireWallListReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FireWallListReqValidationError ¶ added in v0.0.33
type FireWallListReqValidationError struct {
// contains filtered or unexported fields
}
FireWallListReqValidationError is the validation error returned by FireWallListReq.Validate if the designated constraints aren't met.
func (FireWallListReqValidationError) Cause ¶ added in v0.0.33
func (e FireWallListReqValidationError) Cause() error
Cause function returns cause value.
func (FireWallListReqValidationError) Error ¶ added in v0.0.33
func (e FireWallListReqValidationError) Error() string
Error satisfies the builtin error interface
func (FireWallListReqValidationError) ErrorName ¶ added in v0.0.33
func (e FireWallListReqValidationError) ErrorName() string
ErrorName returns error name.
func (FireWallListReqValidationError) Field ¶ added in v0.0.33
func (e FireWallListReqValidationError) Field() string
Field function returns field value.
func (FireWallListReqValidationError) Key ¶ added in v0.0.33
func (e FireWallListReqValidationError) Key() bool
Key function returns key value.
func (FireWallListReqValidationError) Reason ¶ added in v0.0.33
func (e FireWallListReqValidationError) Reason() string
Reason function returns reason value.
type FireWallVerifyRep ¶ added in v0.0.28
type FireWallVerifyRep struct { Status bool `protobuf:"varint,1,opt,name=Status,proto3" json:"Status,omitempty"` // contains filtered or unexported fields }
FireWallVerifyReply 防火墙回复
func (*FireWallVerifyRep) Descriptor
deprecated
added in
v0.0.28
func (*FireWallVerifyRep) Descriptor() ([]byte, []int)
Deprecated: Use FireWallVerifyRep.ProtoReflect.Descriptor instead.
func (*FireWallVerifyRep) GetStatus ¶ added in v0.0.28
func (x *FireWallVerifyRep) GetStatus() bool
func (*FireWallVerifyRep) ProtoMessage ¶ added in v0.0.28
func (*FireWallVerifyRep) ProtoMessage()
func (*FireWallVerifyRep) ProtoReflect ¶ added in v0.0.28
func (x *FireWallVerifyRep) ProtoReflect() protoreflect.Message
func (*FireWallVerifyRep) Reset ¶ added in v0.0.28
func (x *FireWallVerifyRep) Reset()
func (*FireWallVerifyRep) String ¶ added in v0.0.28
func (x *FireWallVerifyRep) String() string
func (*FireWallVerifyRep) Validate ¶ added in v0.0.28
func (m *FireWallVerifyRep) Validate() error
Validate checks the field values on FireWallVerifyRep with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*FireWallVerifyRep) ValidateAll ¶ added in v0.0.28
func (m *FireWallVerifyRep) ValidateAll() error
ValidateAll checks the field values on FireWallVerifyRep with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FireWallVerifyRepMultiError, or nil if none found.
type FireWallVerifyRepMultiError ¶ added in v0.0.28
type FireWallVerifyRepMultiError []error
FireWallVerifyRepMultiError is an error wrapping multiple validation errors returned by FireWallVerifyRep.ValidateAll() if the designated constraints aren't met.
func (FireWallVerifyRepMultiError) AllErrors ¶ added in v0.0.28
func (m FireWallVerifyRepMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FireWallVerifyRepMultiError) Error ¶ added in v0.0.28
func (m FireWallVerifyRepMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FireWallVerifyRepValidationError ¶ added in v0.0.28
type FireWallVerifyRepValidationError struct {
// contains filtered or unexported fields
}
FireWallVerifyRepValidationError is the validation error returned by FireWallVerifyRep.Validate if the designated constraints aren't met.
func (FireWallVerifyRepValidationError) Cause ¶ added in v0.0.28
func (e FireWallVerifyRepValidationError) Cause() error
Cause function returns cause value.
func (FireWallVerifyRepValidationError) Error ¶ added in v0.0.28
func (e FireWallVerifyRepValidationError) Error() string
Error satisfies the builtin error interface
func (FireWallVerifyRepValidationError) ErrorName ¶ added in v0.0.28
func (e FireWallVerifyRepValidationError) ErrorName() string
ErrorName returns error name.
func (FireWallVerifyRepValidationError) Field ¶ added in v0.0.28
func (e FireWallVerifyRepValidationError) Field() string
Field function returns field value.
func (FireWallVerifyRepValidationError) Key ¶ added in v0.0.28
func (e FireWallVerifyRepValidationError) Key() bool
Key function returns key value.
func (FireWallVerifyRepValidationError) Reason ¶ added in v0.0.28
func (e FireWallVerifyRepValidationError) Reason() string
Reason function returns reason value.
type FireWallVerifyReq ¶ added in v0.0.28
type FireWallVerifyReq struct { // IP LastIp string `protobuf:"bytes,2,opt,name=LastIp,proto3" json:"LastIp,omitempty"` // contains filtered or unexported fields }
FireWallVerifyRequest 防火墙验证
func (*FireWallVerifyReq) Descriptor
deprecated
added in
v0.0.28
func (*FireWallVerifyReq) Descriptor() ([]byte, []int)
Deprecated: Use FireWallVerifyReq.ProtoReflect.Descriptor instead.
func (*FireWallVerifyReq) GetLastIp ¶ added in v0.0.28
func (x *FireWallVerifyReq) GetLastIp() string
func (*FireWallVerifyReq) ProtoMessage ¶ added in v0.0.28
func (*FireWallVerifyReq) ProtoMessage()
func (*FireWallVerifyReq) ProtoReflect ¶ added in v0.0.28
func (x *FireWallVerifyReq) ProtoReflect() protoreflect.Message
func (*FireWallVerifyReq) Reset ¶ added in v0.0.28
func (x *FireWallVerifyReq) Reset()
func (*FireWallVerifyReq) String ¶ added in v0.0.28
func (x *FireWallVerifyReq) String() string
func (*FireWallVerifyReq) Validate ¶ added in v0.0.28
func (m *FireWallVerifyReq) Validate() error
Validate checks the field values on FireWallVerifyReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*FireWallVerifyReq) ValidateAll ¶ added in v0.0.28
func (m *FireWallVerifyReq) ValidateAll() error
ValidateAll checks the field values on FireWallVerifyReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FireWallVerifyReqMultiError, or nil if none found.
type FireWallVerifyReqMultiError ¶ added in v0.0.28
type FireWallVerifyReqMultiError []error
FireWallVerifyReqMultiError is an error wrapping multiple validation errors returned by FireWallVerifyReq.ValidateAll() if the designated constraints aren't met.
func (FireWallVerifyReqMultiError) AllErrors ¶ added in v0.0.28
func (m FireWallVerifyReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FireWallVerifyReqMultiError) Error ¶ added in v0.0.28
func (m FireWallVerifyReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FireWallVerifyReqValidationError ¶ added in v0.0.28
type FireWallVerifyReqValidationError struct {
// contains filtered or unexported fields
}
FireWallVerifyReqValidationError is the validation error returned by FireWallVerifyReq.Validate if the designated constraints aren't met.
func (FireWallVerifyReqValidationError) Cause ¶ added in v0.0.28
func (e FireWallVerifyReqValidationError) Cause() error
Cause function returns cause value.
func (FireWallVerifyReqValidationError) Error ¶ added in v0.0.28
func (e FireWallVerifyReqValidationError) Error() string
Error satisfies the builtin error interface
func (FireWallVerifyReqValidationError) ErrorName ¶ added in v0.0.28
func (e FireWallVerifyReqValidationError) ErrorName() string
ErrorName returns error name.
func (FireWallVerifyReqValidationError) Field ¶ added in v0.0.28
func (e FireWallVerifyReqValidationError) Field() string
Field function returns field value.
func (FireWallVerifyReqValidationError) Key ¶ added in v0.0.28
func (e FireWallVerifyReqValidationError) Key() bool
Key function returns key value.
func (FireWallVerifyReqValidationError) Reason ¶ added in v0.0.28
func (e FireWallVerifyReqValidationError) Reason() string
Reason function returns reason value.
type GetCaptchaRep ¶ added in v0.0.28
type GetCaptchaRep struct { CaptchaId string `protobuf:"bytes,2,opt,name=captchaId,proto3" json:"captchaId,omitempty"` Data string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
GetCaptchaRep 获取验证码返回
func (*GetCaptchaRep) Descriptor
deprecated
added in
v0.0.28
func (*GetCaptchaRep) Descriptor() ([]byte, []int)
Deprecated: Use GetCaptchaRep.ProtoReflect.Descriptor instead.
func (*GetCaptchaRep) GetCaptchaId ¶ added in v0.0.28
func (x *GetCaptchaRep) GetCaptchaId() string
func (*GetCaptchaRep) GetData ¶ added in v0.0.28
func (x *GetCaptchaRep) GetData() string
func (*GetCaptchaRep) ProtoMessage ¶ added in v0.0.28
func (*GetCaptchaRep) ProtoMessage()
func (*GetCaptchaRep) ProtoReflect ¶ added in v0.0.28
func (x *GetCaptchaRep) ProtoReflect() protoreflect.Message
func (*GetCaptchaRep) Reset ¶ added in v0.0.28
func (x *GetCaptchaRep) Reset()
func (*GetCaptchaRep) String ¶ added in v0.0.28
func (x *GetCaptchaRep) String() string
func (*GetCaptchaRep) Validate ¶ added in v0.0.28
func (m *GetCaptchaRep) Validate() error
Validate checks the field values on GetCaptchaRep with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetCaptchaRep) ValidateAll ¶ added in v0.0.28
func (m *GetCaptchaRep) ValidateAll() error
ValidateAll checks the field values on GetCaptchaRep with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetCaptchaRepMultiError, or nil if none found.
type GetCaptchaRepMultiError ¶ added in v0.0.28
type GetCaptchaRepMultiError []error
GetCaptchaRepMultiError is an error wrapping multiple validation errors returned by GetCaptchaRep.ValidateAll() if the designated constraints aren't met.
func (GetCaptchaRepMultiError) AllErrors ¶ added in v0.0.28
func (m GetCaptchaRepMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetCaptchaRepMultiError) Error ¶ added in v0.0.28
func (m GetCaptchaRepMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetCaptchaRepValidationError ¶ added in v0.0.28
type GetCaptchaRepValidationError struct {
// contains filtered or unexported fields
}
GetCaptchaRepValidationError is the validation error returned by GetCaptchaRep.Validate if the designated constraints aren't met.
func (GetCaptchaRepValidationError) Cause ¶ added in v0.0.28
func (e GetCaptchaRepValidationError) Cause() error
Cause function returns cause value.
func (GetCaptchaRepValidationError) Error ¶ added in v0.0.28
func (e GetCaptchaRepValidationError) Error() string
Error satisfies the builtin error interface
func (GetCaptchaRepValidationError) ErrorName ¶ added in v0.0.28
func (e GetCaptchaRepValidationError) ErrorName() string
ErrorName returns error name.
func (GetCaptchaRepValidationError) Field ¶ added in v0.0.28
func (e GetCaptchaRepValidationError) Field() string
Field function returns field value.
func (GetCaptchaRepValidationError) Key ¶ added in v0.0.28
func (e GetCaptchaRepValidationError) Key() bool
Key function returns key value.
func (GetCaptchaRepValidationError) Reason ¶ added in v0.0.28
func (e GetCaptchaRepValidationError) Reason() string
Reason function returns reason value.
type GetCaptchaReq ¶ added in v0.0.28
type GetCaptchaReq struct { // IP LastIp string `protobuf:"bytes,2,opt,name=LastIp,proto3" json:"LastIp,omitempty"` // contains filtered or unexported fields }
GetCaptchaReq 获取图形验证码
func (*GetCaptchaReq) Descriptor
deprecated
added in
v0.0.28
func (*GetCaptchaReq) Descriptor() ([]byte, []int)
Deprecated: Use GetCaptchaReq.ProtoReflect.Descriptor instead.
func (*GetCaptchaReq) GetLastIp ¶ added in v0.0.28
func (x *GetCaptchaReq) GetLastIp() string
func (*GetCaptchaReq) ProtoMessage ¶ added in v0.0.28
func (*GetCaptchaReq) ProtoMessage()
func (*GetCaptchaReq) ProtoReflect ¶ added in v0.0.28
func (x *GetCaptchaReq) ProtoReflect() protoreflect.Message
func (*GetCaptchaReq) Reset ¶ added in v0.0.28
func (x *GetCaptchaReq) Reset()
func (*GetCaptchaReq) String ¶ added in v0.0.28
func (x *GetCaptchaReq) String() string
func (*GetCaptchaReq) Validate ¶ added in v0.0.28
func (m *GetCaptchaReq) Validate() error
Validate checks the field values on GetCaptchaReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetCaptchaReq) ValidateAll ¶ added in v0.0.28
func (m *GetCaptchaReq) ValidateAll() error
ValidateAll checks the field values on GetCaptchaReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetCaptchaReqMultiError, or nil if none found.
type GetCaptchaReqMultiError ¶ added in v0.0.28
type GetCaptchaReqMultiError []error
GetCaptchaReqMultiError is an error wrapping multiple validation errors returned by GetCaptchaReq.ValidateAll() if the designated constraints aren't met.
func (GetCaptchaReqMultiError) AllErrors ¶ added in v0.0.28
func (m GetCaptchaReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetCaptchaReqMultiError) Error ¶ added in v0.0.28
func (m GetCaptchaReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetCaptchaReqValidationError ¶ added in v0.0.28
type GetCaptchaReqValidationError struct {
// contains filtered or unexported fields
}
GetCaptchaReqValidationError is the validation error returned by GetCaptchaReq.Validate if the designated constraints aren't met.
func (GetCaptchaReqValidationError) Cause ¶ added in v0.0.28
func (e GetCaptchaReqValidationError) Cause() error
Cause function returns cause value.
func (GetCaptchaReqValidationError) Error ¶ added in v0.0.28
func (e GetCaptchaReqValidationError) Error() string
Error satisfies the builtin error interface
func (GetCaptchaReqValidationError) ErrorName ¶ added in v0.0.28
func (e GetCaptchaReqValidationError) ErrorName() string
ErrorName returns error name.
func (GetCaptchaReqValidationError) Field ¶ added in v0.0.28
func (e GetCaptchaReqValidationError) Field() string
Field function returns field value.
func (GetCaptchaReqValidationError) Key ¶ added in v0.0.28
func (e GetCaptchaReqValidationError) Key() bool
Key function returns key value.
func (GetCaptchaReqValidationError) Reason ¶ added in v0.0.28
func (e GetCaptchaReqValidationError) Reason() string
Reason function returns reason value.
type UnimplementedCommonServer ¶
type UnimplementedCommonServer struct { }
UnimplementedCommonServer must be embedded to have forward compatible implementations.
func (UnimplementedCommonServer) FireWallAddToWhitelist ¶ added in v0.0.30
func (UnimplementedCommonServer) FireWallAddToWhitelist(context.Context, *FireWallVerifyReq) (*FireWallVerifyRep, error)
func (UnimplementedCommonServer) FireWallBlockIP ¶ added in v0.0.31
func (UnimplementedCommonServer) FireWallBlockIP(context.Context, *FireWallVerifyReq) (*FireWallVerifyRep, error)
func (UnimplementedCommonServer) FireWallUnblockIP ¶ added in v0.0.30
func (UnimplementedCommonServer) FireWallUnblockIP(context.Context, *FireWallVerifyReq) (*FireWallVerifyRep, error)
func (UnimplementedCommonServer) FireWallVerify ¶ added in v0.0.26
func (UnimplementedCommonServer) FireWallVerify(context.Context, *FireWallVerifyReq) (*FireWallVerifyRep, error)
func (UnimplementedCommonServer) GetBlockedIPs ¶ added in v0.0.33
func (UnimplementedCommonServer) GetBlockedIPs(context.Context, *FireWallListReq) (*FireWallListRep, error)
func (UnimplementedCommonServer) GetCaptcha ¶
func (UnimplementedCommonServer) GetCaptcha(context.Context, *GetCaptchaReq) (*GetCaptchaRep, error)
func (UnimplementedCommonServer) GetWhitelistedIPs ¶ added in v0.0.33
func (UnimplementedCommonServer) GetWhitelistedIPs(context.Context, *FireWallListReq) (*FireWallListRep, error)
func (UnimplementedCommonServer) RemoveFromWhitelist ¶ added in v0.0.30
func (UnimplementedCommonServer) RemoveFromWhitelist(context.Context, *FireWallVerifyReq) (*FireWallVerifyRep, error)
func (UnimplementedCommonServer) UpToken ¶ added in v0.0.34
func (UnimplementedCommonServer) UpToken(context.Context, *emptypb.Empty) (*UpTokenRep, error)
func (UnimplementedCommonServer) UploadFile ¶ added in v0.0.36
func (UnimplementedCommonServer) UploadFile(context.Context, *UploadFileReq) (*UploadFileRep, error)
func (UnimplementedCommonServer) VerifyCaptcha ¶
func (UnimplementedCommonServer) VerifyCaptcha(context.Context, *VerifyCaptchaReq) (*VerifyCaptchaRep, error)
type UnsafeCommonServer ¶
type UnsafeCommonServer interface {
// contains filtered or unexported methods
}
UnsafeCommonServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CommonServer will result in compilation errors.
type UpTokenRep ¶ added in v0.0.34
type UpTokenRep struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
Token
func (*UpTokenRep) Descriptor
deprecated
added in
v0.0.34
func (*UpTokenRep) Descriptor() ([]byte, []int)
Deprecated: Use UpTokenRep.ProtoReflect.Descriptor instead.
func (*UpTokenRep) GetToken ¶ added in v0.0.34
func (x *UpTokenRep) GetToken() string
func (*UpTokenRep) ProtoMessage ¶ added in v0.0.34
func (*UpTokenRep) ProtoMessage()
func (*UpTokenRep) ProtoReflect ¶ added in v0.0.34
func (x *UpTokenRep) ProtoReflect() protoreflect.Message
func (*UpTokenRep) Reset ¶ added in v0.0.34
func (x *UpTokenRep) Reset()
func (*UpTokenRep) String ¶ added in v0.0.34
func (x *UpTokenRep) String() string
func (*UpTokenRep) Validate ¶ added in v0.0.34
func (m *UpTokenRep) Validate() error
Validate checks the field values on UpTokenRep with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpTokenRep) ValidateAll ¶ added in v0.0.34
func (m *UpTokenRep) ValidateAll() error
ValidateAll checks the field values on UpTokenRep with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpTokenRepMultiError, or nil if none found.
type UpTokenRepMultiError ¶ added in v0.0.34
type UpTokenRepMultiError []error
UpTokenRepMultiError is an error wrapping multiple validation errors returned by UpTokenRep.ValidateAll() if the designated constraints aren't met.
func (UpTokenRepMultiError) AllErrors ¶ added in v0.0.34
func (m UpTokenRepMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpTokenRepMultiError) Error ¶ added in v0.0.34
func (m UpTokenRepMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpTokenRepValidationError ¶ added in v0.0.34
type UpTokenRepValidationError struct {
// contains filtered or unexported fields
}
UpTokenRepValidationError is the validation error returned by UpTokenRep.Validate if the designated constraints aren't met.
func (UpTokenRepValidationError) Cause ¶ added in v0.0.34
func (e UpTokenRepValidationError) Cause() error
Cause function returns cause value.
func (UpTokenRepValidationError) Error ¶ added in v0.0.34
func (e UpTokenRepValidationError) Error() string
Error satisfies the builtin error interface
func (UpTokenRepValidationError) ErrorName ¶ added in v0.0.34
func (e UpTokenRepValidationError) ErrorName() string
ErrorName returns error name.
func (UpTokenRepValidationError) Field ¶ added in v0.0.34
func (e UpTokenRepValidationError) Field() string
Field function returns field value.
func (UpTokenRepValidationError) Key ¶ added in v0.0.34
func (e UpTokenRepValidationError) Key() bool
Key function returns key value.
func (UpTokenRepValidationError) Reason ¶ added in v0.0.34
func (e UpTokenRepValidationError) Reason() string
Reason function returns reason value.
type UploadFileRep ¶ added in v0.0.36
type UploadFileRep struct { File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"` // contains filtered or unexported fields }
返回地址
func (*UploadFileRep) Descriptor
deprecated
added in
v0.0.36
func (*UploadFileRep) Descriptor() ([]byte, []int)
Deprecated: Use UploadFileRep.ProtoReflect.Descriptor instead.
func (*UploadFileRep) GetFile ¶ added in v0.0.36
func (x *UploadFileRep) GetFile() string
func (*UploadFileRep) ProtoMessage ¶ added in v0.0.36
func (*UploadFileRep) ProtoMessage()
func (*UploadFileRep) ProtoReflect ¶ added in v0.0.36
func (x *UploadFileRep) ProtoReflect() protoreflect.Message
func (*UploadFileRep) Reset ¶ added in v0.0.36
func (x *UploadFileRep) Reset()
func (*UploadFileRep) String ¶ added in v0.0.36
func (x *UploadFileRep) String() string
func (*UploadFileRep) Validate ¶ added in v0.0.36
func (m *UploadFileRep) Validate() error
Validate checks the field values on UploadFileRep with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UploadFileRep) ValidateAll ¶ added in v0.0.36
func (m *UploadFileRep) ValidateAll() error
ValidateAll checks the field values on UploadFileRep with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UploadFileRepMultiError, or nil if none found.
type UploadFileRepMultiError ¶ added in v0.0.36
type UploadFileRepMultiError []error
UploadFileRepMultiError is an error wrapping multiple validation errors returned by UploadFileRep.ValidateAll() if the designated constraints aren't met.
func (UploadFileRepMultiError) AllErrors ¶ added in v0.0.36
func (m UploadFileRepMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UploadFileRepMultiError) Error ¶ added in v0.0.36
func (m UploadFileRepMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UploadFileRepValidationError ¶ added in v0.0.36
type UploadFileRepValidationError struct {
// contains filtered or unexported fields
}
UploadFileRepValidationError is the validation error returned by UploadFileRep.Validate if the designated constraints aren't met.
func (UploadFileRepValidationError) Cause ¶ added in v0.0.36
func (e UploadFileRepValidationError) Cause() error
Cause function returns cause value.
func (UploadFileRepValidationError) Error ¶ added in v0.0.36
func (e UploadFileRepValidationError) Error() string
Error satisfies the builtin error interface
func (UploadFileRepValidationError) ErrorName ¶ added in v0.0.36
func (e UploadFileRepValidationError) ErrorName() string
ErrorName returns error name.
func (UploadFileRepValidationError) Field ¶ added in v0.0.36
func (e UploadFileRepValidationError) Field() string
Field function returns field value.
func (UploadFileRepValidationError) Key ¶ added in v0.0.36
func (e UploadFileRepValidationError) Key() bool
Key function returns key value.
func (UploadFileRepValidationError) Reason ¶ added in v0.0.36
func (e UploadFileRepValidationError) Reason() string
Reason function returns reason value.
type UploadFileReq ¶ added in v0.0.36
type UploadFileReq struct { File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"` Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
上传文件
func (*UploadFileReq) Descriptor
deprecated
added in
v0.0.36
func (*UploadFileReq) Descriptor() ([]byte, []int)
Deprecated: Use UploadFileReq.ProtoReflect.Descriptor instead.
func (*UploadFileReq) GetFile ¶ added in v0.0.36
func (x *UploadFileReq) GetFile() string
func (*UploadFileReq) GetPath ¶ added in v0.0.36
func (x *UploadFileReq) GetPath() string
func (*UploadFileReq) ProtoMessage ¶ added in v0.0.36
func (*UploadFileReq) ProtoMessage()
func (*UploadFileReq) ProtoReflect ¶ added in v0.0.36
func (x *UploadFileReq) ProtoReflect() protoreflect.Message
func (*UploadFileReq) Reset ¶ added in v0.0.36
func (x *UploadFileReq) Reset()
func (*UploadFileReq) String ¶ added in v0.0.36
func (x *UploadFileReq) String() string
func (*UploadFileReq) Validate ¶ added in v0.0.36
func (m *UploadFileReq) Validate() error
Validate checks the field values on UploadFileReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UploadFileReq) ValidateAll ¶ added in v0.0.36
func (m *UploadFileReq) ValidateAll() error
ValidateAll checks the field values on UploadFileReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UploadFileReqMultiError, or nil if none found.
type UploadFileReqMultiError ¶ added in v0.0.36
type UploadFileReqMultiError []error
UploadFileReqMultiError is an error wrapping multiple validation errors returned by UploadFileReq.ValidateAll() if the designated constraints aren't met.
func (UploadFileReqMultiError) AllErrors ¶ added in v0.0.36
func (m UploadFileReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UploadFileReqMultiError) Error ¶ added in v0.0.36
func (m UploadFileReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UploadFileReqValidationError ¶ added in v0.0.36
type UploadFileReqValidationError struct {
// contains filtered or unexported fields
}
UploadFileReqValidationError is the validation error returned by UploadFileReq.Validate if the designated constraints aren't met.
func (UploadFileReqValidationError) Cause ¶ added in v0.0.36
func (e UploadFileReqValidationError) Cause() error
Cause function returns cause value.
func (UploadFileReqValidationError) Error ¶ added in v0.0.36
func (e UploadFileReqValidationError) Error() string
Error satisfies the builtin error interface
func (UploadFileReqValidationError) ErrorName ¶ added in v0.0.36
func (e UploadFileReqValidationError) ErrorName() string
ErrorName returns error name.
func (UploadFileReqValidationError) Field ¶ added in v0.0.36
func (e UploadFileReqValidationError) Field() string
Field function returns field value.
func (UploadFileReqValidationError) Key ¶ added in v0.0.36
func (e UploadFileReqValidationError) Key() bool
Key function returns key value.
func (UploadFileReqValidationError) Reason ¶ added in v0.0.36
func (e UploadFileReqValidationError) Reason() string
Reason function returns reason value.
type VerifyCaptchaRep ¶ added in v0.0.28
type VerifyCaptchaRep struct { // 状态 Status bool `protobuf:"varint,1,opt,name=Status,proto3" json:"Status,omitempty"` // contains filtered or unexported fields }
验证验证码
func (*VerifyCaptchaRep) Descriptor
deprecated
added in
v0.0.28
func (*VerifyCaptchaRep) Descriptor() ([]byte, []int)
Deprecated: Use VerifyCaptchaRep.ProtoReflect.Descriptor instead.
func (*VerifyCaptchaRep) GetStatus ¶ added in v0.0.28
func (x *VerifyCaptchaRep) GetStatus() bool
func (*VerifyCaptchaRep) ProtoMessage ¶ added in v0.0.28
func (*VerifyCaptchaRep) ProtoMessage()
func (*VerifyCaptchaRep) ProtoReflect ¶ added in v0.0.28
func (x *VerifyCaptchaRep) ProtoReflect() protoreflect.Message
func (*VerifyCaptchaRep) Reset ¶ added in v0.0.28
func (x *VerifyCaptchaRep) Reset()
func (*VerifyCaptchaRep) String ¶ added in v0.0.28
func (x *VerifyCaptchaRep) String() string
func (*VerifyCaptchaRep) Validate ¶ added in v0.0.28
func (m *VerifyCaptchaRep) Validate() error
Validate checks the field values on VerifyCaptchaRep with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*VerifyCaptchaRep) ValidateAll ¶ added in v0.0.28
func (m *VerifyCaptchaRep) ValidateAll() error
ValidateAll checks the field values on VerifyCaptchaRep with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in VerifyCaptchaRepMultiError, or nil if none found.
type VerifyCaptchaRepMultiError ¶ added in v0.0.28
type VerifyCaptchaRepMultiError []error
VerifyCaptchaRepMultiError is an error wrapping multiple validation errors returned by VerifyCaptchaRep.ValidateAll() if the designated constraints aren't met.
func (VerifyCaptchaRepMultiError) AllErrors ¶ added in v0.0.28
func (m VerifyCaptchaRepMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (VerifyCaptchaRepMultiError) Error ¶ added in v0.0.28
func (m VerifyCaptchaRepMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type VerifyCaptchaRepValidationError ¶ added in v0.0.28
type VerifyCaptchaRepValidationError struct {
// contains filtered or unexported fields
}
VerifyCaptchaRepValidationError is the validation error returned by VerifyCaptchaRep.Validate if the designated constraints aren't met.
func (VerifyCaptchaRepValidationError) Cause ¶ added in v0.0.28
func (e VerifyCaptchaRepValidationError) Cause() error
Cause function returns cause value.
func (VerifyCaptchaRepValidationError) Error ¶ added in v0.0.28
func (e VerifyCaptchaRepValidationError) Error() string
Error satisfies the builtin error interface
func (VerifyCaptchaRepValidationError) ErrorName ¶ added in v0.0.28
func (e VerifyCaptchaRepValidationError) ErrorName() string
ErrorName returns error name.
func (VerifyCaptchaRepValidationError) Field ¶ added in v0.0.28
func (e VerifyCaptchaRepValidationError) Field() string
Field function returns field value.
func (VerifyCaptchaRepValidationError) Key ¶ added in v0.0.28
func (e VerifyCaptchaRepValidationError) Key() bool
Key function returns key value.
func (VerifyCaptchaRepValidationError) Reason ¶ added in v0.0.28
func (e VerifyCaptchaRepValidationError) Reason() string
Reason function returns reason value.
type VerifyCaptchaReq ¶ added in v0.0.28
type VerifyCaptchaReq struct { // 验证码ID CaptchaId string `protobuf:"bytes,2,opt,name=CaptchaId,proto3" json:"CaptchaId,omitempty"` // 回答 Answer string `protobuf:"bytes,3,opt,name=Answer,proto3" json:"Answer,omitempty"` // IP LastIp string `protobuf:"bytes,4,opt,name=LastIp,proto3" json:"LastIp,omitempty"` // contains filtered or unexported fields }
验证验证码
func (*VerifyCaptchaReq) Descriptor
deprecated
added in
v0.0.28
func (*VerifyCaptchaReq) Descriptor() ([]byte, []int)
Deprecated: Use VerifyCaptchaReq.ProtoReflect.Descriptor instead.
func (*VerifyCaptchaReq) GetAnswer ¶ added in v0.0.28
func (x *VerifyCaptchaReq) GetAnswer() string
func (*VerifyCaptchaReq) GetCaptchaId ¶ added in v0.0.28
func (x *VerifyCaptchaReq) GetCaptchaId() string
func (*VerifyCaptchaReq) GetLastIp ¶ added in v0.0.28
func (x *VerifyCaptchaReq) GetLastIp() string
func (*VerifyCaptchaReq) ProtoMessage ¶ added in v0.0.28
func (*VerifyCaptchaReq) ProtoMessage()
func (*VerifyCaptchaReq) ProtoReflect ¶ added in v0.0.28
func (x *VerifyCaptchaReq) ProtoReflect() protoreflect.Message
func (*VerifyCaptchaReq) Reset ¶ added in v0.0.28
func (x *VerifyCaptchaReq) Reset()
func (*VerifyCaptchaReq) String ¶ added in v0.0.28
func (x *VerifyCaptchaReq) String() string
func (*VerifyCaptchaReq) Validate ¶ added in v0.0.28
func (m *VerifyCaptchaReq) Validate() error
Validate checks the field values on VerifyCaptchaReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*VerifyCaptchaReq) ValidateAll ¶ added in v0.0.28
func (m *VerifyCaptchaReq) ValidateAll() error
ValidateAll checks the field values on VerifyCaptchaReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in VerifyCaptchaReqMultiError, or nil if none found.
type VerifyCaptchaReqMultiError ¶ added in v0.0.28
type VerifyCaptchaReqMultiError []error
VerifyCaptchaReqMultiError is an error wrapping multiple validation errors returned by VerifyCaptchaReq.ValidateAll() if the designated constraints aren't met.
func (VerifyCaptchaReqMultiError) AllErrors ¶ added in v0.0.28
func (m VerifyCaptchaReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (VerifyCaptchaReqMultiError) Error ¶ added in v0.0.28
func (m VerifyCaptchaReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type VerifyCaptchaReqValidationError ¶ added in v0.0.28
type VerifyCaptchaReqValidationError struct {
// contains filtered or unexported fields
}
VerifyCaptchaReqValidationError is the validation error returned by VerifyCaptchaReq.Validate if the designated constraints aren't met.
func (VerifyCaptchaReqValidationError) Cause ¶ added in v0.0.28
func (e VerifyCaptchaReqValidationError) Cause() error
Cause function returns cause value.
func (VerifyCaptchaReqValidationError) Error ¶ added in v0.0.28
func (e VerifyCaptchaReqValidationError) Error() string
Error satisfies the builtin error interface
func (VerifyCaptchaReqValidationError) ErrorName ¶ added in v0.0.28
func (e VerifyCaptchaReqValidationError) ErrorName() string
ErrorName returns error name.
func (VerifyCaptchaReqValidationError) Field ¶ added in v0.0.28
func (e VerifyCaptchaReqValidationError) Field() string
Field function returns field value.
func (VerifyCaptchaReqValidationError) Key ¶ added in v0.0.28
func (e VerifyCaptchaReqValidationError) Key() bool
Key function returns key value.
func (VerifyCaptchaReqValidationError) Reason ¶ added in v0.0.28
func (e VerifyCaptchaReqValidationError) Reason() string
Reason function returns reason value.