Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterFraudEngineServer(s grpc.ServiceRegistrar, srv FraudEngineServer)
- type CreateUserWatchRequest
- func (*CreateUserWatchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserWatchRequest) GetUserId() string
- func (x *CreateUserWatchRequest) GetWatchReason() string
- func (*CreateUserWatchRequest) ProtoMessage()
- func (x *CreateUserWatchRequest) ProtoReflect() protoreflect.Message
- func (x *CreateUserWatchRequest) Reset()
- func (x *CreateUserWatchRequest) String() string
- type CreateUserWatchResponse
- func (*CreateUserWatchResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserWatchResponse) GetUserWatch() *UserWatch
- func (*CreateUserWatchResponse) ProtoMessage()
- func (x *CreateUserWatchResponse) ProtoReflect() protoreflect.Message
- func (x *CreateUserWatchResponse) Reset()
- func (x *CreateUserWatchResponse) String() string
- type FraudEngineClient
- type FraudEngineServer
- type UnimplementedFraudEngineServer
- type UnsafeFraudEngineServer
- type UserWatch
- func (*UserWatch) Descriptor() ([]byte, []int)deprecated
- func (x *UserWatch) GetCreatedAt() *timestamppb.Timestamp
- func (x *UserWatch) GetUserId() string
- func (x *UserWatch) GetWatchReason() string
- func (*UserWatch) ProtoMessage()
- func (x *UserWatch) ProtoReflect() protoreflect.Message
- func (x *UserWatch) Reset()
- func (x *UserWatch) String() string
Constants ¶
const (
FraudEngine_CreateUserWatch_FullMethodName = "/pb.FraudEngine/CreateUserWatch"
)
Variables ¶
var File_rpc_create_user_watch_proto protoreflect.FileDescriptor
var File_service_fraud_engine_proto protoreflect.FileDescriptor
var File_user_watch_proto protoreflect.FileDescriptor
var FraudEngine_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pb.FraudEngine", HandlerType: (*FraudEngineServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateUserWatch", Handler: _FraudEngine_CreateUserWatch_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "service_fraud_engine.proto", }
FraudEngine_ServiceDesc is the grpc.ServiceDesc for FraudEngine service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterFraudEngineServer ¶
func RegisterFraudEngineServer(s grpc.ServiceRegistrar, srv FraudEngineServer)
Types ¶
type CreateUserWatchRequest ¶
type CreateUserWatchRequest struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` WatchReason string `protobuf:"bytes,2,opt,name=watch_reason,json=watchReason,proto3" json:"watch_reason,omitempty"` // contains filtered or unexported fields }
func (*CreateUserWatchRequest) Descriptor
deprecated
func (*CreateUserWatchRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserWatchRequest.ProtoReflect.Descriptor instead.
func (*CreateUserWatchRequest) GetUserId ¶
func (x *CreateUserWatchRequest) GetUserId() string
func (*CreateUserWatchRequest) GetWatchReason ¶
func (x *CreateUserWatchRequest) GetWatchReason() string
func (*CreateUserWatchRequest) ProtoMessage ¶
func (*CreateUserWatchRequest) ProtoMessage()
func (*CreateUserWatchRequest) ProtoReflect ¶
func (x *CreateUserWatchRequest) ProtoReflect() protoreflect.Message
func (*CreateUserWatchRequest) Reset ¶
func (x *CreateUserWatchRequest) Reset()
func (*CreateUserWatchRequest) String ¶
func (x *CreateUserWatchRequest) String() string
type CreateUserWatchResponse ¶
type CreateUserWatchResponse struct { UserWatch *UserWatch `protobuf:"bytes,1,opt,name=userWatch,proto3" json:"userWatch,omitempty"` // contains filtered or unexported fields }
func (*CreateUserWatchResponse) Descriptor
deprecated
func (*CreateUserWatchResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserWatchResponse.ProtoReflect.Descriptor instead.
func (*CreateUserWatchResponse) GetUserWatch ¶
func (x *CreateUserWatchResponse) GetUserWatch() *UserWatch
func (*CreateUserWatchResponse) ProtoMessage ¶
func (*CreateUserWatchResponse) ProtoMessage()
func (*CreateUserWatchResponse) ProtoReflect ¶
func (x *CreateUserWatchResponse) ProtoReflect() protoreflect.Message
func (*CreateUserWatchResponse) Reset ¶
func (x *CreateUserWatchResponse) Reset()
func (*CreateUserWatchResponse) String ¶
func (x *CreateUserWatchResponse) String() string
type FraudEngineClient ¶
type FraudEngineClient interface {
CreateUserWatch(ctx context.Context, in *CreateUserWatchRequest, opts ...grpc.CallOption) (*CreateUserWatchResponse, error)
}
FraudEngineClient is the client API for FraudEngine 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 NewFraudEngineClient ¶
func NewFraudEngineClient(cc grpc.ClientConnInterface) FraudEngineClient
type FraudEngineServer ¶
type FraudEngineServer interface { CreateUserWatch(context.Context, *CreateUserWatchRequest) (*CreateUserWatchResponse, error) // contains filtered or unexported methods }
FraudEngineServer is the server API for FraudEngine service. All implementations must embed UnimplementedFraudEngineServer for forward compatibility
type UnimplementedFraudEngineServer ¶
type UnimplementedFraudEngineServer struct { }
UnimplementedFraudEngineServer must be embedded to have forward compatible implementations.
func (UnimplementedFraudEngineServer) CreateUserWatch ¶
func (UnimplementedFraudEngineServer) CreateUserWatch(context.Context, *CreateUserWatchRequest) (*CreateUserWatchResponse, error)
type UnsafeFraudEngineServer ¶
type UnsafeFraudEngineServer interface {
// contains filtered or unexported methods
}
UnsafeFraudEngineServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FraudEngineServer will result in compilation errors.
type UserWatch ¶
type UserWatch struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` WatchReason string `protobuf:"bytes,2,opt,name=watch_reason,json=watchReason,proto3" json:"watch_reason,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // contains filtered or unexported fields }
func (*UserWatch) Descriptor
deprecated
func (*UserWatch) GetCreatedAt ¶
func (x *UserWatch) GetCreatedAt() *timestamppb.Timestamp
func (*UserWatch) GetWatchReason ¶
func (*UserWatch) ProtoMessage ¶
func (*UserWatch) ProtoMessage()
func (*UserWatch) ProtoReflect ¶
func (x *UserWatch) ProtoReflect() protoreflect.Message