proto

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2025 License: MIT Imports: 17 Imported by: 0

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) Descriptor() ([]byte, []int)

Deprecated: Use Captcha.ProtoReflect.Descriptor instead.

func (*Captcha) GetCheckChallenge

func (x *Captcha) GetCheckChallenge() bool

func (*Captcha) ProtoMessage

func (*Captcha) ProtoMessage()

func (*Captcha) ProtoReflect

func (x *Captcha) ProtoReflect() protoreflect.Message

func (*Captcha) Reset

func (x *Captcha) Reset()

func (*Captcha) String

func (x *Captcha) String() string

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

Jump to

Keyboard shortcuts

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