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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthGraph = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGraph   = fmt.Errorf("proto: integer overflow")
)
View Source
var (
	ErrInvalidLengthRisk = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowRisk   = fmt.Errorf("proto: integer overflow")
)

Functions

func RegisterGraphServer

func RegisterGraphServer(s *grpc.Server, srv GraphServer)

func RegisterRiskServer

func RegisterRiskServer(s *grpc.Server, srv RiskServer)

Types

type GraphCheckRequest

type GraphCheckRequest struct {
	MID                  int64    `protobuf:"varint,1,opt,name=mid,proto3" json:"mid" form:"mid" validate:"required"`
	IP                   string   `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip" form:"ip" validate:"required"`
	Customer             int64    `protobuf:"varint,3,opt,name=customer,proto3" json:"customer" form:"customer" validate:"required"`
	ItemID               int64    `protobuf:"varint,4,opt,name=item_id,json=itemId,proto3" json:"item_id" form:"item_id" validate:"required"`
	Voucher              string   `protobuf:"bytes,5,opt,name=voucher,proto3" json:"voucher" form:"voucher" validate:"required"`
	Challenge            string   `protobuf:"bytes,6,opt,name=challenge,proto3" json:"challenge" form:"challenge" validate:"required"`
	Validate             string   `protobuf:"bytes,7,opt,name=validate,proto3" json:"validate" form:"validate" validate:"required"`
	Seccode              string   `protobuf:"bytes,8,opt,name=seccode,proto3" json:"seccode" form:"seccode" validate:"required"`
	ClientType           string   `protobuf:"bytes,9,opt,name=client_type,json=clientType,proto3" json:"client_type" form:"client_type" validate:"required"`
	Success              int64    `protobuf:"varint,10,opt,name=success,proto3" json:"success" form:"success" validate:"required"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GraphCheckRequest) Descriptor

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

func (*GraphCheckRequest) Marshal

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

func (*GraphCheckRequest) MarshalTo

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

func (*GraphCheckRequest) ProtoMessage

func (*GraphCheckRequest) ProtoMessage()

func (*GraphCheckRequest) Reset

func (m *GraphCheckRequest) Reset()

func (*GraphCheckRequest) Size

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

func (*GraphCheckRequest) String

func (this *GraphCheckRequest) String() string

func (*GraphCheckRequest) Unmarshal

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

func (*GraphCheckRequest) XXX_DiscardUnknown

func (m *GraphCheckRequest) XXX_DiscardUnknown()

func (*GraphCheckRequest) XXX_Marshal

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

func (*GraphCheckRequest) XXX_Merge

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

func (*GraphCheckRequest) XXX_Size

func (m *GraphCheckRequest) XXX_Size() int

func (*GraphCheckRequest) XXX_Unmarshal

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

type GraphCheckResponse

type GraphCheckResponse struct {
	NewVoucher           string   `protobuf:"bytes,1,opt,name=new_voucher,json=newVoucher,proto3" json:"new_voucher"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GraphCheckResponse) Descriptor

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

func (*GraphCheckResponse) Marshal

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

func (*GraphCheckResponse) MarshalTo

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

func (*GraphCheckResponse) ProtoMessage

func (*GraphCheckResponse) ProtoMessage()

func (*GraphCheckResponse) Reset

func (m *GraphCheckResponse) Reset()

func (*GraphCheckResponse) Size

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

func (*GraphCheckResponse) String

func (this *GraphCheckResponse) String() string

func (*GraphCheckResponse) Unmarshal

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

func (*GraphCheckResponse) XXX_DiscardUnknown

func (m *GraphCheckResponse) XXX_DiscardUnknown()

func (*GraphCheckResponse) XXX_Marshal

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

func (*GraphCheckResponse) XXX_Merge

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

func (*GraphCheckResponse) XXX_Size

func (m *GraphCheckResponse) XXX_Size() int

func (*GraphCheckResponse) XXX_Unmarshal

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

type GraphClient

