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 ¶
- Variables
- func RegisterV1CaptchaService(e *bm.Engine, svc Captcha, midMap map[string]bm.HandlerFunc)
- type Captcha
- type XVerifyReq
- func (*XVerifyReq) Descriptor() ([]byte, []int)
- func (m *XVerifyReq) GetClientIp() string
- func (m *XVerifyReq) GetUid() int64
- func (m *XVerifyReq) GetXAnti() string
- func (m *XVerifyReq) Marshal() (dAtA []byte, err error)
- func (m *XVerifyReq) MarshalTo(dAtA []byte) (int, error)
- func (*XVerifyReq) ProtoMessage()
- func (m *XVerifyReq) Reset()
- func (m *XVerifyReq) Size() (n int)
- func (m *XVerifyReq) String() string
- func (m *XVerifyReq) Unmarshal(dAtA []byte) error
- func (m *XVerifyReq) XXX_DiscardUnknown()
- func (m *XVerifyReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *XVerifyReq) XXX_Merge(src proto.Message)
- func (m *XVerifyReq) XXX_Size() int
- func (m *XVerifyReq) XXX_Unmarshal(b []byte) error
- type XVerifyResp
- func (*XVerifyResp) Descriptor() ([]byte, []int)
- func (m *XVerifyResp) Marshal() (dAtA []byte, err error)
- func (m *XVerifyResp) MarshalTo(dAtA []byte) (int, error)
- func (*XVerifyResp) ProtoMessage()
- func (m *XVerifyResp) Reset()
- func (m *XVerifyResp) Size() (n int)
- func (m *XVerifyResp) String() string
- func (m *XVerifyResp) Unmarshal(dAtA []byte) error
- func (m *XVerifyResp) XXX_DiscardUnknown()
- func (m *XVerifyResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *XVerifyResp) XXX_Merge(src proto.Message)
- func (m *XVerifyResp) XXX_Size() int
- func (m *XVerifyResp) XXX_Unmarshal(b []byte) error
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 ¶
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) 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) 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
Click to show internal directories.
Click to hide internal directories.