pb

package
v0.0.0-...-0b7c896 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FraudEngine_CreateUserWatch_FullMethodName = "/pb.FraudEngine/CreateUserWatch"
)

Variables

View Source
var File_rpc_create_user_watch_proto protoreflect.FileDescriptor
View Source
var File_service_fraud_engine_proto protoreflect.FileDescriptor
View Source
var File_user_watch_proto protoreflect.FileDescriptor
View Source
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.

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

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) Descriptor() ([]byte, []int)

Deprecated: Use UserWatch.ProtoReflect.Descriptor instead.

func (*UserWatch) GetCreatedAt

func (x *UserWatch) GetCreatedAt() *timestamppb.Timestamp

func (*UserWatch) GetUserId

func (x *UserWatch) GetUserId() string

func (*UserWatch) GetWatchReason

func (x *UserWatch) GetWatchReason() string

func (*UserWatch) ProtoMessage

func (*UserWatch) ProtoMessage()

func (*UserWatch) ProtoReflect

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

func (*UserWatch) Reset

func (x *UserWatch) Reset()

func (*UserWatch) String

func (x *UserWatch) String() string

Jump to

Keyboard shortcuts

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