v1

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Detect_DetectTx_FullMethodName = "/detect.service.v1.Detect/DetectTx"
)

Variables

View Source
var Detect_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "detect.service.v1.Detect",
	HandlerType: (*DetectServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "DetectTx",
			Handler:    _Detect_DetectTx_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "v1/detect.proto",
}

Detect_ServiceDesc is the grpc.ServiceDesc for Detect service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_v1_detect_proto protoreflect.FileDescriptor

Functions

func RegisterDetectServer

func RegisterDetectServer(s grpc.ServiceRegistrar, srv DetectServer)

Types

type DetectClient

type DetectClient interface {
	// tx detect
	DetectTx(ctx context.Context, in *DetectTxRequest, opts ...grpc.CallOption) (*DetectTxResponse, error)
}

DetectClient is the client API for Detect service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewDetectClient

func NewDetectClient(cc grpc.ClientConnInterface) DetectClient

type DetectServer

type DetectServer interface {
	// tx detect
	DetectTx(context.Context, *DetectTxRequest) (*DetectTxResponse, error)
	// contains filtered or unexported methods
}

DetectServer is the server API for Detect service. All implementations must embed UnimplementedDetectServer for forward compatibility

type DetectTxRequest

type DetectTxRequest struct {
	ChainId  string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	From     string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
	To       string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"`
	Gas      uint64 `protobuf:"varint,4,opt,name=gas,proto3" json:"gas,omitempty"`
	GasPrice string `protobuf:"bytes,5,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"`
	Value    string `protobuf:"bytes,6,opt,name=value,proto3" json:"value,omitempty"`
	Data     string `protobuf:"bytes,7,opt,name=data,proto3" json:"data,omitempty"`
	Nonce    uint64 `protobuf:"varint,8,opt,name=nonce,proto3" json:"nonce,omitempty"`
	Hash     string `protobuf:"bytes,9,opt,name=hash,proto3" json:"hash,omitempty"`
	// contains filtered or unexported fields
}

request data

func (*DetectTxRequest) Descriptor deprecated

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

Deprecated: Use DetectTxRequest.ProtoReflect.Descriptor instead.

func (*DetectTxRequest) GetChainId

func (x *DetectTxRequest) GetChainId() string

func (*DetectTxRequest) GetData

func (x *DetectTxRequest) GetData() string

func (*DetectTxRequest) GetFrom

func (x *DetectTxRequest) GetFrom() string

func (*DetectTxRequest) GetGas

func (x *DetectTxRequest) GetGas() uint64

func (*DetectTxRequest) GetGasPrice

func (x *DetectTxRequest) GetGasPrice() string

func (*DetectTxRequest) GetHash

func (x *DetectTxRequest) GetHash() string

func (*DetectTxRequest) GetNonce

func (x *DetectTxRequest) GetNonce() uint64

func (*DetectTxRequest) GetTo

func (x *DetectTxRequest) GetTo() string

func (*DetectTxRequest) GetValue

func (x *DetectTxRequest) GetValue() string

func (*DetectTxRequest) ProtoMessage

func (*DetectTxRequest) ProtoMessage()

func (*DetectTxRequest) ProtoReflect

func (x *DetectTxRequest) ProtoReflect() protoreflect.Message

func (*DetectTxRequest) Reset

func (x *DetectTxRequest) Reset()

func (*DetectTxRequest) String

func (x *DetectTxRequest) String() string

type DetectTxResponse

type DetectTxResponse struct {
	IsIntercept bool        `protobuf:"varint,1,opt,name=is_intercept,json=isIntercept,proto3" json:"is_intercept,omitempty"`
	RiskInfo    []*RiskInfo `protobuf:"bytes,2,rep,name=risk_info,json=riskInfo,proto3" json:"risk_info,omitempty"`
	// contains filtered or unexported fields
}

func (*DetectTxResponse) Descriptor deprecated

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

Deprecated: Use DetectTxResponse.ProtoReflect.Descriptor instead.

func (*DetectTxResponse) GetIsIntercept

func (x *DetectTxResponse) GetIsIntercept() bool

func (*DetectTxResponse) GetRiskInfo

func (x *DetectTxResponse) GetRiskInfo() []*RiskInfo

func (*DetectTxResponse) ProtoMessage

func (*DetectTxResponse) ProtoMessage()

func (*DetectTxResponse) ProtoReflect

func (x *DetectTxResponse) ProtoReflect() protoreflect.Message

func (*DetectTxResponse) Reset

func (x *DetectTxResponse) Reset()

func (*DetectTxResponse) String

func (x *DetectTxResponse) String() string

type RiskInfo

type RiskInfo struct {
	RiskType string   `protobuf:"bytes,1,opt,name=risk_type,json=riskType,proto3" json:"risk_type,omitempty"`
	RiskList []string `protobuf:"bytes,2,rep,name=risk_list,json=riskList,proto3" json:"risk_list,omitempty"`
	// contains filtered or unexported fields
}

response data

func (*RiskInfo) Descriptor deprecated

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

Deprecated: Use RiskInfo.ProtoReflect.Descriptor instead.

func (*RiskInfo) GetRiskList

func (x *RiskInfo) GetRiskList() []string

func (*RiskInfo) GetRiskType

func (x *RiskInfo) GetRiskType() string

func (*RiskInfo) ProtoMessage

func (*RiskInfo) ProtoMessage()

func (*RiskInfo) ProtoReflect

func (x *RiskInfo) ProtoReflect() protoreflect.Message

func (*RiskInfo) Reset

func (x *RiskInfo) Reset()

func (*RiskInfo) String

func (x *RiskInfo) String() string

type UnimplementedDetectServer

type UnimplementedDetectServer struct {
}

UnimplementedDetectServer must be embedded to have forward compatible implementations.

func (UnimplementedDetectServer) DetectTx

type UnsafeDetectServer

type UnsafeDetectServer interface {
	// contains filtered or unexported methods
}

UnsafeDetectServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DetectServer will result in compilation errors.

Jump to

Keyboard shortcuts

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