captcha

package
v0.0.43 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CaptchaRpcService_CaptchaGenerate_FullMethodName = "/captcha.CaptchaRpcService/CaptchaGenerate"
)

Variables

View Source
var CaptchaRpcService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "captcha.CaptchaRpcService",
	HandlerType: (*CaptchaRpcServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CaptchaGenerate",
			Handler:    _CaptchaRpcService_CaptchaGenerate_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "captcha.proto",
}

CaptchaRpcService_ServiceDesc is the grpc.ServiceDesc for CaptchaRpcService 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_captcha_proto protoreflect.FileDescriptor

Functions

func RegisterCaptchaRpcServiceServer

func RegisterCaptchaRpcServiceServer(s grpc.ServiceRegistrar, srv CaptchaRpcServiceServer)

Types

type CaptchaReq

type CaptchaReq struct {
	Key       string  `protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty"`
	DotCount  int64   `protobuf:"varint,2,opt,name=DotCount,proto3" json:"DotCount,omitempty"`
	MaxSkew   float64 `protobuf:"fixed64,3,opt,name=MaxSkew,proto3" json:"MaxSkew,omitempty"`
	KeyLong   int64   `protobuf:"varint,4,opt,name=KeyLong,proto3" json:"KeyLong,omitempty"`
	ImgWidth  int64   `protobuf:"varint,5,opt,name=ImgWidth,proto3" json:"ImgWidth,omitempty"`
	ImgHeight int64   `protobuf:"varint,6,opt,name=ImgHeight,proto3" json:"ImgHeight,omitempty"`
	// contains filtered or unexported fields
}

func (*CaptchaReq) Descriptor deprecated

func (*CaptchaReq) Descriptor() ([]byte, []int)

Deprecated: Use CaptchaReq.ProtoReflect.Descriptor instead.

func (*CaptchaReq) GetDotCount

func (x *CaptchaReq) GetDotCount() int64

func (*CaptchaReq) GetImgHeight

func (x *CaptchaReq) GetImgHeight() int64

func (*CaptchaReq) GetImgWidth

func (x *CaptchaReq) GetImgWidth() int64

func (*CaptchaReq) GetKey

func (x *CaptchaReq) GetKey() string

func (*CaptchaReq) GetKeyLong

func (x *CaptchaReq) GetKeyLong() int64

func (*CaptchaReq) GetMaxSkew

func (x *CaptchaReq) GetMaxSkew() float64

func (*CaptchaReq) ProtoMessage

func (*CaptchaReq) ProtoMessage()

func (*CaptchaReq) ProtoReflect

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

func (*CaptchaReq) Reset

func (x *CaptchaReq) Reset()

func (*CaptchaReq) String

func (x *CaptchaReq) String() string

type CaptchaResp

type CaptchaResp struct {
	Code      int32            `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg       string           `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	RequestID string           `protobuf:"bytes,3,opt,name=requestID,proto3" json:"requestID,omitempty"`
	Path      string           `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`
	Data      *CaptchaRespData `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*CaptchaResp) Descriptor deprecated

func (*CaptchaResp) Descriptor() ([]byte, []int)

Deprecated: Use CaptchaResp.ProtoReflect.Descriptor instead.

func (*CaptchaResp) GetCode

func (x *CaptchaResp) GetCode() int32

func (*CaptchaResp) GetData

func (x *CaptchaResp) GetData() *CaptchaRespData

func (*CaptchaResp) GetMsg

func (x *CaptchaResp) GetMsg() string

func (*CaptchaResp) GetPath

func (x *CaptchaResp) GetPath() string

func (*CaptchaResp) GetRequestID

func (x *CaptchaResp) GetRequestID() string

func (*CaptchaResp) ProtoMessage

func (*CaptchaResp) ProtoMessage()

func (*CaptchaResp) ProtoReflect

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

func (*CaptchaResp) Reset

func (x *CaptchaResp) Reset()

func (*CaptchaResp) String

func (x *CaptchaResp) String() string

type CaptchaRespData

type CaptchaRespData struct {
	Key     string `protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty"`
	Account string `protobuf:"bytes,2,opt,name=Account,proto3" json:"Account,omitempty"`
	Img     string `protobuf:"bytes,3,opt,name=Img,proto3" json:"Img,omitempty"`
	Content string `protobuf:"bytes,4,opt,name=Content,proto3" json:"Content,omitempty"`
	// contains filtered or unexported fields
}

func (*CaptchaRespData) Descriptor deprecated

func (*CaptchaRespData) Descriptor() ([]byte, []int)

Deprecated: Use CaptchaRespData.ProtoReflect.Descriptor instead.

func (*CaptchaRespData) GetAccount

func (x *CaptchaRespData) GetAccount() string

func (*CaptchaRespData) GetContent

func (x *CaptchaRespData) GetContent() string

func (*CaptchaRespData) GetImg

func (x *CaptchaRespData) GetImg() string

func (*CaptchaRespData) GetKey

func (x *CaptchaRespData) GetKey() string

func (*CaptchaRespData) ProtoMessage

func (*CaptchaRespData) ProtoMessage()

func (*CaptchaRespData) ProtoReflect

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

func (*CaptchaRespData) Reset

func (x *CaptchaRespData) Reset()

func (*CaptchaRespData) String

func (x *CaptchaRespData) String() string

type CaptchaRpcServiceClient

type CaptchaRpcServiceClient interface {
	CaptchaGenerate(ctx context.Context, in *CaptchaReq, opts ...grpc.CallOption) (*CaptchaResp, error)
}

CaptchaRpcServiceClient is the client API for CaptchaRpcService 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.

type CaptchaRpcServiceServer

type CaptchaRpcServiceServer interface {
	CaptchaGenerate(context.Context, *CaptchaReq) (*CaptchaResp, error)
	// contains filtered or unexported methods
}

CaptchaRpcServiceServer is the server API for CaptchaRpcService service. All implementations must embed UnimplementedCaptchaRpcServiceServer for forward compatibility

type UnimplementedCaptchaRpcServiceServer

type UnimplementedCaptchaRpcServiceServer struct {
}

UnimplementedCaptchaRpcServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedCaptchaRpcServiceServer) CaptchaGenerate

type UnsafeCaptchaRpcServiceServer

type UnsafeCaptchaRpcServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeCaptchaRpcServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CaptchaRpcServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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