Documentation ¶
Index ¶
- type Comment
- type CommentFilter
- type CommentHandler
- type CommentHandlerWithFilter
- type Follow
- type FollowFilter
- type FollowHandler
- type FollowHandlerWithFilter
- type Interaction
- type Like
- type LikeFilter
- type LikeHandler
- type LikeHandlerWithFilter
- type Repost
- type RepostFilter
- type RepostHandler
- type RepostHandlerWithFilter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Comment ¶
type Comment struct { Interaction Uri string // The URI of the comment ReplyTo string // The URI of the post being replied to Text string // The content of the comment }
Comment represents a comment interaction
type CommentFilter ¶
type CommentHandler ¶
type CommentHandlerWithFilter ¶
type CommentHandlerWithFilter struct { Handler CommentHandler Filters []CommentFilter }
type FollowHandler ¶
Handler functions for each interaction type
type FollowHandlerWithFilter ¶
type FollowHandlerWithFilter struct { Handler FollowHandler Filters []FollowFilter }
HandlerWithFilter combines a handler with its filters
type Interaction ¶
type Interaction struct { Actor string // The DID of the user performing the action Subject string // The DID or URI being acted upon CreatedAt time.Time // When the interaction occurred }
Interaction represents a base interaction type
type Like ¶
type Like struct { Interaction Uri string // The URI of the post being liked }
Like represents a like interaction
type LikeFilter ¶
type LikeHandler ¶
type LikeHandlerWithFilter ¶
type LikeHandlerWithFilter struct { Handler LikeHandler Filters []LikeFilter }
type Repost ¶
type Repost struct { Interaction Uri string // The URI of the post being reposted }
Repost represents a repost interaction
type RepostFilter ¶
type RepostHandler ¶
type RepostHandlerWithFilter ¶
type RepostHandlerWithFilter struct { Handler RepostHandler Filters []RepostFilter }
Click to show internal directories.
Click to hide internal directories.