Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// optional captcha.Captcha captcha = 7564324;
E_Captcha = &file_captcha_proto_extTypes[0]
)
Extension fields to descriptorpb.MethodOptions.
View Source
var File_captcha_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Captcha ¶
type Captcha struct {
// check_challenge check captcha challenge in rpc method
CheckChallenge bool `protobuf:"varint,1,opt,name=check_challenge,json=checkChallenge,proto3" json:"check_challenge,omitempty"`
// contains filtered or unexported fields
}
func (*Captcha) Descriptor
deprecated
func (*Captcha) GetCheckChallenge ¶
func (*Captcha) ProtoMessage ¶
func (*Captcha) ProtoMessage()
func (*Captcha) ProtoReflect ¶
func (x *Captcha) ProtoReflect() protoreflect.Message
type ProtoCaptcha ¶
type ProtoCaptcha struct {
// contains filtered or unexported fields
}
func NewCaptcha ¶
func NewCaptcha(provider captcha.Provider, secretKey, customHeaderKey string) (*ProtoCaptcha, error)
NewCaptcha create captcha object for access to middleware method
func (*ProtoCaptcha) StreamServerInterceptor ¶
func (c *ProtoCaptcha) StreamServerInterceptor() grpc.StreamServerInterceptor
StreamServerInterceptor captcha validator for stream server interceptor
func (*ProtoCaptcha) UnaryServerInterceptor ¶
func (c *ProtoCaptcha) UnaryServerInterceptor() grpc.UnaryServerInterceptor
UnaryServerInterceptor captcha validator for unary server interceptor
Click to show internal directories.
Click to hide internal directories.