v1

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 v1 is a generated blademaster stub package. This code was generated with go-common/app/tool/bmgen/protoc-gen-bm v0.1.

It is generated from these files:

api/http/v1/http.proto

Index

Constants

This section is empty.

Variables

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

Functions

func RegisterV1CaptchaService

func RegisterV1CaptchaService(e *bm.Engine, svc Captcha, midMap map[string]bm.HandlerFunc)

RegisterV1CaptchaService Register the blademaster route with middleware map midMap is the middleware map, the key is defined in proto

Types

type Captcha

type Captcha interface {
	// 验证码校验 `internal:"true"`
	Verify(ctx context.Context, req *XVerifyReq) (resp *XVerifyResp, err error)
}

XCaptcha

type XVerifyReq

type XVerifyReq struct {
	XAnti                string   `protobuf:"bytes,1,opt,name=_anti,json=Anti,proto3" json:"_anti,omitempty" form:"_anti" validate:"required"`
	Uid                  int64    `protobuf:"varint,2,opt,name=uid,proto3" json:"uid,omitempty" form:"uid" validate:"required"`
	ClientIp             string   `protobuf:"bytes,3,opt,name=client_ip,json=clientIp,proto3" json:"client_ip,omitempty" form:"client_ip"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*XVerifyReq) Descriptor

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

func (*XVerifyReq) GetClientIp

func (m *XVerifyReq) GetClientIp() string

func (*XVerifyReq) GetUid

func (m *XVerifyReq) GetUid() int64

func (*XVerifyReq) GetXAnti

func (m *XVerifyReq) GetXAnti() string

func (*XVerifyReq) Marshal

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

func (*XVerifyReq) MarshalTo

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

func (*XVerifyReq) ProtoMessage

func (*XVerifyReq) ProtoMessage()

func (*XVerifyReq) Reset

func (m *XVerifyReq) Reset()

func (*XVerifyReq) Size

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

func (*XVerifyReq) String

func (m *XVerifyReq) String() string

func (*XVerifyReq) Unmarshal

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

func (*XVerifyReq) XXX_DiscardUnknown

func (m *XVerifyReq) XXX_DiscardUnknown()

func (*XVerifyReq) XXX_Marshal

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

func (*XVerifyReq) XXX_Merge

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

func (*XVerifyReq) XXX_Size

func (m *XVerifyReq) XXX_Size() int

func (*XVerifyReq) XXX_Unmarshal

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

type XVerifyResp

type XVerifyResp struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*XVerifyResp) Descriptor

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

func (*XVerifyResp) Marshal

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

func (*XVerifyResp) MarshalTo

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

func (*XVerifyResp) ProtoMessage

func (*XVerifyResp) ProtoMessage()

func (*XVerifyResp) Reset

func (m *XVerifyResp) Reset()

func (*XVerifyResp) Size

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

func (*XVerifyResp) String

func (m *XVerifyResp) String() string

func (*XVerifyResp) Unmarshal

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

func (*XVerifyResp) XXX_DiscardUnknown

func (m *XVerifyResp) XXX_DiscardUnknown()

func (*XVerifyResp) XXX_Marshal

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

func (*XVerifyResp) XXX_Merge

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

func (*XVerifyResp) XXX_Size

func (m *XVerifyResp) XXX_Size() int

func (*XVerifyResp) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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