Documentation ¶
Index ¶
- func ParseCollection(ctx context.Context, object vocab.Type) (vocab.ActivityStreamsCollection, error)
- func ParseEvent(ctx context.Context, object vocab.Type) (vocab.ActivityStreamsEvent, error)
- func ParseNote(ctx context.Context, object vocab.Type) (vocab.ActivityStreamsNote, error)
- func ParseOrderedCollection(ctx context.Context, object vocab.Type) (vocab.ActivityStreamsOrderedCollection, error)
- func WrapInAccept(activityID *url.URL, actorID *url.URL) (vocab.ActivityStreamsAccept, error)
- func WrapInCreate(ctx context.Context, object Object, actor vocab.Type) (vocab.ActivityStreamsCreate, error)
- func WrapInInvite(event vocab.ActivityStreamsEvent, actor vocab.Type) (vocab.ActivityStreamsInvite, error)
- type Object
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseCollection ¶
func ParseEvent ¶
func ParseOrderedCollection ¶
func WrapInAccept ¶
WrapInAccept accepts an activity ID and wraps it in an Accept activity. WrapInAccept does not handle ID assignment.
func WrapInCreate ¶
func WrapInCreate(ctx context.Context, object Object, actor vocab.Type) (vocab.ActivityStreamsCreate, error)
WrapInCreate accepts objects and wraps an object in a Create activity. WrapInCreate does not handle ID assignment.
func WrapInInvite ¶
func WrapInInvite(event vocab.ActivityStreamsEvent, actor vocab.Type) (vocab.ActivityStreamsInvite, error)
WrapInInvite accepts an event and wraps the event in an Invite activity. WrapInInvite does not handle ID assignment or determining targets.
Types ¶
type Object ¶
type Object interface { vocab.Type GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty GetActivityStreamsTo() vocab.ActivityStreamsToProperty GetActivityStreamsCc() vocab.ActivityStreamsCcProperty GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty }
Click to show internal directories.
Click to hide internal directories.