activity

package
v0.0.0-...-0406d23 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Activity_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "activity.Activity",
	HandlerType: (*ActivityServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Create",
			Handler:    _Activity_Create_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/activity/activity.proto",
}

Activity_ServiceDesc is the grpc.ServiceDesc for Activity 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_proto_activity_activity_proto protoreflect.FileDescriptor

Functions

func RegisterActivityServer

func RegisterActivityServer(s grpc.ServiceRegistrar, srv ActivityServer)

Types

type ActivityClient

type ActivityClient interface {
	Create(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
}

ActivityClient is the client API for Activity 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 NewActivityClient

func NewActivityClient(cc grpc.ClientConnInterface) ActivityClient

type ActivityServer

type ActivityServer interface {
	Create(context.Context, *Request) (*Response, error)
	// contains filtered or unexported methods
}

ActivityServer is the server API for Activity service. All implementations must embed UnimplementedActivityServer for forward compatibility

type Request

type Request struct {
	Uid        string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"`
	ObjectId   string `protobuf:"bytes,2,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"`
	ObjectType string `protobuf:"bytes,3,opt,name=object_type,json=objectType,proto3" json:"object_type,omitempty"`
	TargetId   string `protobuf:"bytes,4,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty"`
	TargetType string `protobuf:"bytes,5,opt,name=target_type,json=targetType,proto3" json:"target_type,omitempty"`
	Action     string `protobuf:"bytes,6,opt,name=action,proto3" json:"action,omitempty"`
	Timestamp  int32  `protobuf:"varint,7,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

func (*Request) Descriptor deprecated

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

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetAction

func (x *Request) GetAction() string

func (*Request) GetObjectId

func (x *Request) GetObjectId() string

func (*Request) GetObjectType

func (x *Request) GetObjectType() string

func (*Request) GetTargetId

func (x *Request) GetTargetId() string

func (*Request) GetTargetType

func (x *Request) GetTargetType() string

func (*Request) GetTimestamp

func (x *Request) GetTimestamp() int32

func (*Request) GetUid

func (x *Request) GetUid() string

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

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

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

type Response

type Response struct {
	Status  string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*Response) Descriptor deprecated

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

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetMessage

func (x *Response) GetMessage() string

func (*Response) GetStatus

func (x *Response) GetStatus() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

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

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

type UnimplementedActivityServer

type UnimplementedActivityServer struct {
}

UnimplementedActivityServer must be embedded to have forward compatible implementations.

func (UnimplementedActivityServer) Create

type UnsafeActivityServer

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

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

Jump to

Keyboard shortcuts

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