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

Documentation

Index

Constants

View Source
const AppID = "live.riskcontrol"

AppID 直播风控服务discoverID

Variables

View Source
var GetForbiddenReply_ForbiddenRes_name = map[int32]string{
	0: "PASS",
	1: "FORBIDDEN",
	2: "DOUBT",
}
View Source
var GetForbiddenReply_ForbiddenRes_value = map[string]int32{
	"PASS":      0,
	"FORBIDDEN": 1,
	"DOUBT":     2,
}

Functions

func RegisterIsForbiddenServer

func RegisterIsForbiddenServer(s *grpc.Server, srv IsForbiddenServer)

Types

type GetForbiddenReply

type GetForbiddenReply struct {
	IsForbidden          GetForbiddenReply_ForbiddenRes `` /* 151-byte string literal not displayed */
	IsCache              bool                           `protobuf:"varint,2,opt,name=is_cache,json=isCache,proto3" json:"is_cache,omitempty"`
	Reason               string                         `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                       `json:"-"`
	XXX_unrecognized     []byte                         `json:"-"`
	XXX_sizecache        int32                          `json:"-"`
}

GetForbiddenReply

func (*GetForbiddenReply) Descriptor

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

func (*GetForbiddenReply) GetIsCache

func (m *GetForbiddenReply) GetIsCache() bool

func (*GetForbiddenReply) GetIsForbidden

func (*GetForbiddenReply) GetReason

func (m *GetForbiddenReply) GetReason() string

func (*GetForbiddenReply) ProtoMessage

func (*GetForbiddenReply) ProtoMessage()

func (*GetForbiddenReply) Reset

func (m *GetForbiddenReply) Reset()

func (*GetForbiddenReply) String

func (m *GetForbiddenReply) String() string

func (*GetForbiddenReply) XXX_DiscardUnknown

func (m *GetForbiddenReply) XXX_DiscardUnknown()

func (*GetForbiddenReply) XXX_Marshal

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

func (*GetForbiddenReply) XXX_Merge

func (m *GetForbiddenReply) XXX_Merge(src proto.Message)

func (*GetForbiddenReply) XXX_Size

func (m *GetForbiddenReply) XXX_Size() int

func (*GetForbiddenReply) XXX_Unmarshal

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

type GetForbiddenReply_ForbiddenRes

type GetForbiddenReply_ForbiddenRes int32
const (
	GetForbiddenReply_PASS      GetForbiddenReply_ForbiddenRes = 0
	GetForbiddenReply_FORBIDDEN GetForbiddenReply_ForbiddenRes = 1
	GetForbiddenReply_DOUBT     GetForbiddenReply_ForbiddenRes = 2
)

func (GetForbiddenReply_ForbiddenRes) EnumDescriptor

func (GetForbiddenReply_ForbiddenRes) EnumDescriptor() ([]byte, []int)

func (GetForbiddenReply_ForbiddenRes) String

type GetForbiddenReq

type GetForbiddenReq struct {
	Uid                  int64             `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"`
	Uri                  string            `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"`
	Ip                   string            `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"`
	Method               string            `protobuf:"bytes,4,opt,name=method,proto3" json:"method,omitempty"`
	Header               map[string]string `` /* 153-byte string literal not displayed */
	Body                 string            `protobuf:"bytes,6,opt,name=body,proto3" json:"body,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

GetForbiddenReq

func (*GetForbiddenReq) Descriptor

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

func (*GetForbiddenReq) GetBody

func (m *GetForbiddenReq) GetBody() string

func (*GetForbiddenReq) GetHeader

func (m *GetForbiddenReq) GetHeader() map[string]string

func (*GetForbiddenReq) GetIp

func (m *GetForbiddenReq) GetIp() string

func (*GetForbiddenReq) GetMethod

func (m *GetForbiddenReq) GetMethod() string

func (*GetForbiddenReq) GetUid

func (m *GetForbiddenReq) GetUid() int64

func (*GetForbiddenReq) GetUri

func (m *GetForbiddenReq) GetUri() string

func (*GetForbiddenReq) ProtoMessage

func (*GetForbiddenReq) ProtoMessage()

func (*GetForbiddenReq) Reset

func (m *GetForbiddenReq) Reset()

func (*GetForbiddenReq) String

func (m *GetForbiddenReq) String() string

func (*GetForbiddenReq) XXX_DiscardUnknown

func (m *GetForbiddenReq) XXX_DiscardUnknown()

func (*GetForbiddenReq) XXX_Marshal

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

func (*GetForbiddenReq) XXX_Merge

func (m *GetForbiddenReq) XXX_Merge(src proto.Message)

func (*GetForbiddenReq) XXX_Size

func (m *GetForbiddenReq) XXX_Size() int

func (*GetForbiddenReq) XXX_Unmarshal

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

type IsForbiddenClient

type IsForbiddenClient interface {
	GetForbidden(ctx context.Context, in *GetForbiddenReq, opts ...grpc.CallOption) (*GetForbiddenReply, error)
}

IsForbiddenClient is the client API for IsForbidden service.

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

func NewClient

func NewClient(cfg *warden.ClientConfig, opts ...grpc.DialOption) (IsForbiddenClient, error)

NewClient 直播风控服务client创建

func NewIsForbiddenClient

func NewIsForbiddenClient(cc *grpc.ClientConn) IsForbiddenClient

type IsForbiddenServer

type IsForbiddenServer interface {
	GetForbidden(context.Context, *GetForbiddenReq) (*GetForbiddenReply, error)
}

IsForbiddenServer is the server API for IsForbidden service.

Jump to

Keyboard shortcuts

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