type GraphClient interface {
	// 拉起极验
	GraphPrepare(ctx context.Context, in *GraphPrepareRequest, opts ...grpc.CallOption) (*GraphPrepareResponse, error)
	// 极验验证
	GraphCheck(ctx context.Context, in *GraphCheckRequest, opts ...grpc.CallOption) (*GraphCheckResponse, error)
}

GraphClient is the client API for Graph service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewGraphClient

func NewGraphClient(cc *grpc.ClientConn) GraphClient

type GraphPrepareRequest

type GraphPrepareRequest struct {
	MID                  int64    `protobuf:"varint,1,opt,name=mid,proto3" json:"mid" form:"mid" validate:"required"`
	IP                   string   `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip" form:"ip" validate:"required"`
	Customer             int64    `protobuf:"varint,3,opt,name=customer,proto3" json:"customer" form:"customer" validate:"required"`
	ItemID               int64    `protobuf:"varint,4,opt,name=item_id,json=itemId,proto3" json:"item_id" form:"item_id" validate:"required"`
	ClientType           string   `protobuf:"bytes,5,opt,name=client_type,json=clientType,proto3" json:"client_type" form:"client_type" validate:"required"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GraphPrepareRequest) Descriptor

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

func (*GraphPrepareRequest) Marshal

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

func (*GraphPrepareRequest) MarshalTo

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

func (*GraphPrepareRequest) ProtoMessage

func (*GraphPrepareRequest) ProtoMessage()

func (*GraphPrepareRequest) Reset

func (m *GraphPrepareRequest) Reset()

func (*GraphPrepareRequest) Size

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

func (*GraphPrepareRequest) String

func (this *GraphPrepareRequest) String() string

func (*GraphPrepareRequest) Unmarshal

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

func (*GraphPrepareRequest) XXX_DiscardUnknown

func (m *GraphPrepareRequest) XXX_DiscardUnknown()

func (*GraphPrepareRequest) XXX_Marshal

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

func (*GraphPrepareRequest) XXX_Merge

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

func (*GraphPrepareRequest) XXX_Size

func (m *GraphPrepareRequest) XXX_Size() int

func (*GraphPrepareRequest) XXX_Unmarshal

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

type GraphPrepareResponse

type GraphPrepareResponse struct {
	Success              int64    `protobuf:"varint,1,opt,name=success,proto3" json:"success"`
	CaptchaID            string   `protobuf:"bytes,2,opt,name=captcha_id,json=captchaId,proto3" json:"captcha_id"`
	Challenge            string   `protobuf:"bytes,3,opt,name=challenge,proto3" json:"challenge"`
	NewCaptcha           int64    `protobuf:"varint,4,opt,name=new_captcha,json=newCaptcha,proto3" json:"new_captcha"`
	Voucher              string   `protobuf:"bytes,5,opt,name=voucher,proto3" json:"voucher"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GraphPrepareResponse) Descriptor

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

func (*GraphPrepareResponse) Marshal

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

func (*GraphPrepareResponse) MarshalTo

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

func (*GraphPrepareResponse) ProtoMessage

func (*GraphPrepareResponse) ProtoMessage()

func (*GraphPrepareResponse) Reset

func (m *GraphPrepareResponse) Reset()

func (*GraphPrepareResponse) Size

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

func (*GraphPrepareResponse) String

func (this *GraphPrepareResponse) String() string

func (*GraphPrepareResponse) Unmarshal

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

func (*GraphPrepareResponse) XXX_DiscardUnknown

func (m *GraphPrepareResponse) XXX_DiscardUnknown()

func (*GraphPrepareResponse) XXX_Marshal

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

func (*GraphPrepareResponse) XXX_Merge

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

func (*GraphPrepareResponse) XXX_Size

func (m *GraphPrepareResponse) XXX_Size() int

func (*GraphPrepareResponse) XXX_Unmarshal

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

type GraphServer

type GraphServer interface {
	// 拉起极验
	GraphPrepare(context.Context, *GraphPrepareRequest) (*GraphPrepareResponse, error)
	// 极验验证
	GraphCheck(context.Context, *GraphCheckRequest) (*GraphCheckResponse, error)
}

