v1

package
v0.0.32 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
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_FireWallAddToWhitelist_FullMethodName = "/api.common.v1.Common/FireWallAddToWhitelist"
	Common_RemoveFromWhitelist_FullMethodName    = "/api.common.v1.Common/RemoveFromWhitelist"
)
View Source
const OperationCommonFireWallAddToWhitelist = "/api.common.v1.Common/FireWallAddToWhitelist"
View Source
const OperationCommonFireWallBlockIP = "/api.common.v1.Common/FireWallBlockIP"
View Source
const OperationCommonFireWallUnblockIP = "/api.common.v1.Common/FireWallUnblockIP"
View Source
const OperationCommonFireWallVerify = "/api.common.v1.Common/FireWallVerify"
View Source
const OperationCommonGetCaptcha = "/api.common.v1.Common/GetCaptcha"
View Source
const OperationCommonRemoveFromWhitelist = "/api.common.v1.Common/RemoveFromWhitelist"
View Source
const OperationCommonVerifyCaptcha = "/api.common.v1.Common/VerifyCaptcha"

Variables

View Source
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: "FireWallAddToWhitelist",
			Handler:    _Common_FireWallAddToWhitelist_Handler,
		},
		{
			MethodName: "RemoveFromWhitelist",
			Handler:    _Common_RemoveFromWhitelist_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)

View Source
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)
	// 防火墙添加白名单IP
	FireWallAddToWhitelist(ctx context.Context, in *FireWallVerifyReq, opts ...grpc.CallOption) (*FireWallVerifyRep, error)
	// 防火墙从白名单中删除IP
	RemoveFromWhitelist(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 {
	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)
	GetCaptcha(ctx context.Context, req *GetCaptchaReq, opts ...http.CallOption) (rsp *GetCaptchaRep, err error)
	RemoveFromWhitelist(ctx context.Context, req *FireWallVerifyReq, opts ...http.CallOption) (rsp *FireWallVerifyRep, 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 (*CommonHTTPClientImpl) GetCaptcha

func (c *CommonHTTPClientImpl) GetCaptcha(ctx context.Context, in *GetCaptchaReq, opts ...http.CallOption) (*GetCaptchaRep, 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) VerifyCaptcha

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)
	// GetCaptcha 获取验证码
	GetCaptcha(context.Context, *GetCaptchaReq) (*GetCaptchaRep, error)
	// RemoveFromWhitelist 防火墙从白名单中删除IP
	RemoveFromWhitelist(context.Context, *FireWallVerifyReq) (*FireWallVerifyRep, 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)
	// 防火墙添加白名单IP
	FireWallAddToWhitelist(context.Context, *FireWallVerifyReq) (*FireWallVerifyRep, error)
	// 防火墙从白名单中删除IP
	RemoveFromWhitelist(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

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

Cause function returns cause value.

func (FireWallVerifyRepValidationError) Error added in v0.0.28

Error satisfies the builtin error interface

func (FireWallVerifyRepValidationError) ErrorName added in v0.0.28

ErrorName returns error name.

func (FireWallVerifyRepValidationError) Field added in v0.0.28

Field function returns field value.

func (FireWallVerifyRepValidationError) Key added in v0.0.28

Key function returns key value.

func (FireWallVerifyRepValidationError) Reason added in v0.0.28

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

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

Cause function returns cause value.

func (FireWallVerifyReqValidationError) Error added in v0.0.28

Error satisfies the builtin error interface

func (FireWallVerifyReqValidationError) ErrorName added in v0.0.28

ErrorName returns error name.

func (FireWallVerifyReqValidationError) Field added in v0.0.28

Field function returns field value.

func (FireWallVerifyReqValidationError) Key added in v0.0.28

Key function returns key value.

func (FireWallVerifyReqValidationError) Reason added in v0.0.28

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

Cause function returns cause value.

func (GetCaptchaRepValidationError) Error added in v0.0.28

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

Field function returns field value.

func (GetCaptchaRepValidationError) Key added in v0.0.28

Key function returns key value.

func (GetCaptchaRepValidationError) Reason added in v0.0.28

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

Cause function returns cause value.

func (GetCaptchaReqValidationError) Error added in v0.0.28

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

Field function returns field value.

func (GetCaptchaReqValidationError) Key added in v0.0.28

Key function returns key value.

func (GetCaptchaReqValidationError) Reason added in v0.0.28

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) FireWallBlockIP added in v0.0.31

func (UnimplementedCommonServer) FireWallUnblockIP added in v0.0.30

func (UnimplementedCommonServer) FireWallVerify added in v0.0.26

func (UnimplementedCommonServer) GetCaptcha

func (UnimplementedCommonServer) RemoveFromWhitelist added in v0.0.30

func (UnimplementedCommonServer) VerifyCaptcha

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

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

Cause function returns cause value.

func (VerifyCaptchaRepValidationError) Error added in v0.0.28

Error satisfies the builtin error interface

func (VerifyCaptchaRepValidationError) ErrorName added in v0.0.28

ErrorName returns error name.

func (VerifyCaptchaRepValidationError) Field added in v0.0.28

Field function returns field value.

func (VerifyCaptchaRepValidationError) Key added in v0.0.28

Key function returns key value.

func (VerifyCaptchaRepValidationError) Reason added in v0.0.28

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

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

Cause function returns cause value.

func (VerifyCaptchaReqValidationError) Error added in v0.0.28

Error satisfies the builtin error interface

func (VerifyCaptchaReqValidationError) ErrorName added in v0.0.28

ErrorName returns error name.

func (VerifyCaptchaReqValidationError) Field added in v0.0.28

Field function returns field value.

func (VerifyCaptchaReqValidationError) Key added in v0.0.28

Key function returns key value.

func (VerifyCaptchaReqValidationError) Reason added in v0.0.28

Reason function returns reason value.

Jump to

Keyboard shortcuts

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