Documentation ¶
Overview ¶
Package activity is a generated protocol buffer package.
It is generated from these files:
activitystream.proto
It has these top-level messages:
Object PostActivityRequest PostActivityResponse PostActivityEvent StreamActivitiesRequest StreamActivitiesResponse Subscription SubscribeRequest SubscribeResponse SearchSubscriptionsRequest SearchSubscriptionsResponse UnreadActivitiesRequest UnreadActivitiesResponse UserLastActivityRequest UserLastActivityResponse
Package activity is a generated protocol buffer package.
It is generated from these files:
activitystream.proto
It has these top-level messages:
Object PostActivityRequest PostActivityResponse PostActivityEvent StreamActivitiesRequest StreamActivitiesResponse Subscription SubscribeRequest SubscribeResponse SearchSubscriptionsRequest SearchSubscriptionsResponse UnreadActivitiesRequest UnreadActivitiesResponse UserLastActivityRequest UserLastActivityResponse
Index ¶
- Variables
- func RegisterActivityServiceHandler(s server.Server, hdlr ActivityServiceHandler, opts ...server.HandlerOption)
- type ActivityService
- func (h *ActivityService) PostActivity(ctx context.Context, stream server.Streamer) error
- func (h *ActivityService) SearchSubscriptions(ctx context.Context, stream server.Streamer) error
- func (h *ActivityService) SetUserLastActivity(ctx context.Context, in *UserLastActivityRequest, ...) error
- func (h *ActivityService) StreamActivities(ctx context.Context, stream server.Streamer) error
- func (h *ActivityService) Subscribe(ctx context.Context, in *SubscribeRequest, out *SubscribeResponse) error
- func (h *ActivityService) UnreadActivitiesNumber(ctx context.Context, in *UnreadActivitiesRequest, ...) error
- type ActivityServiceClient
- type ActivityServiceHandler
- type ActivityService_PostActivityClient
- type ActivityService_PostActivityStream
- type ActivityService_SearchSubscriptionsClient
- type ActivityService_SearchSubscriptionsStream
- type ActivityService_StreamActivitiesClient
- type ActivityService_StreamActivitiesStream
- type Object
- func (*Object) Descriptor() ([]byte, []int)
- func (m *Object) GetAccuracy() float32
- func (m *Object) GetActor() *Object
- func (m *Object) GetAltitude() float32
- func (m *Object) GetAnyOf() *Object
- func (m *Object) GetAttachment() *Object
- func (m *Object) GetAttributedTo() *Object
- func (m *Object) GetAudience() *Object
- func (m *Object) GetBcc() *Object
- func (m *Object) GetBto() *Object
- func (m *Object) GetCc() *Object
- func (m *Object) GetClosed() *google_protobuf.Timestamp
- func (m *Object) GetContent() *Object
- func (m *Object) GetContext() *Object
- func (m *Object) GetCurrent() *Object
- func (m *Object) GetDeleted() *google_protobuf.Timestamp
- func (m *Object) GetDuration() *google_protobuf.Timestamp
- func (m *Object) GetEndTime() *google_protobuf.Timestamp
- func (m *Object) GetFirst() *Object
- func (m *Object) GetFormerType() ObjectType
- func (m *Object) GetGenerator() *Object
- func (m *Object) GetHeight() int32
- func (m *Object) GetHref() string
- func (m *Object) GetHreflang() string
- func (m *Object) GetIcon() *Object
- func (m *Object) GetId() string
- func (m *Object) GetImage() *Object
- func (m *Object) GetInReplyTo() *Object
- func (m *Object) GetInstrument() *Object
- func (m *Object) GetItems() []*Object
- func (m *Object) GetJsonLdContext() string
- func (m *Object) GetLast() *Object
- func (m *Object) GetLatitude() float32
- func (m *Object) GetLocation() *Object
- func (m *Object) GetLongitude() float32
- func (m *Object) GetMediaType() string
- func (m *Object) GetName() string
- func (m *Object) GetNext() *Object
- func (m *Object) GetObject() *Object
- func (m *Object) GetOneOf() *Object
- func (m *Object) GetOrigin() *Object
- func (m *Object) GetPartOf() *Object
- func (m *Object) GetPrev() *Object
- func (m *Object) GetPreview() *Object
- func (m *Object) GetPublished() *google_protobuf.Timestamp
- func (m *Object) GetRadius() float32
- func (m *Object) GetRel() string
- func (m *Object) GetRelationship() *Object
- func (m *Object) GetReplies() *Object
- func (m *Object) GetResult() *Object
- func (m *Object) GetStartTime() *google_protobuf.Timestamp
- func (m *Object) GetSubject() *Object
- func (m *Object) GetSummary() string
- func (m *Object) GetTag() *Object
- func (m *Object) GetTarget() *Object
- func (m *Object) GetTo() *Object
- func (m *Object) GetTotalItems() int32
- func (m *Object) GetType() ObjectType
- func (m *Object) GetUnits() string
- func (m *Object) GetUpdated() *google_protobuf.Timestamp
- func (m *Object) GetUrl() *Object
- func (m *Object) GetWidth() int32
- func (*Object) ProtoMessage()
- func (m *Object) Reset()
- func (m *Object) String() string
- type ObjectType
- type OwnerType
- type PostActivityEvent
- func (*PostActivityEvent) Descriptor() ([]byte, []int)
- func (m *PostActivityEvent) GetActivity() *Object
- func (m *PostActivityEvent) GetBoxName() string
- func (m *PostActivityEvent) GetJsonType() string
- func (m *PostActivityEvent) GetOwnerId() string
- func (m *PostActivityEvent) GetOwnerType() OwnerType
- func (p *PostActivityEvent) MarshalLogObject(encoder zapcore.ObjectEncoder) error
- func (*PostActivityEvent) ProtoMessage()
- func (m *PostActivityEvent) Reset()
- func (m *PostActivityEvent) String() string
- func (p *PostActivityEvent) Zap() zapcore.Field
- type PostActivityRequest
- type PostActivityResponse
- type SearchSubscriptionsRequest
- func (*SearchSubscriptionsRequest) Descriptor() ([]byte, []int)
- func (m *SearchSubscriptionsRequest) GetObjectIds() []string
- func (m *SearchSubscriptionsRequest) GetObjectTypes() []OwnerType
- func (m *SearchSubscriptionsRequest) GetUserIds() []string
- func (*SearchSubscriptionsRequest) ProtoMessage()
- func (m *SearchSubscriptionsRequest) Reset()
- func (m *SearchSubscriptionsRequest) String() string
- type SearchSubscriptionsResponse
- type StreamActivitiesRequest
- func (*StreamActivitiesRequest) Descriptor() ([]byte, []int)
- func (m *StreamActivitiesRequest) GetAsDigest() bool
- func (m *StreamActivitiesRequest) GetBoxName() string
- func (m *StreamActivitiesRequest) GetContext() StreamContext
- func (m *StreamActivitiesRequest) GetContextData() string
- func (m *StreamActivitiesRequest) GetLanguage() string
- func (m *StreamActivitiesRequest) GetLimit() int64
- func (m *StreamActivitiesRequest) GetOffset() int64
- func (m *StreamActivitiesRequest) GetPointOfView() SummaryPointOfView
- func (m *StreamActivitiesRequest) GetStreamFilter() string
- func (m *StreamActivitiesRequest) GetUnreadCountOnly() bool
- func (s *StreamActivitiesRequest) MarshalLogObject(encoder zapcore.ObjectEncoder) error
- func (*StreamActivitiesRequest) ProtoMessage()
- func (m *StreamActivitiesRequest) Reset()
- func (m *StreamActivitiesRequest) String() string
- func (s *StreamActivitiesRequest) Zap() zapcore.Field
- type StreamActivitiesResponse
- type StreamContext
- type SubscribeRequest
- type SubscribeResponse
- type Subscription
- func (*Subscription) Descriptor() ([]byte, []int)
- func (m *Subscription) GetEvents() []string
- func (m *Subscription) GetObjectId() string
- func (m *Subscription) GetObjectType() OwnerType
- func (m *Subscription) GetUserId() string
- func (s *Subscription) MarshalLogObject(encoder zapcore.ObjectEncoder) error
- func (*Subscription) ProtoMessage()
- func (m *Subscription) Reset()
- func (m *Subscription) String() string
- func (s *Subscription) Zap() zapcore.Field
- type SummaryPointOfView
- type UnreadActivitiesRequest
- type UnreadActivitiesResponse
- type UserLastActivityRequest
- func (*UserLastActivityRequest) Descriptor() ([]byte, []int)
- func (m *UserLastActivityRequest) GetActivityId() string
- func (m *UserLastActivityRequest) GetBoxName() string
- func (m *UserLastActivityRequest) GetUserId() string
- func (*UserLastActivityRequest) ProtoMessage()
- func (m *UserLastActivityRequest) Reset()
- func (m *UserLastActivityRequest) String() string
- type UserLastActivityResponse
Constants ¶
This section is empty.
Variables ¶
var ObjectType_name = map[int32]string{
0: "BaseObject",
1: "Activity",
47: "Link",
48: "Mention",
49: "Collection",
50: "OrderedCollection",
51: "CollectionPage",
52: "OrderedCollectionPage",
2: "Application",
3: "Group",
4: "Organization",
5: "Person",
6: "Service",
7: "Article",
8: "Audio",
9: "Document",
10: "Event",
11: "Image",
12: "Note",
13: "Page",
14: "Place",
15: "Profile",
16: "Relationship",
17: "Tombstone",
18: "Video",
19: "Accept",
20: "Add",
21: "Announce",
22: "Arrive",
23: "Block",
24: "Create",
25: "Delete",
26: "Dislike",
27: "Flag",
28: "Follow",
29: "Ignore",
30: "Invite",
31: "Join",
32: "Leave",
33: "Like",
34: "Listen",
35: "Move",
36: "Offer",
37: "Question",
38: "Reject",
39: "Read",
40: "Remove",
41: "TentativeReject",
42: "TentativeAccept",
43: "Travel",
44: "Undo",
45: "Update",
46: "View",
53: "Workspace",
54: "Digest",
55: "Folder",
56: "Cell",
57: "Share",
}
var ObjectType_value = map[string]int32{
"BaseObject": 0,
"Activity": 1,
"Link": 47,
"Mention": 48,
"Collection": 49,
"OrderedCollection": 50,
"CollectionPage": 51,
"OrderedCollectionPage": 52,
"Application": 2,
"Group": 3,
"Organization": 4,
"Person": 5,
"Service": 6,
"Article": 7,
"Audio": 8,
"Document": 9,
"Event": 10,
"Image": 11,
"Note": 12,
"Page": 13,
"Place": 14,
"Profile": 15,
"Relationship": 16,
"Tombstone": 17,
"Video": 18,
"Accept": 19,
"Add": 20,
"Announce": 21,
"Arrive": 22,
"Block": 23,
"Create": 24,
"Delete": 25,
"Dislike": 26,
"Flag": 27,
"Follow": 28,
"Ignore": 29,
"Invite": 30,
"Join": 31,
"Leave": 32,
"Like": 33,
"Listen": 34,
"Move": 35,
"Offer": 36,
"Question": 37,
"Reject": 38,
"Read": 39,
"Remove": 40,
"TentativeReject": 41,
"TentativeAccept": 42,
"Travel": 43,
"Undo": 44,
"Update": 45,
"View": 46,
"Workspace": 53,
"Digest": 54,
"Folder": 55,
"Cell": 56,
"Share": 57,
}
var OwnerType_name = map[int32]string{
0: "NODE",
1: "USER",
}
var OwnerType_value = map[string]int32{
"NODE": 0,
"USER": 1,
}
var StreamContext_name = map[int32]string{
0: "MYFEED",
1: "USER_ID",
2: "NODE_ID",
}
var StreamContext_value = map[string]int32{
"MYFEED": 0,
"USER_ID": 1,
"NODE_ID": 2,
}
var SummaryPointOfView_name = map[int32]string{
0: "GENERIC",
1: "ACTOR",
2: "SUBJECT",
}
var SummaryPointOfView_value = map[string]int32{
"GENERIC": 0,
"ACTOR": 1,
"SUBJECT": 2,
}
Functions ¶
func RegisterActivityServiceHandler ¶
func RegisterActivityServiceHandler(s server.Server, hdlr ActivityServiceHandler, opts ...server.HandlerOption)
Types ¶
type ActivityService ¶
type ActivityService struct {
ActivityServiceHandler
}
func (*ActivityService) PostActivity ¶
func (*ActivityService) SearchSubscriptions ¶
func (*ActivityService) SetUserLastActivity ¶
func (h *ActivityService) SetUserLastActivity(ctx context.Context, in *UserLastActivityRequest, out *UserLastActivityResponse) error
func (*ActivityService) StreamActivities ¶
func (*ActivityService) Subscribe ¶
func (h *ActivityService) Subscribe(ctx context.Context, in *SubscribeRequest, out *SubscribeResponse) error
func (*ActivityService) UnreadActivitiesNumber ¶
func (h *ActivityService) UnreadActivitiesNumber(ctx context.Context, in *UnreadActivitiesRequest, out *UnreadActivitiesResponse) error
type ActivityServiceClient ¶
type ActivityServiceClient interface { PostActivity(ctx context.Context, opts ...client.CallOption) (ActivityService_PostActivityClient, error) StreamActivities(ctx context.Context, in *StreamActivitiesRequest, opts ...client.CallOption) (ActivityService_StreamActivitiesClient, error) UnreadActivitiesNumber(ctx context.Context, in *UnreadActivitiesRequest, opts ...client.CallOption) (*UnreadActivitiesResponse, error) SetUserLastActivity(ctx context.Context, in *UserLastActivityRequest, opts ...client.CallOption) (*UserLastActivityResponse, error) Subscribe(ctx context.Context, in *SubscribeRequest, opts ...client.CallOption) (*SubscribeResponse, error) SearchSubscriptions(ctx context.Context, in *SearchSubscriptionsRequest, opts ...client.CallOption) (ActivityService_SearchSubscriptionsClient, error) }
func NewActivityServiceClient ¶
func NewActivityServiceClient(serviceName string, c client.Client) ActivityServiceClient
type ActivityServiceHandler ¶
type ActivityServiceHandler interface { PostActivity(context.Context, ActivityService_PostActivityStream) error StreamActivities(context.Context, *StreamActivitiesRequest, ActivityService_StreamActivitiesStream) error UnreadActivitiesNumber(context.Context, *UnreadActivitiesRequest, *UnreadActivitiesResponse) error SetUserLastActivity(context.Context, *UserLastActivityRequest, *UserLastActivityResponse) error Subscribe(context.Context, *SubscribeRequest, *SubscribeResponse) error SearchSubscriptions(context.Context, *SearchSubscriptionsRequest, ActivityService_SearchSubscriptionsStream) error }
type ActivityService_PostActivityClient ¶
type ActivityService_PostActivityClient interface { SendMsg(interface{}) error RecvMsg(interface{}) error Close() error Send(*PostActivityRequest) error }
type ActivityService_PostActivityStream ¶
type ActivityService_PostActivityStream interface { SendMsg(interface{}) error RecvMsg(interface{}) error Close() error Recv() (*PostActivityRequest, error) }
type ActivityService_SearchSubscriptionsClient ¶
type ActivityService_SearchSubscriptionsClient interface { SendMsg(interface{}) error RecvMsg(interface{}) error Close() error Recv() (*SearchSubscriptionsResponse, error) }
type ActivityService_SearchSubscriptionsStream ¶
type ActivityService_SearchSubscriptionsStream interface { SendMsg(interface{}) error RecvMsg(interface{}) error Close() error Send(*SearchSubscriptionsResponse) error }
type ActivityService_StreamActivitiesClient ¶
type ActivityService_StreamActivitiesClient interface { SendMsg(interface{}) error RecvMsg(interface{}) error Close() error Recv() (*StreamActivitiesResponse, error) }
type ActivityService_StreamActivitiesStream ¶
type ActivityService_StreamActivitiesStream interface { SendMsg(interface{}) error RecvMsg(interface{}) error Close() error Send(*StreamActivitiesResponse) error }
type Object ¶
type Object struct { JsonLdContext string `protobuf:"bytes,53,opt,name=jsonLdContext,json=@context" json:"jsonLdContext,omitempty"` Type ObjectType `protobuf:"varint,1,opt,name=type,enum=activity.ObjectType" json:"type,omitempty"` Id string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"` Name string `protobuf:"bytes,3,opt,name=name" json:"name,omitempty"` Summary string `protobuf:"bytes,4,opt,name=summary" json:"summary,omitempty"` Context *Object `protobuf:"bytes,5,opt,name=context" json:"context,omitempty"` Attachment *Object `protobuf:"bytes,6,opt,name=attachment" json:"attachment,omitempty"` AttributedTo *Object `protobuf:"bytes,7,opt,name=attributedTo" json:"attributedTo,omitempty"` Audience *Object `protobuf:"bytes,8,opt,name=audience" json:"audience,omitempty"` Content *Object `protobuf:"bytes,9,opt,name=content" json:"content,omitempty"` StartTime *google_protobuf.Timestamp `protobuf:"bytes,10,opt,name=startTime" json:"startTime,omitempty"` EndTime *google_protobuf.Timestamp `protobuf:"bytes,11,opt,name=endTime" json:"endTime,omitempty"` Published *google_protobuf.Timestamp `protobuf:"bytes,12,opt,name=published" json:"published,omitempty"` Updated *google_protobuf.Timestamp `protobuf:"bytes,13,opt,name=updated" json:"updated,omitempty"` Duration *google_protobuf.Timestamp `protobuf:"bytes,14,opt,name=duration" json:"duration,omitempty"` Url *Object `protobuf:"bytes,15,opt,name=url" json:"url,omitempty"` MediaType string `protobuf:"bytes,16,opt,name=mediaType" json:"mediaType,omitempty"` Icon *Object `protobuf:"bytes,17,opt,name=icon" json:"icon,omitempty"` Image *Object `protobuf:"bytes,18,opt,name=image" json:"image,omitempty"` Preview *Object `protobuf:"bytes,19,opt,name=preview" json:"preview,omitempty"` Location *Object `protobuf:"bytes,20,opt,name=location" json:"location,omitempty"` InReplyTo *Object `protobuf:"bytes,21,opt,name=inReplyTo" json:"inReplyTo,omitempty"` Replies *Object `protobuf:"bytes,22,opt,name=replies" json:"replies,omitempty"` Tag *Object `protobuf:"bytes,23,opt,name=tag" json:"tag,omitempty"` Generator *Object `protobuf:"bytes,24,opt,name=generator" json:"generator,omitempty"` To *Object `protobuf:"bytes,25,opt,name=to" json:"to,omitempty"` Bto *Object `protobuf:"bytes,26,opt,name=bto" json:"bto,omitempty"` Cc *Object `protobuf:"bytes,27,opt,name=cc" json:"cc,omitempty"` Bcc *Object `protobuf:"bytes,28,opt,name=bcc" json:"bcc,omitempty"` // Activity Properties Actor *Object `protobuf:"bytes,29,opt,name=actor" json:"actor,omitempty"` Object *Object `protobuf:"bytes,30,opt,name=object" json:"object,omitempty"` Target *Object `protobuf:"bytes,31,opt,name=target" json:"target,omitempty"` Result *Object `protobuf:"bytes,32,opt,name=result" json:"result,omitempty"` Origin *Object `protobuf:"bytes,33,opt,name=origin" json:"origin,omitempty"` Instrument *Object `protobuf:"bytes,34,opt,name=instrument" json:"instrument,omitempty"` // Link Properties Href string `protobuf:"bytes,35,opt,name=href" json:"href,omitempty"` Rel string `protobuf:"bytes,36,opt,name=rel" json:"rel,omitempty"` Hreflang string `protobuf:"bytes,37,opt,name=hreflang" json:"hreflang,omitempty"` Height int32 `protobuf:"varint,38,opt,name=height" json:"height,omitempty"` Width int32 `protobuf:"varint,39,opt,name=width" json:"width,omitempty"` // Question Properties OneOf *Object `protobuf:"bytes,40,opt,name=oneOf" json:"oneOf,omitempty"` AnyOf *Object `protobuf:"bytes,41,opt,name=anyOf" json:"anyOf,omitempty"` Closed *google_protobuf.Timestamp `protobuf:"bytes,42,opt,name=closed" json:"closed,omitempty"` // Relationship Properties Subject *Object `protobuf:"bytes,43,opt,name=subject" json:"subject,omitempty"` Relationship *Object `protobuf:"bytes,44,opt,name=relationship" json:"relationship,omitempty"` // Tombstone Properties FormerType ObjectType `protobuf:"varint,45,opt,name=formerType,enum=activity.ObjectType" json:"formerType,omitempty"` Deleted *google_protobuf.Timestamp `protobuf:"bytes,46,opt,name=deleted" json:"deleted,omitempty"` // Place Properties Accuracy float32 `protobuf:"fixed32,47,opt,name=accuracy" json:"accuracy,omitempty"` Altitude float32 `protobuf:"fixed32,48,opt,name=altitude" json:"altitude,omitempty"` Latitude float32 `protobuf:"fixed32,49,opt,name=latitude" json:"latitude,omitempty"` Longitude float32 `protobuf:"fixed32,50,opt,name=longitude" json:"longitude,omitempty"` Radius float32 `protobuf:"fixed32,51,opt,name=radius" json:"radius,omitempty"` Units string `protobuf:"bytes,52,opt,name=units" json:"units,omitempty"` // Collection Properties Items []*Object `protobuf:"bytes,54,rep,name=items" json:"items,omitempty"` TotalItems int32 `protobuf:"varint,55,opt,name=totalItems" json:"totalItems,omitempty"` Current *Object `protobuf:"bytes,56,opt,name=current" json:"current,omitempty"` First *Object `protobuf:"bytes,57,opt,name=first" json:"first,omitempty"` Last *Object `protobuf:"bytes,58,opt,name=last" json:"last,omitempty"` PartOf *Object `protobuf:"bytes,59,opt,name=partOf" json:"partOf,omitempty"` Next *Object `protobuf:"bytes,60,opt,name=next" json:"next,omitempty"` Prev *Object `protobuf:"bytes,61,opt,name=prev" json:"prev,omitempty"` }
func (*Object) Descriptor ¶
func (*Object) GetAccuracy ¶
func (*Object) GetAltitude ¶
func (*Object) GetAttachment ¶
func (*Object) GetAttributedTo ¶
func (*Object) GetAudience ¶
func (*Object) GetClosed ¶
func (m *Object) GetClosed() *google_protobuf.Timestamp
func (*Object) GetContent ¶
func (*Object) GetContext ¶
func (*Object) GetCurrent ¶
func (*Object) GetDeleted ¶
func (m *Object) GetDeleted() *google_protobuf.Timestamp
func (*Object) GetDuration ¶
func (m *Object) GetDuration() *google_protobuf.Timestamp
func (*Object) GetEndTime ¶
func (m *Object) GetEndTime() *google_protobuf.Timestamp
func (*Object) GetFormerType ¶
func (m *Object) GetFormerType() ObjectType
func (*Object) GetGenerator ¶
func (*Object) GetHreflang ¶
func (*Object) GetInReplyTo ¶
func (*Object) GetInstrument ¶
func (*Object) GetJsonLdContext ¶
func (*Object) GetLatitude ¶
func (*Object) GetLocation ¶
func (*Object) GetLongitude ¶
func (*Object) GetMediaType ¶
func (*Object) GetPreview ¶
func (*Object) GetPublished ¶
func (m *Object) GetPublished() *google_protobuf.Timestamp
func (*Object) GetRelationship ¶
func (*Object) GetReplies ¶
func (*Object) GetStartTime ¶
func (m *Object) GetStartTime() *google_protobuf.Timestamp
func (*Object) GetSubject ¶
func (*Object) GetSummary ¶
func (*Object) GetTotalItems ¶
func (*Object) GetType ¶
func (m *Object) GetType() ObjectType
func (*Object) GetUpdated ¶
func (m *Object) GetUpdated() *google_protobuf.Timestamp
func (*Object) ProtoMessage ¶
func (*Object) ProtoMessage()
type ObjectType ¶
type ObjectType int32
const ( ObjectType_BaseObject ObjectType = 0 ObjectType_Activity ObjectType = 1 ObjectType_Link ObjectType = 47 ObjectType_Mention ObjectType = 48 // CollectionTypes ObjectType_Collection ObjectType = 49 ObjectType_OrderedCollection ObjectType = 50 ObjectType_CollectionPage ObjectType = 51 ObjectType_OrderedCollectionPage ObjectType = 52 // Actor Types ObjectType_Application ObjectType = 2 ObjectType_Group ObjectType = 3 ObjectType_Organization ObjectType = 4 ObjectType_Person ObjectType = 5 ObjectType_Service ObjectType = 6 // Objects Types ObjectType_Article ObjectType = 7 ObjectType_Audio ObjectType = 8 ObjectType_Document ObjectType = 9 ObjectType_Event ObjectType = 10 ObjectType_Image ObjectType = 11 ObjectType_Note ObjectType = 12 ObjectType_Page ObjectType = 13 ObjectType_Place ObjectType = 14 ObjectType_Profile ObjectType = 15 ObjectType_Relationship ObjectType = 16 ObjectType_Tombstone ObjectType = 17 ObjectType_Video ObjectType = 18 // Activity Types ObjectType_Accept ObjectType = 19 ObjectType_Add ObjectType = 20 ObjectType_Announce ObjectType = 21 ObjectType_Arrive ObjectType = 22 ObjectType_Block ObjectType = 23 ObjectType_Create ObjectType = 24 ObjectType_Delete ObjectType = 25 ObjectType_Dislike ObjectType = 26 ObjectType_Flag ObjectType = 27 ObjectType_Follow ObjectType = 28 ObjectType_Ignore ObjectType = 29 ObjectType_Invite ObjectType = 30 ObjectType_Join ObjectType = 31 ObjectType_Leave ObjectType = 32 ObjectType_Like ObjectType = 33 ObjectType_Listen ObjectType = 34 ObjectType_Move ObjectType = 35 ObjectType_Offer ObjectType = 36 ObjectType_Question ObjectType = 37 ObjectType_Reject ObjectType = 38 ObjectType_Read ObjectType = 39 ObjectType_Remove ObjectType = 40 ObjectType_TentativeReject ObjectType = 41 ObjectType_TentativeAccept ObjectType = 42 ObjectType_Travel ObjectType = 43 ObjectType_Undo ObjectType = 44 ObjectType_Update ObjectType = 45 ObjectType_View ObjectType = 46 // Pydio Types ObjectType_Workspace ObjectType = 53 ObjectType_Digest ObjectType = 54 ObjectType_Folder ObjectType = 55 ObjectType_Cell ObjectType = 56 )
func (ObjectType) EnumDescriptor ¶
func (ObjectType) EnumDescriptor() ([]byte, []int)
func (ObjectType) String ¶
func (x ObjectType) String() string
type PostActivityEvent ¶
type PostActivityEvent struct { JsonType string `protobuf:"bytes,1,opt,name=jsonType,json=@type" json:"jsonType,omitempty"` OwnerType OwnerType `protobuf:"varint,2,opt,name=OwnerType,enum=activity.OwnerType" json:"OwnerType,omitempty"` OwnerId string `protobuf:"bytes,3,opt,name=OwnerId" json:"OwnerId,omitempty"` BoxName string `protobuf:"bytes,4,opt,name=BoxName" json:"BoxName,omitempty"` Activity *Object `protobuf:"bytes,5,opt,name=Activity" json:"Activity,omitempty"` }
func (*PostActivityEvent) Descriptor ¶
func (*PostActivityEvent) Descriptor() ([]byte, []int)
func (*PostActivityEvent) GetActivity ¶
func (m *PostActivityEvent) GetActivity() *Object
func (*PostActivityEvent) GetBoxName ¶
func (m *PostActivityEvent) GetBoxName() string
func (*PostActivityEvent) GetJsonType ¶
func (m *PostActivityEvent) GetJsonType() string
func (*PostActivityEvent) GetOwnerId ¶
func (m *PostActivityEvent) GetOwnerId() string
func (*PostActivityEvent) GetOwnerType ¶
func (m *PostActivityEvent) GetOwnerType() OwnerType
func (*PostActivityEvent) MarshalLogObject ¶ added in v1.5.0
func (p *PostActivityEvent) MarshalLogObject(encoder zapcore.ObjectEncoder) error
MarshalLogObject implements custom marshalling for logs
func (*PostActivityEvent) ProtoMessage ¶
func (*PostActivityEvent) ProtoMessage()
func (*PostActivityEvent) Reset ¶
func (m *PostActivityEvent) Reset()
func (*PostActivityEvent) String ¶
func (m *PostActivityEvent) String() string
func (*PostActivityEvent) Zap ¶
func (p *PostActivityEvent) Zap() zapcore.Field
Zap simply returns a zapcore.Field object populated with this PostActivityEvent under a standard key
type PostActivityRequest ¶
type PostActivityRequest struct {
Object *Object `protobuf:"bytes,1,opt,name=Object" json:"Object,omitempty"`
}
func (*PostActivityRequest) Descriptor ¶
func (*PostActivityRequest) Descriptor() ([]byte, []int)
func (*PostActivityRequest) GetObject ¶
func (m *PostActivityRequest) GetObject() *Object
func (*PostActivityRequest) ProtoMessage ¶
func (*PostActivityRequest) ProtoMessage()
func (*PostActivityRequest) Reset ¶
func (m *PostActivityRequest) Reset()
func (*PostActivityRequest) String ¶
func (m *PostActivityRequest) String() string
type PostActivityResponse ¶
type PostActivityResponse struct { }
func (*PostActivityResponse) Descriptor ¶
func (*PostActivityResponse) Descriptor() ([]byte, []int)
func (*PostActivityResponse) ProtoMessage ¶
func (*PostActivityResponse) ProtoMessage()
func (*PostActivityResponse) Reset ¶
func (m *PostActivityResponse) Reset()
func (*PostActivityResponse) String ¶
func (m *PostActivityResponse) String() string
type SearchSubscriptionsRequest ¶
type SearchSubscriptionsRequest struct { UserIds []string `protobuf:"bytes,1,rep,name=UserIds" json:"UserIds,omitempty"` ObjectTypes []OwnerType `protobuf:"varint,2,rep,packed,name=ObjectTypes,enum=activity.OwnerType" json:"ObjectTypes,omitempty"` ObjectIds []string `protobuf:"bytes,3,rep,name=ObjectIds" json:"ObjectIds,omitempty"` }
func (*SearchSubscriptionsRequest) Descriptor ¶
func (*SearchSubscriptionsRequest) Descriptor() ([]byte, []int)
func (*SearchSubscriptionsRequest) GetObjectIds ¶
func (m *SearchSubscriptionsRequest) GetObjectIds() []string
func (*SearchSubscriptionsRequest) GetObjectTypes ¶
func (m *SearchSubscriptionsRequest) GetObjectTypes() []OwnerType
func (*SearchSubscriptionsRequest) GetUserIds ¶
func (m *SearchSubscriptionsRequest) GetUserIds() []string
func (*SearchSubscriptionsRequest) ProtoMessage ¶
func (*SearchSubscriptionsRequest) ProtoMessage()
func (*SearchSubscriptionsRequest) Reset ¶
func (m *SearchSubscriptionsRequest) Reset()
func (*SearchSubscriptionsRequest) String ¶
func (m *SearchSubscriptionsRequest) String() string
type SearchSubscriptionsResponse ¶
type SearchSubscriptionsResponse struct {
Subscription *Subscription `protobuf:"bytes,1,opt,name=Subscription" json:"Subscription,omitempty"`
}
func (*SearchSubscriptionsResponse) Descriptor ¶
func (*SearchSubscriptionsResponse) Descriptor() ([]byte, []int)
func (*SearchSubscriptionsResponse) GetSubscription ¶
func (m *SearchSubscriptionsResponse) GetSubscription() *Subscription
func (*SearchSubscriptionsResponse) ProtoMessage ¶
func (*SearchSubscriptionsResponse) ProtoMessage()
func (*SearchSubscriptionsResponse) Reset ¶
func (m *SearchSubscriptionsResponse) Reset()
func (*SearchSubscriptionsResponse) String ¶
func (m *SearchSubscriptionsResponse) String() string
type StreamActivitiesRequest ¶
type StreamActivitiesRequest struct { Context StreamContext `protobuf:"varint,1,opt,name=Context,enum=activity.StreamContext" json:"Context,omitempty"` ContextData string `protobuf:"bytes,2,opt,name=ContextData" json:"ContextData,omitempty"` StreamFilter string `protobuf:"bytes,3,opt,name=StreamFilter" json:"StreamFilter,omitempty"` BoxName string `protobuf:"bytes,4,opt,name=BoxName" json:"BoxName,omitempty"` UnreadCountOnly bool `protobuf:"varint,5,opt,name=UnreadCountOnly" json:"UnreadCountOnly,omitempty"` Offset int64 `protobuf:"varint,6,opt,name=Offset" json:"Offset,omitempty"` Limit int64 `protobuf:"varint,7,opt,name=Limit" json:"Limit,omitempty"` AsDigest bool `protobuf:"varint,8,opt,name=AsDigest" json:"AsDigest,omitempty"` PointOfView SummaryPointOfView `protobuf:"varint,9,opt,name=PointOfView,enum=activity.SummaryPointOfView" json:"PointOfView,omitempty"` Language string `protobuf:"bytes,10,opt,name=Language" json:"Language,omitempty"` }
func (*StreamActivitiesRequest) Descriptor ¶
func (*StreamActivitiesRequest) Descriptor() ([]byte, []int)
func (*StreamActivitiesRequest) GetAsDigest ¶
func (m *StreamActivitiesRequest) GetAsDigest() bool
func (*StreamActivitiesRequest) GetBoxName ¶
func (m *StreamActivitiesRequest) GetBoxName() string
func (*StreamActivitiesRequest) GetContext ¶
func (m *StreamActivitiesRequest) GetContext() StreamContext
func (*StreamActivitiesRequest) GetContextData ¶
func (m *StreamActivitiesRequest) GetContextData() string
func (*StreamActivitiesRequest) GetLanguage ¶
func (m *StreamActivitiesRequest) GetLanguage() string
func (*StreamActivitiesRequest) GetLimit ¶
func (m *StreamActivitiesRequest) GetLimit() int64
func (*StreamActivitiesRequest) GetOffset ¶
func (m *StreamActivitiesRequest) GetOffset() int64
func (*StreamActivitiesRequest) GetPointOfView ¶
func (m *StreamActivitiesRequest) GetPointOfView() SummaryPointOfView
func (*StreamActivitiesRequest) GetStreamFilter ¶
func (m *StreamActivitiesRequest) GetStreamFilter() string
func (*StreamActivitiesRequest) GetUnreadCountOnly ¶
func (m *StreamActivitiesRequest) GetUnreadCountOnly() bool
func (*StreamActivitiesRequest) MarshalLogObject ¶ added in v1.5.0
func (s *StreamActivitiesRequest) MarshalLogObject(encoder zapcore.ObjectEncoder) error
MarshalLogObject implements custom marshalling for logs
func (*StreamActivitiesRequest) ProtoMessage ¶
func (*StreamActivitiesRequest) ProtoMessage()
func (*StreamActivitiesRequest) Reset ¶
func (m *StreamActivitiesRequest) Reset()
func (*StreamActivitiesRequest) String ¶
func (m *StreamActivitiesRequest) String() string
func (*StreamActivitiesRequest) Zap ¶
func (s *StreamActivitiesRequest) Zap() zapcore.Field
Zap simply returns a zapcore.Field object populated with this StreamActivitiesRequest under a standard key
type StreamActivitiesResponse ¶
type StreamActivitiesResponse struct {
Activity *Object `protobuf:"bytes,1,opt,name=activity" json:"activity,omitempty"`
}
func (*StreamActivitiesResponse) Descriptor ¶
func (*StreamActivitiesResponse) Descriptor() ([]byte, []int)
func (*StreamActivitiesResponse) GetActivity ¶
func (m *StreamActivitiesResponse) GetActivity() *Object
func (*StreamActivitiesResponse) ProtoMessage ¶
func (*StreamActivitiesResponse) ProtoMessage()
func (*StreamActivitiesResponse) Reset ¶
func (m *StreamActivitiesResponse) Reset()
func (*StreamActivitiesResponse) String ¶
func (m *StreamActivitiesResponse) String() string
type StreamContext ¶
type StreamContext int32
const ( StreamContext_MYFEED StreamContext = 0 StreamContext_USER_ID StreamContext = 1 StreamContext_NODE_ID StreamContext = 2 )
func (StreamContext) EnumDescriptor ¶
func (StreamContext) EnumDescriptor() ([]byte, []int)
func (StreamContext) String ¶
func (x StreamContext) String() string
type SubscribeRequest ¶
type SubscribeRequest struct {
Subscription *Subscription `protobuf:"bytes,1,opt,name=Subscription" json:"Subscription,omitempty"`
}
func (*SubscribeRequest) Descriptor ¶
func (*SubscribeRequest) Descriptor() ([]byte, []int)
func (*SubscribeRequest) GetSubscription ¶
func (m *SubscribeRequest) GetSubscription() *Subscription
func (*SubscribeRequest) ProtoMessage ¶
func (*SubscribeRequest) ProtoMessage()
func (*SubscribeRequest) Reset ¶
func (m *SubscribeRequest) Reset()
func (*SubscribeRequest) String ¶
func (m *SubscribeRequest) String() string
type SubscribeResponse ¶
type SubscribeResponse struct {
Subscription *Subscription `protobuf:"bytes,1,opt,name=Subscription" json:"Subscription,omitempty"`
}
func (*SubscribeResponse) Descriptor ¶
func (*SubscribeResponse) Descriptor() ([]byte, []int)
func (*SubscribeResponse) GetSubscription ¶
func (m *SubscribeResponse) GetSubscription() *Subscription
func (*SubscribeResponse) ProtoMessage ¶
func (*SubscribeResponse) ProtoMessage()
func (*SubscribeResponse) Reset ¶
func (m *SubscribeResponse) Reset()
func (*SubscribeResponse) String ¶
func (m *SubscribeResponse) String() string
type Subscription ¶
type Subscription struct { UserId string `protobuf:"bytes,1,opt,name=UserId" json:"UserId,omitempty"` ObjectType OwnerType `protobuf:"varint,2,opt,name=ObjectType,enum=activity.OwnerType" json:"ObjectType,omitempty"` ObjectId string `protobuf:"bytes,3,opt,name=ObjectId" json:"ObjectId,omitempty"` Events []string `protobuf:"bytes,4,rep,name=Events" json:"Events,omitempty"` }
func (*Subscription) Descriptor ¶
func (*Subscription) Descriptor() ([]byte, []int)
func (*Subscription) GetEvents ¶
func (m *Subscription) GetEvents() []string
func (*Subscription) GetObjectId ¶
func (m *Subscription) GetObjectId() string
func (*Subscription) GetObjectType ¶
func (m *Subscription) GetObjectType() OwnerType
func (*Subscription) GetUserId ¶
func (m *Subscription) GetUserId() string
func (*Subscription) MarshalLogObject ¶ added in v1.5.0
func (s *Subscription) MarshalLogObject(encoder zapcore.ObjectEncoder) error
MarshalLogObject implements custom marshalling for logs
func (*Subscription) ProtoMessage ¶
func (*Subscription) ProtoMessage()
func (*Subscription) Reset ¶
func (m *Subscription) Reset()
func (*Subscription) String ¶
func (m *Subscription) String() string
func (*Subscription) Zap ¶
func (s *Subscription) Zap() zapcore.Field
Zap simply returns a zapcore.Field object populated with this Activity Subscription under a standard key
type SummaryPointOfView ¶
type SummaryPointOfView int32
const ( SummaryPointOfView_GENERIC SummaryPointOfView = 0 SummaryPointOfView_ACTOR SummaryPointOfView = 1 SummaryPointOfView_SUBJECT SummaryPointOfView = 2 )
func (SummaryPointOfView) EnumDescriptor ¶
func (SummaryPointOfView) EnumDescriptor() ([]byte, []int)
func (SummaryPointOfView) String ¶
func (x SummaryPointOfView) String() string
type UnreadActivitiesRequest ¶
type UnreadActivitiesRequest struct {
UserId string `protobuf:"bytes,1,opt,name=UserId" json:"UserId,omitempty"`
}
func (*UnreadActivitiesRequest) Descriptor ¶
func (*UnreadActivitiesRequest) Descriptor() ([]byte, []int)
func (*UnreadActivitiesRequest) GetUserId ¶
func (m *UnreadActivitiesRequest) GetUserId() string
func (*UnreadActivitiesRequest) ProtoMessage ¶
func (*UnreadActivitiesRequest) ProtoMessage()
func (*UnreadActivitiesRequest) Reset ¶
func (m *UnreadActivitiesRequest) Reset()
func (*UnreadActivitiesRequest) String ¶
func (m *UnreadActivitiesRequest) String() string
type UnreadActivitiesResponse ¶
type UnreadActivitiesResponse struct {
Number int32 `protobuf:"varint,1,opt,name=number" json:"number,omitempty"`
}
func (*UnreadActivitiesResponse) Descriptor ¶
func (*UnreadActivitiesResponse) Descriptor() ([]byte, []int)
func (*UnreadActivitiesResponse) GetNumber ¶
func (m *UnreadActivitiesResponse) GetNumber() int32
func (*UnreadActivitiesResponse) ProtoMessage ¶
func (*UnreadActivitiesResponse) ProtoMessage()
func (*UnreadActivitiesResponse) Reset ¶
func (m *UnreadActivitiesResponse) Reset()
func (*UnreadActivitiesResponse) String ¶
func (m *UnreadActivitiesResponse) String() string
type UserLastActivityRequest ¶
type UserLastActivityRequest struct { UserId string `protobuf:"bytes,1,opt,name=UserId" json:"UserId,omitempty"` BoxName string `protobuf:"bytes,2,opt,name=BoxName" json:"BoxName,omitempty"` ActivityId string `protobuf:"bytes,3,opt,name=ActivityId" json:"ActivityId,omitempty"` }
func (*UserLastActivityRequest) Descriptor ¶
func (*UserLastActivityRequest) Descriptor() ([]byte, []int)
func (*UserLastActivityRequest) GetActivityId ¶
func (m *UserLastActivityRequest) GetActivityId() string
func (*UserLastActivityRequest) GetBoxName ¶
func (m *UserLastActivityRequest) GetBoxName() string
func (*UserLastActivityRequest) GetUserId ¶
func (m *UserLastActivityRequest) GetUserId() string
func (*UserLastActivityRequest) ProtoMessage ¶
func (*UserLastActivityRequest) ProtoMessage()
func (*UserLastActivityRequest) Reset ¶
func (m *UserLastActivityRequest) Reset()
func (*UserLastActivityRequest) String ¶
func (m *UserLastActivityRequest) String() string
type UserLastActivityResponse ¶
type UserLastActivityResponse struct {
Success bool `protobuf:"varint,1,opt,name=Success" json:"Success,omitempty"`
}
func (*UserLastActivityResponse) Descriptor ¶
func (*UserLastActivityResponse) Descriptor() ([]byte, []int)
func (*UserLastActivityResponse) GetSuccess ¶
func (m *UserLastActivityResponse) GetSuccess() bool
func (*UserLastActivityResponse) ProtoMessage ¶
func (*UserLastActivityResponse) ProtoMessage()
func (*UserLastActivityResponse) Reset ¶
func (m *UserLastActivityResponse) Reset()
func (*UserLastActivityResponse) String ¶
func (m *UserLastActivityResponse) String() string