v0

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package v0 is a generated liverpc stub package. This code was generated with go-common/app/tool/liverpc/protoc-gen-liverpc v0.1.

It is generated from these files:

v0/Captcha.proto

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthCaptcha = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCaptcha   = fmt.Errorf("proto: integer overflow")
)

Functions

This section is empty.

Types

type CaptchaCheckReq

type CaptchaCheckReq struct {
	// token值
	Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token"`
	// 输入值
	Phrase string `protobuf:"bytes,2,opt,name=phrase,proto3" json:"phrase"`
}

func (*CaptchaCheckReq) Descriptor

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

func (*CaptchaCheckReq) GetPhrase

func (m *CaptchaCheckReq) GetPhrase() string

func (*CaptchaCheckReq) GetToken

func (m *CaptchaCheckReq) GetToken() string

func (*CaptchaCheckReq) Marshal

func (m *CaptchaCheckReq) Marshal() (dAtA []byte, err error)

func (*CaptchaCheckReq) MarshalTo

func (m *CaptchaCheckReq) MarshalTo(dAtA []byte) (int, error)

func (*CaptchaCheckReq) ProtoMessage

func (*CaptchaCheckReq) ProtoMessage()

func (*CaptchaCheckReq) Reset

func (m *CaptchaCheckReq) Reset()

func (*CaptchaCheckReq) Size

func (m *CaptchaCheckReq) Size() (n int)

func (*CaptchaCheckReq) String

func (m *CaptchaCheckReq) String() string

func (*CaptchaCheckReq) Unmarshal

func (m *CaptchaCheckReq) Unmarshal(dAtA []byte) error

func (*CaptchaCheckReq) XXX_DiscardUnknown

func (m *CaptchaCheckReq) XXX_DiscardUnknown()

func (*CaptchaCheckReq) XXX_Marshal

func (m *CaptchaCheckReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CaptchaCheckReq) XXX_Merge

func (dst *CaptchaCheckReq) XXX_Merge(src proto.Message)

func (*CaptchaCheckReq) XXX_Size

func (m *CaptchaCheckReq) XXX_Size() int

func (*CaptchaCheckReq) XXX_Unmarshal

func (m *CaptchaCheckReq) XXX_Unmarshal(b []byte) error

type CaptchaCheckResp

type CaptchaCheckResp struct {
	// code
	Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code"`
	// msg
	Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg"`
	//
	Data map[int64]int64 `` /* 134-byte string literal not displayed */
}

func (*CaptchaCheckResp) Descriptor

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

func (*CaptchaCheckResp) GetCode

func (m *CaptchaCheckResp) GetCode() int64

func (*CaptchaCheckResp) GetData

func (m *CaptchaCheckResp) GetData() map[int64]int64

func (*CaptchaCheckResp) GetMsg

func (m *CaptchaCheckResp) GetMsg() string

func (*CaptchaCheckResp) Marshal

func (m *CaptchaCheckResp) Marshal() (dAtA []byte, err error)

func (*CaptchaCheckResp) MarshalTo

func (m *CaptchaCheckResp) MarshalTo(dAtA []byte) (int, error)

func (*CaptchaCheckResp) ProtoMessage

func (*CaptchaCheckResp) ProtoMessage()

func (*CaptchaCheckResp) Reset

func (m *CaptchaCheckResp) Reset()

func (*CaptchaCheckResp) Size

func (m *CaptchaCheckResp) Size() (n int)

func (*CaptchaCheckResp) String

func (m *CaptchaCheckResp) String() string

func (*CaptchaCheckResp) Unmarshal

func (m *CaptchaCheckResp) Unmarshal(dAtA []byte) error

func (*CaptchaCheckResp) XXX_DiscardUnknown

func (m *CaptchaCheckResp) XXX_DiscardUnknown()

func (*CaptchaCheckResp) XXX_Marshal

func (m *CaptchaCheckResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CaptchaCheckResp) XXX_Merge

func (dst *CaptchaCheckResp) XXX_Merge(src proto.Message)

func (*CaptchaCheckResp) XXX_Size

func (m *CaptchaCheckResp) XXX_Size() int

func (*CaptchaCheckResp) XXX_Unmarshal

func (m *CaptchaCheckResp) XXX_Unmarshal(b []byte) error

type CaptchaRPCClient

type CaptchaRPCClient interface {
	// * 校验验证码
	//
	Check(ctx context.Context, req *CaptchaCheckReq, opts ...liverpc.CallOption) (resp *CaptchaCheckResp, err error)
}

func NewCaptchaRPCClient

func NewCaptchaRPCClient(client *liverpc.Client) CaptchaRPCClient

NewCaptchaRPCClient creates a client that implements the CaptchaRPCClient interface.

Jump to

Keyboard shortcuts

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