captcha

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Provider_name = map[int32]string{
		0: "GOOGLE",
		1: "CLOUDFLARE",
		2: "HCAPTCHA",
	}
	Provider_value = map[string]int32{
		"GOOGLE":     0,
		"CLOUDFLARE": 1,
		"HCAPTCHA":   2,
	}
)

Enum value maps for Provider.

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 {
	Provider       Provider `protobuf:"varint,1,opt,name=provider,proto3,enum=captcha.Provider" json:"provider,omitempty"`
	CheckChallenge bool     `protobuf:"varint,2,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) GetProvider

func (x *Captcha) GetProvider() Provider

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 Provider

type Provider int32
const (
	Provider_GOOGLE     Provider = 0
	Provider_CLOUDFLARE Provider = 1
	Provider_HCAPTCHA   Provider = 2
)

func (Provider) Descriptor

func (Provider) Descriptor() protoreflect.EnumDescriptor

func (Provider) Enum

func (x Provider) Enum() *Provider

func (Provider) EnumDescriptor deprecated

func (Provider) EnumDescriptor() ([]byte, []int)

Deprecated: Use Provider.Descriptor instead.

func (Provider) Number

func (x Provider) Number() protoreflect.EnumNumber

func (Provider) String

func (x Provider) String() string

func (Provider) Type

Jump to

Keyboard shortcuts

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