proto

package
v0.0.0-...-01d020f Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2020 License: MIT Imports: 11 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_captcha_proto protoreflect.FileDescriptor

Functions

func NewCaptchaEndpoints

func NewCaptchaEndpoints() []*api.Endpoint

func RegisterCaptchaHandler

func RegisterCaptchaHandler(s server.Server, hdlr CaptchaHandler, opts ...server.HandlerOption) error

Types

type CaptchaHandler

type CaptchaHandler interface {
	CaptchaId(context.Context, *CaptchaIdRequest, *CaptchaIdResponse) error
	CaptchaVerfify(context.Context, *CaptchaVerfifyRequest, *CaptchaVerfifyResponse) error
}

type CaptchaIdRequest

type CaptchaIdRequest struct {
	// contains filtered or unexported fields
}

func (*CaptchaIdRequest) Descriptor deprecated

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

Deprecated: Use CaptchaIdRequest.ProtoReflect.Descriptor instead.

func (*CaptchaIdRequest) ProtoMessage

func (*CaptchaIdRequest) ProtoMessage()

func (*CaptchaIdRequest) ProtoReflect

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

func (*CaptchaIdRequest) Reset

func (x *CaptchaIdRequest) Reset()

func (*CaptchaIdRequest) String

func (x *CaptchaIdRequest) String() string

type CaptchaIdResponse

type CaptchaIdResponse struct {
	CaptchaId string `protobuf:"bytes,1,opt,name=captcha_id,json=captchaId,proto3" json:"captcha_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CaptchaIdResponse) Descriptor deprecated

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

Deprecated: Use CaptchaIdResponse.ProtoReflect.Descriptor instead.

func (*CaptchaIdResponse) GetCaptchaId

func (x *CaptchaIdResponse) GetCaptchaId() string

func (*CaptchaIdResponse) ProtoMessage

func (*CaptchaIdResponse) ProtoMessage()

func (*CaptchaIdResponse) ProtoReflect

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

func (*CaptchaIdResponse) Reset

func (x *CaptchaIdResponse) Reset()

func (*CaptchaIdResponse) String

func (x *CaptchaIdResponse) String() string

type CaptchaService

type CaptchaService interface {
	CaptchaId(ctx context.Context, in *CaptchaIdRequest, opts ...client.CallOption) (*CaptchaIdResponse, error)
	CaptchaVerfify(ctx context.Context, in *CaptchaVerfifyRequest, opts ...client.CallOption) (*CaptchaVerfifyResponse, error)
}

func NewCaptchaService

func NewCaptchaService(name string, c client.Client) CaptchaService

type CaptchaVerfifyRequest

type CaptchaVerfifyRequest struct {
	CaptchaId string `protobuf:"bytes,1,opt,name=captcha_id,json=captchaId,proto3" json:"captcha_id,omitempty"`
	Solution  string `protobuf:"bytes,2,opt,name=solution,proto3" json:"solution,omitempty"`
	// contains filtered or unexported fields
}

func (*CaptchaVerfifyRequest) Descriptor deprecated

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

Deprecated: Use CaptchaVerfifyRequest.ProtoReflect.Descriptor instead.

func (*CaptchaVerfifyRequest) GetCaptchaId

func (x *CaptchaVerfifyRequest) GetCaptchaId() string

func (*CaptchaVerfifyRequest) GetSolution

func (x *CaptchaVerfifyRequest) GetSolution() string

func (*CaptchaVerfifyRequest) ProtoMessage

func (*CaptchaVerfifyRequest) ProtoMessage()

func (*CaptchaVerfifyRequest) ProtoReflect

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

func (*CaptchaVerfifyRequest) Reset

func (x *CaptchaVerfifyRequest) Reset()

func (*CaptchaVerfifyRequest) String

func (x *CaptchaVerfifyRequest) String() string

type CaptchaVerfifyResponse

type CaptchaVerfifyResponse struct {
	// contains filtered or unexported fields
}

func (*CaptchaVerfifyResponse) Descriptor deprecated

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

Deprecated: Use CaptchaVerfifyResponse.ProtoReflect.Descriptor instead.

func (*CaptchaVerfifyResponse) ProtoMessage

func (*CaptchaVerfifyResponse) ProtoMessage()

func (*CaptchaVerfifyResponse) ProtoReflect

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

func (*CaptchaVerfifyResponse) Reset

func (x *CaptchaVerfifyResponse) Reset()

func (*CaptchaVerfifyResponse) String

func (x *CaptchaVerfifyResponse) String() string

Jump to

Keyboard shortcuts

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