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) FireWallVerify(ctx context.Context, in *FireWallVerifyReq, opts ...http.CallOption) (*FireWallVerifyRep, error)
- func (c *CommonHTTPClientImpl) GetCaptcha(ctx context.Context, in *GetCaptchaReq, opts ...http.CallOption) (*GetCaptchaRep, error)
- func (c *CommonHTTPClientImpl) VerifyCaptcha(ctx context.Context, in *VerifyCaptchaReq, opts ...http.CallOption) (*VerifyCaptchaRep, error)
- type CommonHTTPServer
- type CommonServer
- 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) FireWallVerify(context.Context, *FireWallVerifyReq) (*FireWallVerifyRep, error)
- func (UnimplementedCommonServer) GetCaptcha(context.Context, *GetCaptchaReq) (*GetCaptchaRep, error)
- func (UnimplementedCommonServer) VerifyCaptcha(context.Context, *VerifyCaptchaReq) (*VerifyCaptchaRep, error)
- type UnsafeCommonServer
- 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" )
const OperationCommonFireWallVerify = "/api.common.v1.Common/FireWallVerify"
const OperationCommonGetCaptcha = "/api.common.v1.Common/GetCaptcha"
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, }, }, 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) }
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 { FireWallVerify(ctx context.Context, req *FireWallVerifyReq, opts ...http.CallOption) (rsp *FireWallVerifyRep, err error) GetCaptcha(ctx context.Context, req *GetCaptchaReq, opts ...http.CallOption) (rsp *GetCaptchaRep, 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) FireWallVerify ¶ added in v0.0.26
func (c *CommonHTTPClientImpl) FireWallVerify(ctx context.Context, in *FireWallVerifyReq, opts ...http.CallOption) (*FireWallVerifyRep, error)
func (*CommonHTTPClientImpl) GetCaptcha ¶
func (c *CommonHTTPClientImpl) GetCaptcha(ctx context.Context, in *GetCaptchaReq, opts ...http.CallOption) (*GetCaptchaRep, error)
func (*CommonHTTPClientImpl) VerifyCaptcha ¶
func (c *CommonHTTPClientImpl) VerifyCaptcha(ctx context.Context, in *VerifyCaptchaReq, opts ...http.CallOption) (*VerifyCaptchaRep, error)
type CommonHTTPServer ¶
type CommonHTTPServer interface { // FireWallVerify 防火墙检查 FireWallVerify(context.Context, *FireWallVerifyReq) (*FireWallVerifyRep, error) // GetCaptcha 获取验证码 GetCaptcha(context.Context, *GetCaptchaReq) (*GetCaptchaRep, 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) // contains filtered or unexported methods }
CommonServer is the server API for Common service. All implementations must embed UnimplementedCommonServer for forward compatibility
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) FireWallVerify ¶ added in v0.0.26
func (UnimplementedCommonServer) FireWallVerify(context.Context, *FireWallVerifyReq) (*FireWallVerifyRep, error)
func (UnimplementedCommonServer) GetCaptcha ¶
func (UnimplementedCommonServer) GetCaptcha(context.Context, *GetCaptchaReq) (*GetCaptchaRep, 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 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.