GraphServer is the server API for Graph service.

type RiskCheckRequest

type RiskCheckRequest struct {
	MID                  int64    `protobuf:"varint,1,opt,name=mid,proto3" json:"mid" form:"mid" validate:"required"`
	IP                   string   `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip" form:"ip" validate:"required"`
	ItemID               int64    `protobuf:"varint,3,opt,name=item_id,json=itemId,proto3" json:"item_id" form:"item_id" validate:"required"`
	Path                 string   `protobuf:"bytes,4,opt,name=path,proto3" json:"path" form:"path" validate:"required"`
	Customer             int64    `protobuf:"varint,5,opt,name=customer,proto3" json:"customer" form:"customer" validate:"required"`
	OpenTime             int64    `protobuf:"varint,6,opt,name=open_time,json=openTime,proto3" json:"open_time" form:"open_time" validate:"required"`
	Voucher              string   `protobuf:"bytes,7,opt,name=voucher,proto3" json:"voucher" form:"voucher"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RiskCheckRequest) Descriptor

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

func (*RiskCheckRequest) Marshal

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

func (*RiskCheckRequest) MarshalTo

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

func (*RiskCheckRequest) ProtoMessage

func (*RiskCheckRequest) ProtoMessage()

func (*RiskCheckRequest) Reset

func (m *RiskCheckRequest) Reset()

func (*RiskCheckRequest) Size

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

func (*RiskCheckRequest) String

func (this *RiskCheckRequest) String() string

func (*RiskCheckRequest) Unmarshal

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

func (*RiskCheckRequest) XXX_DiscardUnknown

func (m *RiskCheckRequest) XXX_DiscardUnknown()

func (*RiskCheckRequest) XXX_Marshal

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

func (*RiskCheckRequest) XXX_Merge

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

func (*RiskCheckRequest) XXX_Size

func (m *RiskCheckRequest) XXX_Size() int

func (*RiskCheckRequest) XXX_Unmarshal

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

type RiskCheckResponse

type RiskCheckResponse struct {
	Success              int64    `protobuf:"varint,1,opt,name=success,proto3" json:"success"`
	Rank                 int64    `protobuf:"varint,2,opt,name=rank,proto3" json:"rank"`
	Method               int64    `protobuf:"varint,3,opt,name=method,proto3" json:"method"`
	Desc                 string   `protobuf:"bytes,4,opt,name=desc,proto3" json:"desc"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RiskCheckResponse) Descriptor

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

func (*RiskCheckResponse) Marshal

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

func (*RiskCheckResponse) MarshalTo

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

func (*RiskCheckResponse) ProtoMessage

func (*RiskCheckResponse) ProtoMessage()

func (*RiskCheckResponse) Reset

func (m *RiskCheckResponse) Reset()

func (*RiskCheckResponse) Size

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

func (*RiskCheckResponse) String

func (this *RiskCheckResponse) String() string

func (*RiskCheckResponse) Unmarshal

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

func (*RiskCheckResponse) XXX_DiscardUnknown

func (m *RiskCheckResponse) XXX_DiscardUnknown()

func (*RiskCheckResponse) XXX_Marshal

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

func (*RiskCheckResponse) XXX_Merge

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

func (*RiskCheckResponse) XXX_Size

func (m *RiskCheckResponse) XXX_Size() int

func (*RiskCheckResponse) XXX_Unmarshal

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

type RiskClient

type RiskClient interface {
	// 风险检查
	RiskCheck(ctx context.Context, in *RiskCheckRequest, opts ...grpc.CallOption) (*RiskCheckResponse, error)
}

RiskClient is the client API for Risk service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewRiskClient

func NewRiskClient(cc *grpc.ClientConn) RiskClient

type RiskServer

type RiskServer interface {
	// 风险检查
	RiskCheck(context.Context, *RiskCheckRequest) (*RiskCheckResponse, error)
}

RiskServer is the server API for Risk service.

Jump to

Keyboard shortcuts

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