[chore] Move deps to code.superseriousbusiness.org (#4054)

This commit is contained in:
tobi
2025-04-25 15:15:36 +02:00
committed by GitHub
parent 68ed7aba25
commit ffde1b150f
955 changed files with 1970 additions and 3639 deletions

View File

@@ -1,29 +0,0 @@
BSD 3-Clause License
Copyright (c) 2018, go-fed
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

View File

@@ -1,270 +0,0 @@
# pub
Implements the Social and Federating Protocols in the ActivityPub specification.
## Reference & Tutorial
The [go-fed website](https://go-fed.org/) contains tutorials and reference
materials, in addition to the rest of this README.
## How To Use
```
go get github.com/go-fed/activity
```
The root of all ActivityPub behavior is the `Actor`, which requires you to
implement a few interfaces:
```golang
import (
"codeberg.org/superseriousbusiness/activity/pub"
)
type myActivityPubApp struct { /* ... */ }
type myAppsDatabase struct { /* ... */ }
type myAppsClock struct { /* ... */ }
var (
// Your app will implement pub.CommonBehavior, and either
// pub.SocialProtocol, pub.FederatingProtocol, or both.
myApp = &myActivityPubApp{}
myCommonBehavior pub.CommonBehavior = myApp
mySocialProtocol pub.SocialProtocol = myApp
myFederatingProtocol pub.FederatingProtocol = myApp
// Your app's database implementation.
myDatabase pub.Database = &myAppsDatabase{}
// Your app's clock.
myClock pub.Clock = &myAppsClock{}
)
// Only support the C2S Social protocol
actor := pub.NewSocialActor(
myCommonBehavior,
mySocialProtocol,
myDatabase,
myClock)
// OR
//
// Only support S2S Federating protocol
actor = pub.NewFederatingActor(
myCommonBehavior,
myFederatingProtocol,
myDatabase,
myClock)
// OR
//
// Support both C2S Social and S2S Federating protocol.
actor = pub.NewActor(
myCommonBehavior,
mySocialProtocol,
myFederatingProtocol,
myDatabase,
myClock)
```
Next, hook the `Actor` into your web server:
```golang
// The application's actor
var actor pub.Actor
var outboxHandler http.HandlerFunc = func(w http.ResponseWriter, r *http.Request) {
c := context.Background()
// Populate c with request-specific information
if handled, err := actor.PostOutbox(c, w, r); err != nil {
// Write to w
return
} else if handled {
return
} else if handled, err = actor.GetOutbox(c, w, r); err != nil {
// Write to w
return
} else if handled {
return
}
// else:
//
// Handle non-ActivityPub request, such as serving a webpage.
}
var inboxHandler http.HandlerFunc = func(w http.ResponseWriter, r *http.Request) {
c := context.Background()
// Populate c with request-specific information
if handled, err := actor.PostInbox(c, w, r); err != nil {
// Write to w
return
} else if handled {
return
} else if handled, err = actor.GetInbox(c, w, r); err != nil {
// Write to w
return
} else if handled {
return
}
// else:
//
// Handle non-ActivityPub request, such as serving a webpage.
}
// Add the handlers to a HTTP server
serveMux := http.NewServeMux()
serveMux.HandleFunc("/actor/outbox", outboxHandler)
serveMux.HandleFunc("/actor/inbox", inboxHandler)
var server http.Server
server.Handler = serveMux
```
To serve ActivityStreams data:
```golang
myHander := pub.NewActivityStreamsHandler(myDatabase, myClock)
var activityStreamsHandler http.HandlerFunc = func(w http.ResponseWriter, r *http.Request) {
c := context.Background()
// Populate c with request-specific information
if handled, err := myHandler(c, w, r); err != nil {
// Write to w
return
} else if handled {
return
}
// else:
//
// Handle non-ActivityPub request, such as serving a webpage.
}
serveMux.HandleFunc("/some/data/like/a/note", activityStreamsHandler)
```
### Dependency Injection
Package `pub` relies on dependency injection to provide out-of-the-box support
for ActivityPub. The interfaces to be satisfied are:
* `CommonBehavior` - Behavior needed regardless of which Protocol is used.
* `SocialProtocol` - Behavior needed for the Social Protocol.
* `FederatingProtocol` - Behavior needed for the Federating Protocol.
* `Database` - The data store abstraction, not tied to the `database/sql`
package.
* `Clock` - The server's internal clock.
* `Transport` - Responsible for the network that serves requests and deliveries
of ActivityStreams data. A `HttpSigTransport` type is provided.
These implementations form the core of an application's behavior without
worrying about the particulars and pitfalls of the ActivityPub protocol.
Implementing these interfaces gives you greater assurance about being
ActivityPub compliant.
### Application Logic
The `SocialProtocol` and `FederatingProtocol` are responsible for returning
callback functions compatible with `streams.TypeResolver`. They also return
`SocialWrappedCallbacks` and `FederatingWrappedCallbacks`, which are nothing
more than a bundle of default behaviors for types like `Create`, `Update`, and
so on.
Applications will want to focus on implementing their specific behaviors in the
callbacks, and have fine-grained control over customization:
```golang
// Implements the FederatingProtocol interface.
//
// This illustration can also be applied for the Social Protocol.
func (m *myAppsFederatingProtocol) Callbacks(c context.Context) (wrapped pub.FederatingWrappedCallbacks, other []interface{}) {
// The context 'c' has request-specific logic and can be used to apply complex
// logic building the right behaviors, if desired.
//
// 'c' will later be passed through to the callbacks created below.
wrapped = pub.FederatingWrappedCallbacks{
Create: func(ctx context.Context, create vocab.ActivityStreamsCreate) error {
// This function is wrapped by default behavior.
//
// More application specific logic can be written here.
//
// 'ctx' will have request-specific information from the HTTP handler. It
// is the same as the 'c' passed to the Callbacks method.
// 'create' has, at this point, already triggered the recommended
// ActivityPub side effect behavior. The application can process it
// further as needed.
return nil
},
}
// The 'other' must contain functions that satisfy the signature pattern
// required by streams.JSONResolver.
//
// If they are not, at runtime errors will be returned to indicate this.
other = []interface{}{
// The FederatingWrappedCallbacks has default behavior for an "Update" type,
// but since we are providing this behavior in "other" and not in the
// FederatingWrappedCallbacks.Update member, we will entirely replace the
// default behavior provided by go-fed. Be careful that this still
// implements ActivityPub properly.
func(ctx context.Context, update vocab.ActivityStreamsUpdate) error {
// This function is NOT wrapped by default behavior.
//
// Application specific logic can be written here.
//
// 'ctx' will have request-specific information from the HTTP handler. It
// is the same as the 'c' passed to the Callbacks method.
// 'update' will NOT trigger the recommended ActivityPub side effect
// behavior. The application should do so in addition to any other custom
// side effects required.
return nil
},
// The "Listen" type has no default suggested behavior in ActivityPub, so
// this just makes this application able to handle "Listen" activities.
func(ctx context.Context, listen vocab.ActivityStreamsListen) error {
// This function is NOT wrapped by default behavior. There's not a
// FederatingWrappedCallbacks.Listen member to wrap.
//
// Application specific logic can be written here.
//
// 'ctx' will have request-specific information from the HTTP handler. It
// is the same as the 'c' passed to the Callbacks method.
// 'listen' can be processed with side effects as the application needs.
return nil
},
}
return
}
```
The `pub` package supports applications that grow into more custom solutions by
overriding the default behaviors as needed.
### ActivityStreams Extensions: Future-Proofing An Application
Package `pub` relies on the `streams.TypeResolver` and `streams.JSONResolver`
code generated types. As new ActivityStreams extensions are developed and their
code is generated, `pub` will automatically pick up support for these
extensions.
The steps to rapidly implement a new extension in a `pub` application are:
1. Generate an OWL definition of the ActivityStreams extension. This definition
could be the same one defining the vocabulary at the `@context` IRI.
2. Run `astool` to autogenerate the golang types in the `streams` package.
3. Implement the application's callbacks in the `FederatingProtocol.Callbacks`
or `SocialProtocol.Callbacks` for the new behaviors needed.
4. Build the application, which builds `pub`, with the newly generated `streams`
code. No code changes in `pub` are required.
Whether an author of an ActivityStreams extension or an application developer,
these quick steps should reduce the barrier to adopion in a statically-typed
environment.
### DelegateActor
For those that need a near-complete custom ActivityPub solution, or want to have
that possibility in the future after adopting go-fed, the `DelegateActor`
interface can be used to obtain an `Actor`:
```golang
// Use custom ActivityPub implementation
actor = pub.NewCustomActor(
myDelegateActor,
isSocialProtocolEnabled,
isFederatedProtocolEnabled,
myAppsClock)
```
It does not guarantee that an implementation adheres to the ActivityPub
specification. It acts as a stepping stone for applications that want to build
up to a fully custom solution and not be locked into the `pub` package
implementation.

View File

@@ -1,49 +0,0 @@
package pub
import (
"codeberg.org/superseriousbusiness/activity/streams/vocab"
)
// Activity represents any ActivityStreams Activity type.
//
// The Activity types provided in the streams package implement this.
type Activity interface {
// Activity is also a vocab.Type
vocab.Type
// GetActivityStreamsActor returns the "actor" property if it exists, and
// nil otherwise.
GetActivityStreamsActor() vocab.ActivityStreamsActorProperty
// GetActivityStreamsAudience returns the "audience" property if it
// exists, and nil otherwise.
GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty
// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil
// otherwise.
GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty
// GetActivityStreamsBto returns the "bto" property if it exists, and nil
// otherwise.
GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty
// GetActivityStreamsCc returns the "cc" property if it exists, and nil
// otherwise.
GetActivityStreamsCc() vocab.ActivityStreamsCcProperty
// GetActivityStreamsTo returns the "to" property if it exists, and nil
// otherwise.
GetActivityStreamsTo() vocab.ActivityStreamsToProperty
// GetActivityStreamsAttributedTo returns the "attributedTo" property if
// it exists, and nil otherwise.
GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty
// GetActivityStreamsObject returns the "object" property if it exists,
// and nil otherwise.
GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty
// SetActivityStreamsActor sets the "actor" property.
SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty)
// SetActivityStreamsObject sets the "object" property.
SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty)
// SetActivityStreamsTo sets the "to" property.
SetActivityStreamsTo(i vocab.ActivityStreamsToProperty)
// SetActivityStreamsBto sets the "bto" property.
SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty)
// SetActivityStreamsBcc sets the "bcc" property.
SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty)
// SetActivityStreamsAttributedTo sets the "attributedTo" property.
SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty)
}

View File

@@ -1,128 +0,0 @@
package pub
import (
"context"
"net/http"
"net/url"
"codeberg.org/superseriousbusiness/activity/streams/vocab"
)
// Actor represents ActivityPub's actor concept. It conceptually has an inbox
// and outbox that receives either a POST or GET request, which triggers side
// effects in the federating application.
//
// An Actor within an application may federate server-to-server (Federation
// Protocol), client-to-server (Social API), or both. The Actor represents the
// server in either use case.
//
// An actor can be created by calling NewSocialActor (only the Social Protocol
// is supported), NewFederatingActor (only the Federating Protocol is
// supported), NewActor (both are supported), or NewCustomActor (neither are).
//
// Not all Actors have the same behaviors depending on the constructor used to
// create them. Refer to the constructor's documentation to determine the exact
// behavior of the Actor on an application.
//
// The behaviors documented here are common to all Actors returned by any
// constructor.
type Actor interface {
// PostInbox returns true if the request was handled as an ActivityPub
// POST to an actor's inbox. If false, the request was not an
// ActivityPub request and may still be handled by the caller in
// another way, such as serving a web page.
//
// If the error is nil, then the ResponseWriter's headers and response
// has already been written. If a non-nil error is returned, then no
// response has been written.
//
// If the Actor was constructed with the Federated Protocol enabled,
// side effects will occur.
//
// If the Federated Protocol is not enabled, writes the
// http.StatusMethodNotAllowed status code in the response. No side
// effects occur.
//
// The request and data of your application will be interpreted as
// having an HTTPS protocol scheme.
PostInbox(c context.Context, w http.ResponseWriter, r *http.Request) (bool, error)
// PostInboxScheme is similar to PostInbox, except clients are able to
// specify which protocol scheme to handle the incoming request and the
// data stored within the application (HTTP, HTTPS, etc).
PostInboxScheme(c context.Context, w http.ResponseWriter, r *http.Request, scheme string) (bool, error)
// GetInbox returns true if the request was handled as an ActivityPub
// GET to an actor's inbox. If false, the request was not an ActivityPub
// request and may still be handled by the caller in another way, such
// as serving a web page.
//
// If the error is nil, then the ResponseWriter's headers and response
// has already been written. If a non-nil error is returned, then no
// response has been written.
//
// If the request is an ActivityPub request, the Actor will defer to the
// application to determine the correct authorization of the request and
// the resulting OrderedCollection to respond with. The Actor handles
// serializing this OrderedCollection and responding with the correct
// headers and http.StatusOK.
GetInbox(c context.Context, w http.ResponseWriter, r *http.Request) (bool, error)
// PostOutbox returns true if the request was handled as an ActivityPub
// POST to an actor's outbox. If false, the request was not an
// ActivityPub request and may still be handled by the caller in another
// way, such as serving a web page.
//
// If the error is nil, then the ResponseWriter's headers and response
// has already been written. If a non-nil error is returned, then no
// response has been written.
//
// If the Actor was constructed with the Social Protocol enabled, side
// effects will occur.
//
// If the Social Protocol is not enabled, writes the
// http.StatusMethodNotAllowed status code in the response. No side
// effects occur.
//
// If the Social and Federated Protocol are both enabled, it will handle
// the side effects of receiving an ActivityStream Activity, and then
// federate the Activity to peers.
//
// The request will be interpreted as having an HTTPS scheme.
PostOutbox(c context.Context, w http.ResponseWriter, r *http.Request) (bool, error)
// PostOutboxScheme is similar to PostOutbox, except clients are able to
// specify which protocol scheme to handle the incoming request and the
// data stored within the application (HTTP, HTTPS, etc).
PostOutboxScheme(c context.Context, w http.ResponseWriter, r *http.Request, scheme string) (bool, error)
// GetOutbox returns true if the request was handled as an ActivityPub
// GET to an actor's outbox. If false, the request was not an
// ActivityPub request.
//
// If the error is nil, then the ResponseWriter's headers and response
// has already been written. If a non-nil error is returned, then no
// response has been written.
//
// If the request is an ActivityPub request, the Actor will defer to the
// application to determine the correct authorization of the request and
// the resulting OrderedCollection to respond with. The Actor handles
// serializing this OrderedCollection and responding with the correct
// headers and http.StatusOK.
GetOutbox(c context.Context, w http.ResponseWriter, r *http.Request) (bool, error)
}
// FederatingActor is an Actor that allows programmatically delivering an
// Activity to a federating peer.
type FederatingActor interface {
Actor
// Send a federated activity.
//
// The provided url must be the outbox of the sender. All processing of
// the activity occurs similarly to the C2S flow:
// - If t is not an Activity, it is wrapped in a Create activity.
// - A new ID is generated for the activity.
// - The activity is added to the specified outbox.
// - The activity is prepared and delivered to recipients.
//
// Note that this function will only behave as expected if the
// implementation has been constructed to support federation. This
// method will guaranteed work for non-custom Actors. For custom actors,
// care should be used to not call this method if only C2S is supported.
Send(c context.Context, outbox *url.URL, t vocab.Type) (Activity, error)
}

View File

@@ -1,475 +0,0 @@
package pub
import (
"context"
"encoding/json"
"fmt"
"net/http"
"net/url"
"codeberg.org/superseriousbusiness/activity/streams"
"codeberg.org/superseriousbusiness/activity/streams/vocab"
)
// baseActor must satisfy the Actor interface.
var _ Actor = &baseActor{}
// baseActor is an application-independent ActivityPub implementation. It does
// not implement the entire protocol, and relies on a delegate to do so. It
// only implements the part of the protocol that is side-effect-free, allowing
// an existing application to write a DelegateActor that glues their application
// into the ActivityPub world.
//
// It is preferred to use a DelegateActor provided by this library, so that the
// application does not need to worry about the ActivityPub implementation.
type baseActor struct {
// delegate contains application-specific delegation logic.
delegate DelegateActor
// enableSocialProtocol enables or disables the Social API, the client to
// server part of ActivityPub. Useful if permitting remote clients to
// act on behalf of the users of the client application.
enableSocialProtocol bool
// enableFederatedProtocol enables or disables the Federated Protocol, or the
// server to server part of ActivityPub. Useful to permit integrating
// with the rest of the federative web.
enableFederatedProtocol bool
// clock simply tracks the current time.
clock Clock
}
// baseActorFederating must satisfy the FederatingActor interface.
var _ FederatingActor = &baseActorFederating{}
// baseActorFederating is a baseActor that also satisfies the FederatingActor
// interface.
//
// The baseActor is preserved as an Actor which will not successfully cast to a
// FederatingActor.
type baseActorFederating struct {
baseActor
}
// NewSocialActor builds a new Actor concept that handles only the Social
// Protocol part of ActivityPub.
//
// This Actor can be created once in an application and reused to handle
// multiple requests concurrently and for different endpoints.
//
// It leverages as much of go-fed as possible to ensure the implementation is
// compliant with the ActivityPub specification, while providing enough freedom
// to be productive without shooting one's self in the foot.
//
// Do not try to use NewSocialActor and NewFederatingActor together to cover
// both the Social and Federating parts of the protocol. Instead, use NewActor.
func NewSocialActor(c CommonBehavior,
c2s SocialProtocol,
db Database,
clock Clock) Actor {
return &baseActor{
// Use SideEffectActor without s2s.
delegate: NewSideEffectActor(c, nil, c2s, db, clock),
enableSocialProtocol: true,
clock: clock,
}
}
// NewFederatingActor builds a new Actor concept that handles only the Federating
// Protocol part of ActivityPub.
//
// This Actor can be created once in an application and reused to handle
// multiple requests concurrently and for different endpoints.
//
// It leverages as much of go-fed as possible to ensure the implementation is
// compliant with the ActivityPub specification, while providing enough freedom
// to be productive without shooting one's self in the foot.
//
// Do not try to use NewSocialActor and NewFederatingActor together to cover
// both the Social and Federating parts of the protocol. Instead, use NewActor.
func NewFederatingActor(c CommonBehavior,
s2s FederatingProtocol,
db Database,
clock Clock) FederatingActor {
return &baseActorFederating{
baseActor{
// Use SideEffectActor without c2s.
delegate: NewSideEffectActor(c, s2s, nil, db, clock),
enableFederatedProtocol: true,
clock: clock,
},
}
}
// NewActor builds a new Actor concept that handles both the Social and
// Federating Protocol parts of ActivityPub.
//
// This Actor can be created once in an application and reused to handle
// multiple requests concurrently and for different endpoints.
//
// It leverages as much of go-fed as possible to ensure the implementation is
// compliant with the ActivityPub specification, while providing enough freedom
// to be productive without shooting one's self in the foot.
func NewActor(c CommonBehavior,
c2s SocialProtocol,
s2s FederatingProtocol,
db Database,
clock Clock) FederatingActor {
return &baseActorFederating{
baseActor{
delegate: NewSideEffectActor(c, s2s, c2s, db, clock),
enableSocialProtocol: true,
enableFederatedProtocol: true,
clock: clock,
},
}
}
// NewCustomActor allows clients to create a custom ActivityPub implementation
// for the Social Protocol, Federating Protocol, or both.
//
// It still uses the library as a high-level scaffold, which has the benefit of
// allowing applications to grow into a custom ActivityPub solution without
// having to refactor the code that passes HTTP requests into the Actor.
//
// It is possible to create a DelegateActor that is not ActivityPub compliant.
// Use with due care.
//
// If you find yourself passing a SideEffectActor in as the DelegateActor,
// consider using NewActor, NewFederatingActor, or NewSocialActor instead.
func NewCustomActor(delegate DelegateActor,
enableSocialProtocol, enableFederatedProtocol bool,
clock Clock) FederatingActor {
return &baseActorFederating{
baseActor{
delegate: delegate,
enableSocialProtocol: enableSocialProtocol,
enableFederatedProtocol: enableFederatedProtocol,
clock: clock,
},
}
}
// PostInbox implements the generic algorithm for handling a POST request to an
// actor's inbox independent on an application. It relies on a delegate to
// implement application specific functionality.
//
// Only supports serving data with identifiers having the HTTPS scheme.
func (b *baseActor) PostInbox(c context.Context, w http.ResponseWriter, r *http.Request) (bool, error) {
return b.PostInboxScheme(c, w, r, "https")
}
// PostInbox implements the generic algorithm for handling a POST request to an
// actor's inbox independent on an application. It relies on a delegate to
// implement application specific functionality.
//
// Specifying the "scheme" allows for retrieving ActivityStreams content with
// identifiers such as HTTP, HTTPS, or other protocol schemes.
func (b *baseActor) PostInboxScheme(c context.Context, w http.ResponseWriter, r *http.Request, scheme string) (bool, error) {
// Do nothing if it is not an ActivityPub POST request.
if !isActivityPubPost(r) {
return false, nil
}
// If the Federated Protocol is not enabled, then this endpoint is not
// enabled.
if !b.enableFederatedProtocol {
w.WriteHeader(http.StatusMethodNotAllowed)
return true, nil
}
// Check the peer request is authentic.
c, authenticated, err := b.delegate.AuthenticatePostInbox(c, w, r)
if err != nil {
return true, err
} else if !authenticated {
return true, nil
}
// Begin processing the request, but have not yet applied
// authorization (ex: blocks). Obtain the activity reject unknown
// activities.
m, err := readActivityPubReq(r)
if err != nil {
return true, err
}
asValue, err := streams.ToType(c, m)
if err != nil && !streams.IsUnmatchedErr(err) {
return true, err
} else if streams.IsUnmatchedErr(err) {
// Respond with bad request -- we do not understand the type.
w.WriteHeader(http.StatusBadRequest)
return true, nil
}
activity, ok := asValue.(Activity)
if !ok {
return true, fmt.Errorf("activity streams value is not an Activity: %T", asValue)
}
if activity.GetJSONLDId() == nil {
w.WriteHeader(http.StatusBadRequest)
return true, nil
}
// Allow server implementations to set context data with a hook.
c, err = b.delegate.PostInboxRequestBodyHook(c, r, activity)
if err != nil {
return true, err
}
// Check authorization of the activity.
authorized, err := b.delegate.AuthorizePostInbox(c, w, activity)
if err != nil {
return true, err
} else if !authorized {
return true, nil
}
// Post the activity to the actor's inbox and trigger side effects for
// that particular Activity type. It is up to the delegate to resolve
// the given map.
inboxId := requestId(r, scheme)
err = b.delegate.PostInbox(c, inboxId, activity)
if err != nil {
// Special case: We know it is a bad request if the object or
// target properties needed to be populated, but weren't.
//
// Send the rejection to the peer.
if err == ErrObjectRequired || err == ErrTargetRequired {
w.WriteHeader(http.StatusBadRequest)
return true, nil
}
return true, err
}
// Our side effects are complete, now delegate determining whether to
// do inbox forwarding, as well as the action to do it.
if err := b.delegate.InboxForwarding(c, inboxId, activity); err != nil {
return true, err
}
// Request has been processed. Begin responding to the request.
//
// Simply respond with an OK status to the peer.
w.WriteHeader(http.StatusOK)
return true, nil
}
// GetInbox implements the generic algorithm for handling a GET request to an
// actor's inbox independent on an application. It relies on a delegate to
// implement application specific functionality.
func (b *baseActor) GetInbox(c context.Context, w http.ResponseWriter, r *http.Request) (bool, error) {
// Do nothing if it is not an ActivityPub GET request.
if !isActivityPubGet(r) {
return false, nil
}
// Delegate authenticating and authorizing the request.
c, authenticated, err := b.delegate.AuthenticateGetInbox(c, w, r)
if err != nil {
return true, err
} else if !authenticated {
return true, nil
}
// Everything is good to begin processing the request.
oc, err := b.delegate.GetInbox(c, r)
if err != nil {
return true, err
}
// Deduplicate the 'orderedItems' property by ID.
err = dedupeOrderedItems(oc)
if err != nil {
return true, err
}
// Request has been processed. Begin responding to the request.
//
// Serialize the OrderedCollection.
m, err := streams.Serialize(oc)
if err != nil {
return true, err
}
raw, err := json.Marshal(m)
if err != nil {
return true, err
}
// Write the response.
addResponseHeaders(w.Header(), b.clock, raw)
w.WriteHeader(http.StatusOK)
n, err := w.Write(raw)
if err != nil {
return true, err
} else if n != len(raw) {
return true, fmt.Errorf("ResponseWriter.Write wrote %d of %d bytes", n, len(raw))
}
return true, nil
}
// PostOutbox implements the generic algorithm for handling a POST request to an
// actor's outbox independent on an application. It relies on a delegate to
// implement application specific functionality.
//
// Only supports serving data with identifiers having the HTTPS scheme.
func (b *baseActor) PostOutbox(c context.Context, w http.ResponseWriter, r *http.Request) (bool, error) {
return b.PostOutboxScheme(c, w, r, "https")
}
// PostOutbox implements the generic algorithm for handling a POST request to an
// actor's outbox independent on an application. It relies on a delegate to
// implement application specific functionality.
//
// Specifying the "scheme" allows for retrieving ActivityStreams content with
// identifiers such as HTTP, HTTPS, or other protocol schemes.
func (b *baseActor) PostOutboxScheme(c context.Context, w http.ResponseWriter, r *http.Request, scheme string) (bool, error) {
// Do nothing if it is not an ActivityPub POST request.
if !isActivityPubPost(r) {
return false, nil
}
// If the Social API is not enabled, then this endpoint is not enabled.
if !b.enableSocialProtocol {
w.WriteHeader(http.StatusMethodNotAllowed)
return true, nil
}
// Delegate authenticating and authorizing the request.
c, authenticated, err := b.delegate.AuthenticatePostOutbox(c, w, r)
if err != nil {
return true, err
} else if !authenticated {
return true, nil
}
// Everything is good to begin processing the request.
m, err := readActivityPubReq(r)
if err != nil {
return true, err
}
// Note that converting to a Type will NOT successfully convert types
// not known to go-fed. This prevents accidentally wrapping an Activity
// type unknown to go-fed in a Create below. Instead,
// streams.ErrUnhandledType will be returned here.
asValue, err := streams.ToType(c, m)
if err != nil && !streams.IsUnmatchedErr(err) {
return true, err
} else if streams.IsUnmatchedErr(err) {
// Respond with bad request -- we do not understand the type.
w.WriteHeader(http.StatusBadRequest)
return true, nil
}
// Allow server implementations to set context data with a hook.
c, err = b.delegate.PostOutboxRequestBodyHook(c, r, asValue)
if err != nil {
return true, err
}
// The HTTP request steps are complete, complete the rest of the outbox
// and delivery process.
outboxId := requestId(r, scheme)
activity, err := b.deliver(c, outboxId, asValue, m)
// Special case: We know it is a bad request if the object or
// target properties needed to be populated, but weren't.
//
// Send the rejection to the client.
if err == ErrObjectRequired || err == ErrTargetRequired {
w.WriteHeader(http.StatusBadRequest)
return true, nil
} else if err != nil {
return true, err
}
// Respond to the request with the new Activity's IRI location.
w.Header().Set(locationHeader, activity.GetJSONLDId().Get().String())
w.WriteHeader(http.StatusCreated)
return true, nil
}
// GetOutbox implements the generic algorithm for handling a Get request to an
// actor's outbox independent on an application. It relies on a delegate to
// implement application specific functionality.
func (b *baseActor) GetOutbox(c context.Context, w http.ResponseWriter, r *http.Request) (bool, error) {
// Do nothing if it is not an ActivityPub GET request.
if !isActivityPubGet(r) {
return false, nil
}
// Delegate authenticating and authorizing the request.
c, authenticated, err := b.delegate.AuthenticateGetOutbox(c, w, r)
if err != nil {
return true, err
} else if !authenticated {
return true, nil
}
// Everything is good to begin processing the request.
oc, err := b.delegate.GetOutbox(c, r)
if err != nil {
return true, err
}
// Request has been processed. Begin responding to the request.
//
// Serialize the OrderedCollection.
m, err := streams.Serialize(oc)
if err != nil {
return true, err
}
raw, err := json.Marshal(m)
if err != nil {
return true, err
}
// Write the response.
addResponseHeaders(w.Header(), b.clock, raw)
w.WriteHeader(http.StatusOK)
n, err := w.Write(raw)
if err != nil {
return true, err
} else if n != len(raw) {
return true, fmt.Errorf("ResponseWriter.Write wrote %d of %d bytes", n, len(raw))
}
return true, nil
}
// deliver delegates all outbox handling steps and optionally will federate the
// activity if the federated protocol is enabled.
//
// This function is not exported so an Actor that only supports C2S cannot be
// type casted to a FederatingActor. It doesn't exactly fit the Send method
// signature anyways.
//
// Note: 'm' is nilable.
func (b *baseActor) deliver(c context.Context, outbox *url.URL, asValue vocab.Type, m map[string]interface{}) (activity Activity, err error) {
// If the value is not an Activity or type extending from Activity, then
// we need to wrap it in a Create Activity.
if !streams.IsOrExtendsActivityStreamsActivity(asValue) {
asValue, err = b.delegate.WrapInCreate(c, asValue, outbox)
if err != nil {
return
}
}
// At this point, this should be a safe conversion. If this error is
// triggered, then there is either a bug in the delegation of
// WrapInCreate, behavior is not lining up in the generated ExtendedBy
// code, or something else is incorrect with the type system.
var ok bool
activity, ok = asValue.(Activity)
if !ok {
err = fmt.Errorf("activity streams value is not an Activity: %T", asValue)
return
}
// Delegate generating new IDs for the activity and all new objects.
if err = b.delegate.AddNewIDs(c, activity); err != nil {
return
}
// Post the activity to the actor's outbox and trigger side effects for
// that particular Activity type.
//
// Since 'm' is nil-able and side effects may need access to literal nil
// values, such as for Update activities, ensure 'm' is non-nil.
if m == nil {
m, err = asValue.Serialize()
if err != nil {
return
}
}
deliverable, err := b.delegate.PostOutbox(c, activity, outbox, m)
if err != nil {
return
}
// Request has been processed and all side effects internal to this
// application server have finished. Begin side effects affecting other
// servers and/or the client who sent this request.
//
// If we are federating and the type is a deliverable one, then deliver
// the activity to federating peers.
if b.enableFederatedProtocol && deliverable {
if err = b.delegate.Deliver(c, outbox, activity); err != nil {
return
}
}
return
}
// Send is programmatically accessible if the federated protocol is enabled.
func (b *baseActorFederating) Send(c context.Context, outbox *url.URL, t vocab.Type) (Activity, error) {
return b.deliver(c, outbox, t, nil)
}

View File

@@ -1,11 +0,0 @@
package pub
import (
"time"
)
// Clock determines the time.
type Clock interface {
// Now returns the current time.
Now() time.Time
}

View File

@@ -1,90 +0,0 @@
package pub
import (
"context"
"net/http"
"net/url"
"codeberg.org/superseriousbusiness/activity/streams/vocab"
)
// Common contains functions required for both the Social API and Federating
// Protocol.
//
// It is passed to the library as a dependency injection from the client
// application.
type CommonBehavior interface {
// AuthenticateGetInbox delegates the authentication of a GET to an
// inbox.
//
// Always called, regardless whether the Federated Protocol or Social
// API is enabled.
//
// If an error is returned, it is passed back to the caller of
// GetInbox. In this case, the implementation must not write a
// response to the ResponseWriter as is expected that the client will
// do so when handling the error. The 'authenticated' is ignored.
//
// If no error is returned, but authentication or authorization fails,
// then authenticated must be false and error nil. It is expected that
// the implementation handles writing to the ResponseWriter in this
// case.
//
// Finally, if the authentication and authorization succeeds, then
// authenticated must be true and error nil. The request will continue
// to be processed.
AuthenticateGetInbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error)
// AuthenticateGetOutbox delegates the authentication of a GET to an
// outbox.
//
// Always called, regardless whether the Federated Protocol or Social
// API is enabled.
//
// If an error is returned, it is passed back to the caller of
// GetOutbox. In this case, the implementation must not write a
// response to the ResponseWriter as is expected that the client will
// do so when handling the error. The 'authenticated' is ignored.
//
// If no error is returned, but authentication or authorization fails,
// then authenticated must be false and error nil. It is expected that
// the implementation handles writing to the ResponseWriter in this
// case.
//
// Finally, if the authentication and authorization succeeds, then
// authenticated must be true and error nil. The request will continue
// to be processed.
AuthenticateGetOutbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error)
// GetOutbox returns the OrderedCollection inbox of the actor for this
// context. It is up to the implementation to provide the correct
// collection for the kind of authorization given in the request.
//
// AuthenticateGetOutbox will be called prior to this.
//
// Always called, regardless whether the Federated Protocol or Social
// API is enabled.
GetOutbox(c context.Context, r *http.Request) (vocab.ActivityStreamsOrderedCollectionPage, error)
// NewTransport returns a new Transport on behalf of a specific actor.
//
// The actorBoxIRI will be either the inbox or outbox of an actor who is
// attempting to do the dereferencing or delivery. Any authentication
// scheme applied on the request must be based on this actor. The
// request must contain some sort of credential of the user, such as a
// HTTP Signature.
//
// The gofedAgent passed in should be used by the Transport
// implementation in the User-Agent, as well as the application-specific
// user agent string. The gofedAgent will indicate this library's use as
// well as the library's version number.
//
// Any server-wide rate-limiting that needs to occur should happen in a
// Transport implementation. This factory function allows this to be
// created, so peer servers are not DOS'd.
//
// Any retry logic should also be handled by the Transport
// implementation.
//
// Note that the library will not maintain a long-lived pointer to the
// returned Transport so that any private credentials are able to be
// garbage collected.
NewTransport(c context.Context, actorBoxIRI *url.URL, gofedAgent string) (t Transport, err error)
}

View File

@@ -1,152 +0,0 @@
package pub
import (
"context"
"net/url"
"codeberg.org/superseriousbusiness/activity/streams/vocab"
)
type Database interface {
// Lock takes a lock for the object at the specified id. If an error
// is returned, the lock must not have been taken.
//
// The lock must be able to succeed for an id that does not exist in
// the database. This means acquiring the lock does not guarantee the
// entry exists in the database.
//
// Locks are encouraged to be lightweight and in the Go layer, as some
// processes require tight loops acquiring and releasing locks.
//
// Used to ensure race conditions in multiple requests do not occur.
Lock(c context.Context, id *url.URL) (unlock func(), err error)
// InboxContains returns true if the OrderedCollection at 'inbox'
// contains the specified 'id'.
//
// The library makes this call only after acquiring a lock first.
InboxContains(c context.Context, inbox, id *url.URL) (contains bool, err error)
// GetInbox returns the first ordered collection page of the outbox at
// the specified IRI, for prepending new items.
//
// The library makes this call only after acquiring a lock first.
GetInbox(c context.Context, inboxIRI *url.URL) (inbox vocab.ActivityStreamsOrderedCollectionPage, err error)
// SetInbox saves the inbox value given from GetInbox, with new items
// prepended. Note that the new items must not be added as independent
// database entries. Separate calls to Create will do that.
//
// The library makes this call only after acquiring a lock first.
SetInbox(c context.Context, inbox vocab.ActivityStreamsOrderedCollectionPage) error
// Owns returns true if the database has an entry for the IRI and it
// exists in the database.
//
// The library makes this call only after acquiring a lock first.
Owns(c context.Context, id *url.URL) (owns bool, err error)
// ActorForOutbox fetches the actor's IRI for the given outbox IRI.
//
// The library makes this call only after acquiring a lock first.
ActorForOutbox(c context.Context, outboxIRI *url.URL) (actorIRI *url.URL, err error)
// ActorForInbox fetches the actor's IRI for the given outbox IRI.
//
// The library makes this call only after acquiring a lock first.
ActorForInbox(c context.Context, inboxIRI *url.URL) (actorIRI *url.URL, err error)
// OutboxForInbox fetches the corresponding actor's outbox IRI for the
// actor's inbox IRI.
//
// The library makes this call only after acquiring a lock first.
OutboxForInbox(c context.Context, inboxIRI *url.URL) (outboxIRI *url.URL, err error)
// InboxesForIRI fetches inboxes corresponding to the given iri.
// This allows your server to skip remote dereferencing of iris
// in order to speed up message delivery, if desired.
//
// It is acceptable to just return nil or an empty slice for the inboxIRIs,
// if you don't know the inbox iri, or you don't wish to use this feature.
// In this case, the library will attempt to resolve inboxes of the iri
// by remote dereferencing instead.
//
// If the input iri is the iri of an Actor, then the inbox for the actor
// should be returned as a single-entry slice.
//
// If the input iri is a Collection (such as a Collection of followers),
// then each follower inbox IRI should be returned in the inboxIRIs slice.
//
// The library makes this call only after acquiring a lock first.
InboxesForIRI(c context.Context, iri *url.URL) (inboxIRIs []*url.URL, err error)
// Exists returns true if the database has an entry for the specified
// id. It may not be owned by this application instance.
//
// The library makes this call only after acquiring a lock first.
Exists(c context.Context, id *url.URL) (exists bool, err error)
// Get returns the database entry for the specified id.
//
// The library makes this call only after acquiring a lock first.
Get(c context.Context, id *url.URL) (value vocab.Type, err error)
// Create adds a new entry to the database which must be able to be
// keyed by its id.
//
// Note that Activity values received from federated peers may also be
// created in the database this way if the Federating Protocol is
// enabled. The client may freely decide to store only the id instead of
// the entire value.
//
// The library makes this call only after acquiring a lock first.
//
// Under certain conditions and network activities, Create may be called
// multiple times for the same ActivityStreams object.
Create(c context.Context, asType vocab.Type) error
// Update sets an existing entry to the database based on the value's
// id.
//
// Note that Activity values received from federated peers may also be
// updated in the database this way if the Federating Protocol is
// enabled. The client may freely decide to store only the id instead of
// the entire value.
//
// The library makes this call only after acquiring a lock first.
Update(c context.Context, asType vocab.Type) error
// Delete removes the entry with the given id.
//
// Delete is only called for federated objects. Deletes from the Social
// Protocol instead call Update to create a Tombstone.
//
// The library makes this call only after acquiring a lock first.
Delete(c context.Context, id *url.URL) error
// GetOutbox returns the first ordered collection page of the outbox
// at the specified IRI, for prepending new items.
//
// The library makes this call only after acquiring a lock first.
GetOutbox(c context.Context, outboxIRI *url.URL) (outbox vocab.ActivityStreamsOrderedCollectionPage, err error)
// SetOutbox saves the outbox value given from GetOutbox, with new items
// prepended. Note that the new items must not be added as independent
// database entries. Separate calls to Create will do that.
//
// The library makes this call only after acquiring a lock first.
SetOutbox(c context.Context, outbox vocab.ActivityStreamsOrderedCollectionPage) error
// NewID creates a new IRI id for the provided activity or object. The
// implementation does not need to set the 'id' property and simply
// needs to determine the value.
//
// The go-fed library will handle setting the 'id' property on the
// activity or object provided with the value returned.
NewID(c context.Context, t vocab.Type) (id *url.URL, err error)
// Followers obtains the Followers Collection for an actor with the
// given id.
//
// If modified, the library will then call Update.
//
// The library makes this call only after acquiring a lock first.
Followers(c context.Context, actorIRI *url.URL) (followers vocab.ActivityStreamsCollection, err error)
// Following obtains the Following Collection for an actor with the
// given id.
//
// If modified, the library will then call Update.
//
// The library makes this call only after acquiring a lock first.
Following(c context.Context, actorIRI *url.URL) (following vocab.ActivityStreamsCollection, err error)
// Liked obtains the Liked Collection for an actor with the
// given id.
//
// If modified, the library will then call Update.
//
// The library makes this call only after acquiring a lock first.
Liked(c context.Context, actorIRI *url.URL) (liked vocab.ActivityStreamsCollection, err error)
}

View File

@@ -1,249 +0,0 @@
package pub
import (
"context"
"net/http"
"net/url"
"codeberg.org/superseriousbusiness/activity/streams/vocab"
)
// DelegateActor contains the detailed interface an application must satisfy in
// order to implement the ActivityPub specification.
//
// Note that an implementation of this interface is implicitly provided in the
// calls to NewActor, NewSocialActor, and NewFederatingActor.
//
// Implementing the DelegateActor requires familiarity with the ActivityPub
// specification because it does not a strong enough abstraction for the client
// application to ignore the ActivityPub spec. It is very possible to implement
// this interface and build a foot-gun that trashes the fediverse without being
// ActivityPub compliant. Please use with due consideration.
//
// Alternatively, build an application that uses the parts of the pub library
// that do not require implementing a DelegateActor so that the ActivityPub
// implementation is completely provided out of the box.
type DelegateActor interface {
// Hook callback after parsing the request body for a federated request
// to the Actor's inbox.
//
// Can be used to set contextual information based on the Activity
// received.
//
// Only called if the Federated Protocol is enabled.
//
// Warning: Neither authentication nor authorization has taken place at
// this time. Doing anything beyond setting contextual information is
// strongly discouraged.
//
// If an error is returned, it is passed back to the caller of
// PostInbox. In this case, the DelegateActor implementation must not
// write a response to the ResponseWriter as is expected that the caller
// to PostInbox will do so when handling the error.
PostInboxRequestBodyHook(c context.Context, r *http.Request, activity Activity) (context.Context, error)
// Hook callback after parsing the request body for a client request
// to the Actor's outbox.
//
// Can be used to set contextual information based on the
// ActivityStreams object received.
//
// Only called if the Social API is enabled.
//
// Warning: Neither authentication nor authorization has taken place at
// this time. Doing anything beyond setting contextual information is
// strongly discouraged.
//
// If an error is returned, it is passed back to the caller of
// PostOutbox. In this case, the DelegateActor implementation must not
// write a response to the ResponseWriter as is expected that the caller
// to PostOutbox will do so when handling the error.
PostOutboxRequestBodyHook(c context.Context, r *http.Request, data vocab.Type) (context.Context, error)
// AuthenticatePostInbox delegates the authentication of a POST to an
// inbox.
//
// Only called if the Federated Protocol is enabled.
//
// If an error is returned, it is passed back to the caller of
// PostInbox. In this case, the implementation must not write a
// response to the ResponseWriter as is expected that the client will
// do so when handling the error. The 'authenticated' is ignored.
//
// If no error is returned, but authentication or authorization fails,
// then authenticated must be false and error nil. It is expected that
// the implementation handles writing to the ResponseWriter in this
// case.
//
// Finally, if the authentication and authorization succeeds, then
// authenticated must be true and error nil. The request will continue
// to be processed.
AuthenticatePostInbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error)
// AuthenticateGetInbox delegates the authentication of a GET to an
// inbox.
//
// Always called, regardless whether the Federated Protocol or Social
// API is enabled.
//
// If an error is returned, it is passed back to the caller of
// GetInbox. In this case, the implementation must not write a
// response to the ResponseWriter as is expected that the client will
// do so when handling the error. The 'authenticated' is ignored.
//
// If no error is returned, but authentication or authorization fails,
// then authenticated must be false and error nil. It is expected that
// the implementation handles writing to the ResponseWriter in this
// case.
//
// Finally, if the authentication and authorization succeeds, then
// authenticated must be true and error nil. The request will continue
// to be processed.
AuthenticateGetInbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error)
// AuthorizePostInbox delegates the authorization of an activity that
// has been sent by POST to an inbox.
//
// Only called if the Federated Protocol is enabled.
//
// If an error is returned, it is passed back to the caller of
// PostInbox. In this case, the implementation must not write a
// response to the ResponseWriter as is expected that the client will
// do so when handling the error. The 'authorized' is ignored.
//
// If no error is returned, but authorization fails, then authorized
// must be false and error nil. It is expected that the implementation
// handles writing to the ResponseWriter in this case.
//
// Finally, if the authentication and authorization succeeds, then
// authorized must be true and error nil. The request will continue
// to be processed.
AuthorizePostInbox(c context.Context, w http.ResponseWriter, activity Activity) (authorized bool, err error)
// PostInbox delegates the side effects of adding to the inbox and
// determining if it is a request that should be blocked.
//
// Only called if the Federated Protocol is enabled.
//
// As a side effect, PostInbox sets the federated data in the inbox, but
// not on its own in the database, as InboxForwarding (which is called
// later) must decide whether it has seen this activity before in order
// to determine whether to do the forwarding algorithm.
//
// If the error is ErrObjectRequired or ErrTargetRequired, then a Bad
// Request status is sent in the response.
PostInbox(c context.Context, inboxIRI *url.URL, activity Activity) error
// InboxForwarding delegates inbox forwarding logic when a POST request
// is received in the Actor's inbox.
//
// Only called if the Federated Protocol is enabled.
//
// The delegate is responsible for determining whether to do the inbox
// forwarding, as well as actually conducting it if it determines it
// needs to.
//
// As a side effect, InboxForwarding must set the federated data in the
// database, independently of the inbox, however it sees fit in order to
// determine whether it has seen the activity before.
//
// The provided url is the inbox of the recipient of the Activity. The
// Activity is examined for the information about who to inbox forward
// to.
//
// If an error is returned, it is returned to the caller of PostInbox.
InboxForwarding(c context.Context, inboxIRI *url.URL, activity Activity) error
// PostOutbox delegates the logic for side effects and adding to the
// outbox.
//
// Always called, regardless whether the Federated Protocol or Social
// API is enabled. In the case of the Social API being enabled, side
// effects of the Activity must occur.
//
// The delegate is responsible for adding the activity to the database's
// general storage for independent retrieval, and not just within the
// actor's outbox.
//
// If the error is ErrObjectRequired or ErrTargetRequired, then a Bad
// Request status is sent in the response.
//
// Note that 'rawJSON' is an unfortunate consequence where an 'Update'
// Activity is the only one that explicitly cares about 'null' values in
// JSON. Since go-fed does not differentiate between 'null' values and
// values that are simply not present, the 'rawJSON' map is ONLY needed
// for this narrow and specific use case.
PostOutbox(c context.Context, a Activity, outboxIRI *url.URL, rawJSON map[string]interface{}) (deliverable bool, e error)
// AddNewIDs sets new URL ids on the activity. It also does so for all
// 'object' properties if the Activity is a Create type.
//
// Only called if the Social API is enabled.
//
// If an error is returned, it is returned to the caller of PostOutbox.
AddNewIDs(c context.Context, a Activity) error
// Deliver sends a federated message. Called only if federation is
// enabled.
//
// Called if the Federated Protocol is enabled.
//
// The provided url is the outbox of the sender. The Activity contains
// the information about the intended recipients.
//
// If an error is returned, it is returned to the caller of PostOutbox.
Deliver(c context.Context, outbox *url.URL, activity Activity) error
// AuthenticatePostOutbox delegates the authentication and authorization
// of a POST to an outbox.
//
// Only called if the Social API is enabled.
//
// If an error is returned, it is passed back to the caller of
// PostOutbox. In this case, the implementation must not write a
// response to the ResponseWriter as is expected that the client will
// do so when handling the error. The 'authenticated' is ignored.
//
// If no error is returned, but authentication or authorization fails,
// then authenticated must be false and error nil. It is expected that
// the implementation handles writing to the ResponseWriter in this
// case.
//
// Finally, if the authentication and authorization succeeds, then
// authenticated must be true and error nil. The request will continue
// to be processed.
AuthenticatePostOutbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error)
// AuthenticateGetOutbox delegates the authentication of a GET to an
// outbox.
//
// Always called, regardless whether the Federated Protocol or Social
// API is enabled.
//
// If an error is returned, it is passed back to the caller of
// GetOutbox. In this case, the implementation must not write a
// response to the ResponseWriter as is expected that the client will
// do so when handling the error. The 'authenticated' is ignored.
//
// If no error is returned, but authentication or authorization fails,
// then authenticated must be false and error nil. It is expected that
// the implementation handles writing to the ResponseWriter in this
// case.
//
// Finally, if the authentication and authorization succeeds, then
// authenticated must be true and error nil. The request will continue
// to be processed.
AuthenticateGetOutbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error)
// WrapInCreate wraps the provided object in a Create ActivityStreams
// activity. The provided URL is the actor's outbox endpoint.
//
// Only called if the Social API is enabled.
WrapInCreate(c context.Context, value vocab.Type, outboxIRI *url.URL) (vocab.ActivityStreamsCreate, error)
// GetOutbox returns the OrderedCollection inbox of the actor for this
// context. It is up to the implementation to provide the correct
// collection for the kind of authorization given in the request.
//
// AuthenticateGetOutbox will be called prior to this.
//
// Always called, regardless whether the Federated Protocol or Social
// API is enabled.
GetOutbox(c context.Context, r *http.Request) (vocab.ActivityStreamsOrderedCollectionPage, error)
// GetInbox returns the OrderedCollection inbox of the actor for this
// context. It is up to the implementation to provide the correct
// collection for the kind of authorization given in the request.
//
// AuthenticateGetInbox will be called prior to this.
//
// Always called, regardless whether the Federated Protocol or Social
// API is enabled.
GetInbox(c context.Context, r *http.Request) (vocab.ActivityStreamsOrderedCollectionPage, error)
}

View File

@@ -1,9 +0,0 @@
// Package pub implements the ActivityPub protocol.
//
// Note that every time the ActivityStreams types are changed (added, removed)
// due to code generation, the internal function toASType needs to be modified
// to know about these types.
//
// Note that every version change should also include a change in the version.go
// file.
package pub

View File

@@ -1,125 +0,0 @@
package pub
import (
"context"
"net/http"
"net/url"
"codeberg.org/superseriousbusiness/activity/streams/vocab"
)
// FederatingProtocol contains behaviors an application needs to satisfy for the
// full ActivityPub S2S implementation to be supported by this library.
//
// It is only required if the client application wants to support the server-to-
// server, or federating, protocol.
//
// It is passed to the library as a dependency injection from the client
// application.
type FederatingProtocol interface {
// Hook callback after parsing the request body for a federated request
// to the Actor's inbox.
//
// Can be used to set contextual information based on the Activity
// received.
//
// Only called if the Federated Protocol is enabled.
//
// Warning: Neither authentication nor authorization has taken place at
// this time. Doing anything beyond setting contextual information is
// strongly discouraged.
//
// If an error is returned, it is passed back to the caller of
// PostInbox. In this case, the DelegateActor implementation must not
// write a response to the ResponseWriter as is expected that the caller
// to PostInbox will do so when handling the error.
PostInboxRequestBodyHook(c context.Context, r *http.Request, activity Activity) (context.Context, error)
// AuthenticatePostInbox delegates the authentication of a POST to an
// inbox.
//
// If an error is returned, it is passed back to the caller of
// PostInbox. In this case, the implementation must not write a
// response to the ResponseWriter as is expected that the client will
// do so when handling the error. The 'authenticated' is ignored.
//
// If no error is returned, but authentication or authorization fails,
// then authenticated must be false and error nil. It is expected that
// the implementation handles writing to the ResponseWriter in this
// case.
//
// Finally, if the authentication and authorization succeeds, then
// authenticated must be true and error nil. The request will continue
// to be processed.
AuthenticatePostInbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error)
// Blocked should determine whether to permit a set of actors given by
// their ids are able to interact with this particular end user due to
// being blocked or other application-specific logic.
//
// If an error is returned, it is passed back to the caller of
// PostInbox.
//
// If no error is returned, but authentication or authorization fails,
// then blocked must be true and error nil. An http.StatusForbidden
// will be written in the wresponse.
//
// Finally, if the authentication and authorization succeeds, then
// blocked must be false and error nil. The request will continue
// to be processed.
Blocked(c context.Context, actorIRIs []*url.URL) (blocked bool, err error)
// FederatingCallbacks returns the application logic that handles
// ActivityStreams received from federating peers.
//
// Note that certain types of callbacks will be 'wrapped' with default
// behaviors supported natively by the library. Other callbacks
// compatible with streams.TypeResolver can be specified by 'other'.
//
// For example, setting the 'Create' field in the
// FederatingWrappedCallbacks lets an application dependency inject
// additional behaviors they want to take place, including the default
// behavior supplied by this library. This is guaranteed to be compliant
// with the ActivityPub Social protocol.
//
// To override the default behavior, instead supply the function in
// 'other', which does not guarantee the application will be compliant
// with the ActivityPub Social Protocol.
//
// Applications are not expected to handle every single ActivityStreams
// type and extension. The unhandled ones are passed to DefaultCallback.
FederatingCallbacks(c context.Context) (wrapped FederatingWrappedCallbacks, other []interface{}, err error)
// DefaultCallback is called for types that go-fed can deserialize but
// are not handled by the application's callbacks returned in the
// Callbacks method.
//
// Applications are not expected to handle every single ActivityStreams
// type and extension, so the unhandled ones are passed to
// DefaultCallback.
DefaultCallback(c context.Context, activity Activity) error
// MaxInboxForwardingRecursionDepth determines how deep to search within
// an activity to determine if inbox forwarding needs to occur.
//
// Zero or negative numbers indicate infinite recursion.
MaxInboxForwardingRecursionDepth(c context.Context) int
// MaxDeliveryRecursionDepth determines how deep to search within
// collections owned by peers when they are targeted to receive a
// delivery.
//
// Zero or negative numbers indicate infinite recursion.
MaxDeliveryRecursionDepth(c context.Context) int
// FilterForwarding allows the implementation to apply business logic
// such as blocks, spam filtering, and so on to a list of potential
// Collections and OrderedCollections of recipients when inbox
// forwarding has been triggered.
//
// The activity is provided as a reference for more intelligent
// logic to be used, but the implementation must not modify it.
FilterForwarding(c context.Context, potentialRecipients []*url.URL, a Activity) (filteredRecipients []*url.URL, err error)
// GetInbox returns the OrderedCollection inbox of the actor for this
// context. It is up to the implementation to provide the correct
// collection for the kind of authorization given in the request.
//
// AuthenticateGetInbox will be called prior to this.
//
// Always called, regardless whether the Federated Protocol or Social
// API is enabled.
GetInbox(c context.Context, r *http.Request) (vocab.ActivityStreamsOrderedCollectionPage, error)
}

View File

@@ -1,917 +0,0 @@
package pub
import (
"context"
"fmt"
"net/url"
"codeberg.org/superseriousbusiness/activity/streams"
"codeberg.org/superseriousbusiness/activity/streams/vocab"
)
// OnFollowBehavior enumerates the different default actions that the go-fed
// library can provide when receiving a Follow Activity from a peer.
type OnFollowBehavior int
const (
// OnFollowDoNothing does not take any action when a Follow Activity
// is received.
OnFollowDoNothing OnFollowBehavior = iota
// OnFollowAutomaticallyAccept triggers the side effect of sending an
// Accept of this Follow request in response.
OnFollowAutomaticallyAccept
// OnFollowAutomaticallyAccept triggers the side effect of sending a
// Reject of this Follow request in response.
OnFollowAutomaticallyReject
)
// FederatingWrappedCallbacks lists the callback functions that already have
// some side effect behavior provided by the pub library.
//
// These functions are wrapped for the Federating Protocol.
type FederatingWrappedCallbacks struct {
// Create handles additional side effects for the Create ActivityStreams
// type, specific to the application using go-fed.
//
// The wrapping callback for the Federating Protocol ensures the
// 'object' property is created in the database.
//
// Create calls Create for each object in the federated Activity.
Create func(context.Context, vocab.ActivityStreamsCreate) error
// Update handles additional side effects for the Update ActivityStreams
// type, specific to the application using go-fed.
//
// The wrapping callback for the Federating Protocol ensures the
// 'object' property is updated in the database.
//
// Update calls Update on the federated entry from the database, with a
// new value.
Update func(context.Context, vocab.ActivityStreamsUpdate) error
// Delete handles additional side effects for the Delete ActivityStreams
// type, specific to the application using go-fed.
//
// Delete removes the federated entry from the database.
Delete func(context.Context, vocab.ActivityStreamsDelete) error
// Follow handles additional side effects for the Follow ActivityStreams
// type, specific to the application using go-fed.
//
// The wrapping function can have one of several default behaviors,
// depending on the value of the OnFollow setting.
Follow func(context.Context, vocab.ActivityStreamsFollow) error
// OnFollow determines what action to take for this particular callback
// if a Follow Activity is handled.
OnFollow OnFollowBehavior
// Accept handles additional side effects for the Accept ActivityStreams
// type, specific to the application using go-fed.
//
// The wrapping function determines if this 'Accept' is in response to a
// 'Follow'. If so, then the 'actor' is added to the original 'actor's
// 'following' collection.
//
// Otherwise, no side effects are done by go-fed.
Accept func(context.Context, vocab.ActivityStreamsAccept) error
// Reject handles additional side effects for the Reject ActivityStreams
// type, specific to the application using go-fed.
//
// The wrapping function has no default side effects. However, if this
// 'Reject' is in response to a 'Follow' then the client MUST NOT go
// forward with adding the 'actor' to the original 'actor's 'following'
// collection by the client application.
Reject func(context.Context, vocab.ActivityStreamsReject) error
// Add handles additional side effects for the Add ActivityStreams
// type, specific to the application using go-fed.
//
// The wrapping function will add the 'object' IRIs to a specific
// 'target' collection if the 'target' collection(s) live on this
// server.
Add func(context.Context, vocab.ActivityStreamsAdd) error
// Remove handles additional side effects for the Remove ActivityStreams
// type, specific to the application using go-fed.
//
// The wrapping function will remove all 'object' IRIs from a specific
// 'target' collection if the 'target' collection(s) live on this
// server.
Remove func(context.Context, vocab.ActivityStreamsRemove) error
// Like handles additional side effects for the Like ActivityStreams
// type, specific to the application using go-fed.
//
// The wrapping function will add the activity to the "likes" collection
// on all 'object' targets owned by this server.
Like func(context.Context, vocab.ActivityStreamsLike) error
// Announce handles additional side effects for the Announce
// ActivityStreams type, specific to the application using go-fed.
//
// The wrapping function will add the activity to the "shares"
// collection on all 'object' targets owned by this server.
Announce func(context.Context, vocab.ActivityStreamsAnnounce) error
// Undo handles additional side effects for the Undo ActivityStreams
// type, specific to the application using go-fed.
//
// The wrapping function ensures the 'actor' on the 'Undo'
// is be the same as the 'actor' on all Activities being undone.
// It enforces that the actors on the Undo must correspond to all of the
// 'object' actors in some manner.
//
// It is expected that the application will implement the proper
// reversal of activities that are being undone.
Undo func(context.Context, vocab.ActivityStreamsUndo) error
// Block handles additional side effects for the Block ActivityStreams
// type, specific to the application using go-fed.
//
// The wrapping function provides no default side effects. It simply
// calls the wrapped function. However, note that Blocks should not be
// received from a federated peer, as delivering Blocks explicitly
// deviates from the original ActivityPub specification.
Block func(context.Context, vocab.ActivityStreamsBlock) error
// Sidechannel data -- this is set at request handling time. These must
// be set before the callbacks are used.
// db is the Database the FederatingWrappedCallbacks should use.
db Database
// inboxIRI is the inboxIRI that is handling this callback.
inboxIRI *url.URL
// addNewIds creates new 'id' entries on an activity and its objects if
// it is a Create activity.
addNewIds func(c context.Context, activity Activity) error
// deliver delivers an outgoing message.
deliver func(c context.Context, outboxIRI *url.URL, activity Activity) error
// newTransport creates a new Transport.
newTransport func(c context.Context, actorBoxIRI *url.URL, gofedAgent string) (t Transport, err error)
}
// callbacks returns the WrappedCallbacks members into a single interface slice
// for use in streams.Resolver callbacks.
//
// If the given functions have a type that collides with the default behavior,
// then disable our default behavior
func (w FederatingWrappedCallbacks) callbacks(fns []interface{}) []interface{} {
enableCreate := true
enableUpdate := true
enableDelete := true
enableFollow := true
enableAccept := true
enableReject := true
enableAdd := true
enableRemove := true
enableLike := true
enableAnnounce := true
enableUndo := true
enableBlock := true
for _, fn := range fns {
switch fn.(type) {
default:
continue
case func(context.Context, vocab.ActivityStreamsCreate) error:
enableCreate = false
case func(context.Context, vocab.ActivityStreamsUpdate) error:
enableUpdate = false
case func(context.Context, vocab.ActivityStreamsDelete) error:
enableDelete = false
case func(context.Context, vocab.ActivityStreamsFollow) error:
enableFollow = false
case func(context.Context, vocab.ActivityStreamsAccept) error:
enableAccept = false
case func(context.Context, vocab.ActivityStreamsReject) error:
enableReject = false
case func(context.Context, vocab.ActivityStreamsAdd) error:
enableAdd = false
case func(context.Context, vocab.ActivityStreamsRemove) error:
enableRemove = false
case func(context.Context, vocab.ActivityStreamsLike) error:
enableLike = false
case func(context.Context, vocab.ActivityStreamsAnnounce) error:
enableAnnounce = false
case func(context.Context, vocab.ActivityStreamsUndo) error:
enableUndo = false
case func(context.Context, vocab.ActivityStreamsBlock) error:
enableBlock = false
}
}
if enableCreate {
fns = append(fns, w.create)
}
if enableUpdate {
fns = append(fns, w.update)
}
if enableDelete {
fns = append(fns, w.deleteFn)
}
if enableFollow {
fns = append(fns, w.follow)
}
if enableAccept {
fns = append(fns, w.accept)
}
if enableReject {
fns = append(fns, w.reject)
}
if enableAdd {
fns = append(fns, w.add)
}
if enableRemove {
fns = append(fns, w.remove)
}
if enableLike {
fns = append(fns, w.like)
}
if enableAnnounce {
fns = append(fns, w.announce)
}
if enableUndo {
fns = append(fns, w.undo)
}
if enableBlock {
fns = append(fns, w.block)
}
return fns
}
// create implements the federating Create activity side effects.
func (w FederatingWrappedCallbacks) create(c context.Context, a vocab.ActivityStreamsCreate) error {
op := a.GetActivityStreamsObject()
if op == nil || op.Len() == 0 {
return ErrObjectRequired
}
// Create anonymous loop function to be able to properly scope the defer
// for the database lock at each iteration.
loopFn := func(iter vocab.ActivityStreamsObjectPropertyIterator) error {
t := iter.GetType()
if t == nil && iter.IsIRI() {
// Attempt to dereference the IRI instead
tport, err := w.newTransport(c, w.inboxIRI, goFedUserAgent())
if err != nil {
return err
}
resp, err := tport.Dereference(c, iter.GetIRI())
if err != nil {
return err
}
m, err := readActivityPubResp(resp)
if err != nil {
return err
}
t, err = streams.ToType(c, m)
if err != nil {
return err
}
} else if t == nil {
return fmt.Errorf("cannot handle federated create: object is neither a value nor IRI")
}
id, err := GetId(t)
if err != nil {
return err
}
var unlock func()
unlock, err = w.db.Lock(c, id)
if err != nil {
return err
}
defer unlock()
if err := w.db.Create(c, t); err != nil {
return err
}
return nil
}
for iter := op.Begin(); iter != op.End(); iter = iter.Next() {
if err := loopFn(iter); err != nil {
return err
}
}
if w.Create != nil {
return w.Create(c, a)
}
return nil
}
// update implements the federating Update activity side effects.
func (w FederatingWrappedCallbacks) update(c context.Context, a vocab.ActivityStreamsUpdate) error {
op := a.GetActivityStreamsObject()
if op == nil || op.Len() == 0 {
return ErrObjectRequired
}
if err := mustHaveActivityOriginMatchObjects(a); err != nil {
return err
}
// Create anonymous loop function to be able to properly scope the defer
// for the database lock at each iteration.
loopFn := func(iter vocab.ActivityStreamsObjectPropertyIterator) error {
t := iter.GetType()
if t == nil {
return fmt.Errorf("update requires an object to be wholly provided")
}
id, err := GetId(t)
if err != nil {
return err
}
var unlock func()
unlock, err = w.db.Lock(c, id)
if err != nil {
return err
}
defer unlock()
if err := w.db.Update(c, t); err != nil {
return err
}
return nil
}
for iter := op.Begin(); iter != op.End(); iter = iter.Next() {
if err := loopFn(iter); err != nil {
return err
}
}
if w.Update != nil {
return w.Update(c, a)
}
return nil
}
// deleteFn implements the federating Delete activity side effects.
func (w FederatingWrappedCallbacks) deleteFn(c context.Context, a vocab.ActivityStreamsDelete) error {
op := a.GetActivityStreamsObject()
if op == nil || op.Len() == 0 {
return ErrObjectRequired
}
if err := mustHaveActivityOriginMatchObjects(a); err != nil {
return err
}
// Create anonymous loop function to be able to properly scope the defer
// for the database lock at each iteration.
loopFn := func(iter vocab.ActivityStreamsObjectPropertyIterator) error {
id, err := ToId(iter)
if err != nil {
return err
}
var unlock func()
unlock, err = w.db.Lock(c, id)
if err != nil {
return err
}
defer unlock()
if err := w.db.Delete(c, id); err != nil {
return err
}
return nil
}
for iter := op.Begin(); iter != op.End(); iter = iter.Next() {
if err := loopFn(iter); err != nil {
return err
}
}
if w.Delete != nil {
return w.Delete(c, a)
}
return nil
}
// follow implements the federating Follow activity side effects.
func (w FederatingWrappedCallbacks) follow(c context.Context, a vocab.ActivityStreamsFollow) error {
op := a.GetActivityStreamsObject()
if op == nil || op.Len() == 0 {
return ErrObjectRequired
}
// Check that we own at least one of the 'object' properties, and ensure
// it is to the actor that owns this inbox.
//
// If not then don't send a response. It was federated to us as an FYI,
// by mistake, or some other reason.
unlock, err := w.db.Lock(c, w.inboxIRI)
if err != nil {
return err
}
// WARNING: Unlock not deferred.
actorIRI, err := w.db.ActorForInbox(c, w.inboxIRI)
unlock() // unlock even on error
if err != nil {
return err
}
// Unlock must be called by now and every branch above.
isMe := false
if w.OnFollow != OnFollowDoNothing {
for iter := op.Begin(); iter != op.End(); iter = iter.Next() {
id, err := ToId(iter)
if err != nil {
return err
}
if id.String() == actorIRI.String() {
isMe = true
break
}
}
}
if isMe {
// Prepare the response.
var response Activity
if w.OnFollow == OnFollowAutomaticallyAccept {
response = streams.NewActivityStreamsAccept()
} else if w.OnFollow == OnFollowAutomaticallyReject {
response = streams.NewActivityStreamsReject()
} else {
return fmt.Errorf("unknown OnFollowBehavior: %d", w.OnFollow)
}
// Set us as the 'actor'.
me := streams.NewActivityStreamsActorProperty()
response.SetActivityStreamsActor(me)
me.AppendIRI(actorIRI)
// Set the Follow as the 'object' property.
op := streams.NewActivityStreamsObjectProperty()
response.SetActivityStreamsObject(op)
op.AppendActivityStreamsFollow(a)
// Add all actors on the original Follow to the 'to' property.
recipients := make([]*url.URL, 0)
to := streams.NewActivityStreamsToProperty()
response.SetActivityStreamsTo(to)
followActors := a.GetActivityStreamsActor()
for iter := followActors.Begin(); iter != followActors.End(); iter = iter.Next() {
id, err := ToId(iter)
if err != nil {
return err
}
to.AppendIRI(id)
recipients = append(recipients, id)
}
if w.OnFollow == OnFollowAutomaticallyAccept {
// If automatically accepting, then also update our
// followers collection with the new actors.
//
// If automatically rejecting, do not update the
// followers collection.
unlock, err := w.db.Lock(c, actorIRI)
if err != nil {
return err
}
// WARNING: Unlock not deferred.
followers, err := w.db.Followers(c, actorIRI)
if err != nil {
unlock()
return err
}
items := followers.GetActivityStreamsItems()
if items == nil {
items = streams.NewActivityStreamsItemsProperty()
followers.SetActivityStreamsItems(items)
}
for _, elem := range recipients {
items.PrependIRI(elem)
}
err = w.db.Update(c, followers)
unlock() // unlock even on error
if err != nil {
return err
}
// Unlock must be called by now and every branch above.
}
// Lock without defer!
unlock, err := w.db.Lock(c, w.inboxIRI)
if err != nil {
return err
}
outboxIRI, err := w.db.OutboxForInbox(c, w.inboxIRI)
unlock() // unlock after, regardless
if err != nil {
return err
}
// Everything must be unlocked by now.
if err := w.addNewIds(c, response); err != nil {
return err
} else if err := w.deliver(c, outboxIRI, response); err != nil {
return err
}
}
if w.Follow != nil {
return w.Follow(c, a)
}
return nil
}
// accept implements the federating Accept activity side effects.
func (w FederatingWrappedCallbacks) accept(c context.Context, a vocab.ActivityStreamsAccept) error {
op := a.GetActivityStreamsObject()
if op != nil && op.Len() > 0 {
// Get this actor's id.
unlock, err := w.db.Lock(c, w.inboxIRI)
if err != nil {
return err
}
// WARNING: Unlock not deferred.
actorIRI, err := w.db.ActorForInbox(c, w.inboxIRI)
unlock() // unlock after regardless
if err != nil {
return err
}
// Unlock must be called by now and every branch above.
//
// Determine if we are in a follow on the 'object' property.
//
// TODO: Handle Accept multiple Follow.
var maybeMyFollowIRI *url.URL
for iter := op.Begin(); iter != op.End(); iter = iter.Next() {
t := iter.GetType()
if t == nil && iter.IsIRI() {
// Attempt to dereference the IRI instead
tport, err := w.newTransport(c, w.inboxIRI, goFedUserAgent())
if err != nil {
return err
}
resp, err := tport.Dereference(c, iter.GetIRI())
if err != nil {
return err
}
m, err := readActivityPubResp(resp)
if err != nil {
return err
}
t, err = streams.ToType(c, m)
if err != nil {
return err
}
} else if t == nil {
return fmt.Errorf("cannot handle federated create: object is neither a value nor IRI")
}
// Ensure it is a Follow.
if !streams.IsOrExtendsActivityStreamsFollow(t) {
continue
}
follow, ok := t.(Activity)
if !ok {
return fmt.Errorf("a Follow in an Accept does not satisfy the Activity interface")
}
followId, err := GetId(follow)
if err != nil {
return err
}
// Ensure that we are one of the actors on the Follow.
actors := follow.GetActivityStreamsActor()
for iter := actors.Begin(); iter != actors.End(); iter = iter.Next() {
id, err := ToId(iter)
if err != nil {
return err
}
if id.String() == actorIRI.String() {
maybeMyFollowIRI = followId
break
}
}
// Continue breaking if we found ourselves
if maybeMyFollowIRI != nil {
break
}
}
// If we received an Accept whose 'object' is a Follow with an
// Accept that we sent, add to the following collection.
if maybeMyFollowIRI != nil {
// Verify our Follow request exists and the peer didn't
// fabricate it.
activityActors := a.GetActivityStreamsActor()
if activityActors == nil || activityActors.Len() == 0 {
return fmt.Errorf("an Accept with a Follow has no actors")
}
// This may be a duplicate check if we dereferenced the
// Follow above. TODO: Separate this logic to avoid
// redundancy.
//
// Use an anonymous function to properly scope the
// database lock, immediately call it.
err = func() error {
unlock, err := w.db.Lock(c, maybeMyFollowIRI)
if err != nil {
return err
}
defer unlock()
t, err := w.db.Get(c, maybeMyFollowIRI)
if err != nil {
return err
}
if !streams.IsOrExtendsActivityStreamsFollow(t) {
return fmt.Errorf("peer gave an Accept wrapping a Follow but provided a non-Follow id")
}
follow, ok := t.(Activity)
if !ok {
return fmt.Errorf("a Follow in an Accept does not satisfy the Activity interface")
}
// Ensure that we are one of the actors on the Follow.
ok = false
actors := follow.GetActivityStreamsActor()
for iter := actors.Begin(); iter != actors.End(); iter = iter.Next() {
id, err := ToId(iter)
if err != nil {
return err
}
if id.String() == actorIRI.String() {
ok = true
break
}
}
if !ok {
return fmt.Errorf("peer gave an Accept wrapping a Follow but we are not the actor on that Follow")
}
// Build map of original Accept actors
acceptActors := make(map[string]bool)
for iter := activityActors.Begin(); iter != activityActors.End(); iter = iter.Next() {
id, err := ToId(iter)
if err != nil {
return err
}
acceptActors[id.String()] = false
}
// Verify all actor(s) were on the original Follow.
followObj := follow.GetActivityStreamsObject()
for iter := followObj.Begin(); iter != followObj.End(); iter = iter.Next() {
id, err := ToId(iter)
if err != nil {
return err
}
if _, ok := acceptActors[id.String()]; ok {
acceptActors[id.String()] = true
}
}
for _, found := range acceptActors {
if !found {
return fmt.Errorf("peer gave an Accept wrapping a Follow but was not an object in the original Follow")
}
}
return nil
}()
if err != nil {
return err
}
// Add the peer to our following collection.
unlock, err := w.db.Lock(c, actorIRI)
if err != nil {
return err
}
// WARNING: Unlock not deferred.
following, err := w.db.Following(c, actorIRI)
if err != nil {
unlock()
return err
}
items := following.GetActivityStreamsItems()
if items == nil {
items = streams.NewActivityStreamsItemsProperty()
following.SetActivityStreamsItems(items)
}
for iter := activityActors.Begin(); iter != activityActors.End(); iter = iter.Next() {
id, err := ToId(iter)
if err != nil {
unlock()
return err
}
items.PrependIRI(id)
}
err = w.db.Update(c, following)
unlock() // unlock after regardless
if err != nil {
return err
}
// Unlock must be called by now and every branch above.
}
}
if w.Accept != nil {
return w.Accept(c, a)
}
return nil
}
// reject implements the federating Reject activity side effects.
func (w FederatingWrappedCallbacks) reject(c context.Context, a vocab.ActivityStreamsReject) error {
if w.Reject != nil {
return w.Reject(c, a)
}
return nil
}
// add implements the federating Add activity side effects.
func (w FederatingWrappedCallbacks) add(c context.Context, a vocab.ActivityStreamsAdd) error {
op := a.GetActivityStreamsObject()
if op == nil || op.Len() == 0 {
return ErrObjectRequired
}
target := a.GetActivityStreamsTarget()
if target == nil || target.Len() == 0 {
return ErrTargetRequired
}
if err := add(c, op, target, w.db); err != nil {
return err
}
if w.Add != nil {
return w.Add(c, a)
}
return nil
}
// remove implements the federating Remove activity side effects.
func (w FederatingWrappedCallbacks) remove(c context.Context, a vocab.ActivityStreamsRemove) error {
op := a.GetActivityStreamsObject()
if op == nil || op.Len() == 0 {
return ErrObjectRequired
}
target := a.GetActivityStreamsTarget()
if target == nil || target.Len() == 0 {
return ErrTargetRequired
}
if err := remove(c, op, target, w.db); err != nil {
return err
}
if w.Remove != nil {
return w.Remove(c, a)
}
return nil
}
// like implements the federating Like activity side effects.
func (w FederatingWrappedCallbacks) like(c context.Context, a vocab.ActivityStreamsLike) error {
op := a.GetActivityStreamsObject()
if op == nil || op.Len() == 0 {
return ErrObjectRequired
}
id, err := GetId(a)
if err != nil {
return err
}
// Create anonymous loop function to be able to properly scope the defer
// for the database lock at each iteration.
loopFn := func(iter vocab.ActivityStreamsObjectPropertyIterator) error {
objId, err := ToId(iter)
if err != nil {
return err
}
unlock, err := w.db.Lock(c, objId)
if err != nil {
return err
}
defer unlock()
if owns, err := w.db.Owns(c, objId); err != nil {
return err
} else if !owns {
return nil
}
t, err := w.db.Get(c, objId)
if err != nil {
return err
}
l, ok := t.(likeser)
if !ok {
return fmt.Errorf("cannot add Like to likes collection for type %T", t)
}
// Get 'likes' property on the object, creating default if
// necessary.
likes := l.GetActivityStreamsLikes()
if likes == nil {
likes = streams.NewActivityStreamsLikesProperty()
l.SetActivityStreamsLikes(likes)
}
// Get 'likes' value, defaulting to a collection.
likesT := likes.GetType()
if likesT == nil {
col := streams.NewActivityStreamsCollection()
likesT = col
likes.SetActivityStreamsCollection(col)
}
// Prepend the activity's 'id' on the 'likes' Collection or
// OrderedCollection.
if col, ok := likesT.(itemser); ok {
items := col.GetActivityStreamsItems()
if items == nil {
items = streams.NewActivityStreamsItemsProperty()
col.SetActivityStreamsItems(items)
}
items.PrependIRI(id)
} else if oCol, ok := likesT.(orderedItemser); ok {
oItems := oCol.GetActivityStreamsOrderedItems()
if oItems == nil {
oItems = streams.NewActivityStreamsOrderedItemsProperty()
oCol.SetActivityStreamsOrderedItems(oItems)
}
oItems.PrependIRI(id)
} else {
return fmt.Errorf("likes type is neither a Collection nor an OrderedCollection: %T", likesT)
}
err = w.db.Update(c, t)
if err != nil {
return err
}
return nil
}
for iter := op.Begin(); iter != op.End(); iter = iter.Next() {
if err := loopFn(iter); err != nil {
return err
}
}
if w.Like != nil {
return w.Like(c, a)
}
return nil
}
// announce implements the federating Announce activity side effects.
func (w FederatingWrappedCallbacks) announce(c context.Context, a vocab.ActivityStreamsAnnounce) error {
id, err := GetId(a)
if err != nil {
return err
}
op := a.GetActivityStreamsObject()
// Create anonymous loop function to be able to properly scope the defer
// for the database lock at each iteration.
loopFn := func(iter vocab.ActivityStreamsObjectPropertyIterator) error {
objId, err := ToId(iter)
if err != nil {
return err
}
unlock, err := w.db.Lock(c, objId)
if err != nil {
return err
}
defer unlock()
if owns, err := w.db.Owns(c, objId); err != nil {
return err
} else if !owns {
return nil
}
t, err := w.db.Get(c, objId)
if err != nil {
return err
}
s, ok := t.(shareser)
if !ok {
return fmt.Errorf("cannot add Announce to Shares collection for type %T", t)
}
// Get 'shares' property on the object, creating default if
// necessary.
shares := s.GetActivityStreamsShares()
if shares == nil {
shares = streams.NewActivityStreamsSharesProperty()
s.SetActivityStreamsShares(shares)
}
// Get 'shares' value, defaulting to a collection.
sharesT := shares.GetType()
if sharesT == nil {
col := streams.NewActivityStreamsCollection()
sharesT = col
shares.SetActivityStreamsCollection(col)
}
// Prepend the activity's 'id' on the 'shares' Collection or
// OrderedCollection.
if col, ok := sharesT.(itemser); ok {
items := col.GetActivityStreamsItems()
if items == nil {
items = streams.NewActivityStreamsItemsProperty()
col.SetActivityStreamsItems(items)
}
items.PrependIRI(id)
} else if oCol, ok := sharesT.(orderedItemser); ok {
oItems := oCol.GetActivityStreamsOrderedItems()
if oItems == nil {
oItems = streams.NewActivityStreamsOrderedItemsProperty()
oCol.SetActivityStreamsOrderedItems(oItems)
}
oItems.PrependIRI(id)
} else {
return fmt.Errorf("shares type is neither a Collection nor an OrderedCollection: %T", sharesT)
}
err = w.db.Update(c, t)
if err != nil {
return err
}
return nil
}
if op != nil {
for iter := op.Begin(); iter != op.End(); iter = iter.Next() {
if err := loopFn(iter); err != nil {
return err
}
}
}
if w.Announce != nil {
return w.Announce(c, a)
}
return nil
}
// undo implements the federating Undo activity side effects.
func (w FederatingWrappedCallbacks) undo(c context.Context, a vocab.ActivityStreamsUndo) error {
op := a.GetActivityStreamsObject()
if op == nil || op.Len() == 0 {
return ErrObjectRequired
}
actors := a.GetActivityStreamsActor()
if err := mustHaveActivityActorsMatchObjectActors(c, actors, op, w.newTransport, w.inboxIRI); err != nil {
return err
}
if w.Undo != nil {
return w.Undo(c, a)
}
return nil
}
// block implements the federating Block activity side effects.
func (w FederatingWrappedCallbacks) block(c context.Context, a vocab.ActivityStreamsBlock) error {
op := a.GetActivityStreamsObject()
if op == nil || op.Len() == 0 {
return ErrObjectRequired
}
if w.Block != nil {
return w.Block(c, a)
}
return nil
}

View File

@@ -1,115 +0,0 @@
package pub
import (
"context"
"encoding/json"
"errors"
"fmt"
"net/http"
"codeberg.org/superseriousbusiness/activity/streams"
)
var ErrNotFound = errors.New("go-fed/activity: ActivityStreams data not found")
// HandlerFunc determines whether an incoming HTTP request is an ActivityStreams
// GET request, and if so attempts to serve ActivityStreams data.
//
// If an error is returned, then the calling function is responsible for writing
// to the ResponseWriter as part of error handling.
//
// If 'isASRequest' is false and there is no error, then the calling function
// may continue processing the request, and the HandlerFunc will not have
// written anything to the ResponseWriter. For example, a webpage may be served
// instead.
//
// If 'isASRequest' is true and there is no error, then the HandlerFunc
// successfully served the request and wrote to the ResponseWriter.
//
// Callers are responsible for authorized access to this resource.
type HandlerFunc func(c context.Context, w http.ResponseWriter, r *http.Request) (isASRequest bool, err error)
// NewActivityStreamsHandler creates a HandlerFunc to serve ActivityStreams
// requests which are coming from other clients or servers that wish to obtain
// an ActivityStreams representation of data.
//
// Strips retrieved ActivityStreams values of sensitive fields ('bto' and 'bcc')
// before responding with them. Sets the appropriate HTTP status code for
// Tombstone Activities as well.
//
// Defaults to supporting content to be retrieved by HTTPS only.
func NewActivityStreamsHandler(db Database, clock Clock) HandlerFunc {
return NewActivityStreamsHandlerScheme(db, clock, "https")
}
// NewActivityStreamsHandlerScheme creates a HandlerFunc to serve
// ActivityStreams requests which are coming from other clients or servers that
// wish to obtain an ActivityStreams representation of data provided by the
// specified protocol scheme.
//
// Strips retrieved ActivityStreams values of sensitive fields ('bto' and 'bcc')
// before responding with them. Sets the appropriate HTTP status code for
// Tombstone Activities as well.
//
// Specifying the "scheme" allows for retrieving ActivityStreams content with
// identifiers such as HTTP, HTTPS, or other protocol schemes.
//
// Returns ErrNotFound when the database does not retrieve any data and no
// errors occurred during retrieval.
func NewActivityStreamsHandlerScheme(db Database, clock Clock, scheme string) HandlerFunc {
return func(c context.Context, w http.ResponseWriter, r *http.Request) (isASRequest bool, err error) {
// Do nothing if it is not an ActivityPub GET request
if !isActivityPubGet(r) {
return
}
isASRequest = true
id := requestId(r, scheme)
var unlock func()
// Lock and obtain a copy of the requested ActivityStreams value
unlock, err = db.Lock(c, id)
if err != nil {
return
}
// WARNING: Unlock not deferred
t, err := db.Get(c, id)
unlock() // unlock even on error
if err != nil {
return
}
// Unlock must have been called by this point and in every
// branch above
if t == nil {
err = ErrNotFound
return
}
// Remove sensitive fields.
clearSensitiveFields(t)
// Serialize the fetched value.
m, err := streams.Serialize(t)
if err != nil {
return
}
raw, err := json.Marshal(m)
if err != nil {
return
}
// Construct the response.
addResponseHeaders(w.Header(), clock, raw)
// Write the response.
if streams.IsOrExtendsActivityStreamsTombstone(t) {
w.WriteHeader(http.StatusGone)
} else {
w.WriteHeader(http.StatusOK)
}
n, err := w.Write(raw)
if err != nil {
return
} else if n != len(raw) {
err = fmt.Errorf("only wrote %d of %d bytes", n, len(raw))
return
}
return
}
}

View File

@@ -1,118 +0,0 @@
package pub
import (
"net/url"
"codeberg.org/superseriousbusiness/activity/streams/vocab"
)
// inReplyToer is an ActivityStreams type with an 'inReplyTo' property
type inReplyToer interface {
GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty
}
// objecter is an ActivityStreams type with an 'object' property
type objecter interface {
GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty
}
// targeter is an ActivityStreams type with a 'target' property
type targeter interface {
GetActivityStreamsTarget() vocab.ActivityStreamsTargetProperty
}
// tagger is an ActivityStreams type with a 'tag' property
type tagger interface {
GetActivityStreamsTag() vocab.ActivityStreamsTagProperty
}
// hrefer is an ActivityStreams type with a 'href' property
type hrefer interface {
GetActivityStreamsHref() vocab.ActivityStreamsHrefProperty
}
// itemser is an ActivityStreams type with an 'items' property
type itemser interface {
GetActivityStreamsItems() vocab.ActivityStreamsItemsProperty
SetActivityStreamsItems(vocab.ActivityStreamsItemsProperty)
}
// orderedItemser is an ActivityStreams type with an 'orderedItems' property
type orderedItemser interface {
GetActivityStreamsOrderedItems() vocab.ActivityStreamsOrderedItemsProperty
SetActivityStreamsOrderedItems(vocab.ActivityStreamsOrderedItemsProperty)
}
// publisheder is an ActivityStreams type with a 'published' property
type publisheder interface {
GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty
}
// updateder is an ActivityStreams type with an 'updateder' property
type updateder interface {
GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty
}
// toer is an ActivityStreams type with a 'to' property
type toer interface {
GetActivityStreamsTo() vocab.ActivityStreamsToProperty
SetActivityStreamsTo(i vocab.ActivityStreamsToProperty)
}
// btoer is an ActivityStreams type with a 'bto' property
type btoer interface {
GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty
SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty)
}
// ccer is an ActivityStreams type with a 'cc' property
type ccer interface {
GetActivityStreamsCc() vocab.ActivityStreamsCcProperty
SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty)
}
// bccer is an ActivityStreams type with a 'bcc' property
type bccer interface {
GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty
SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty)
}
// audiencer is an ActivityStreams type with an 'audience' property
type audiencer interface {
GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty
SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty)
}
// inboxer is an ActivityStreams type with an 'inbox' property
type inboxer interface {
GetActivityStreamsInbox() vocab.ActivityStreamsInboxProperty
}
// attributedToer is an ActivityStreams type with an 'attributedTo' property
type attributedToer interface {
GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty
SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty)
}
// likeser is an ActivityStreams type with a 'likes' property
type likeser interface {
GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty
SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty)
}
// shareser is an ActivityStreams type with a 'shares' property
type shareser interface {
GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty
SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty)
}
// actorer is an ActivityStreams type with an 'actor' property
type actorer interface {
GetActivityStreamsActor() vocab.ActivityStreamsActorProperty
SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty)
}
// appendIRIer is an ActivityStreams type that can Append IRIs.
type appendIRIer interface {
AppendIRI(v *url.URL)
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,83 +0,0 @@
package pub
import (
"context"
"net/http"
"codeberg.org/superseriousbusiness/activity/streams/vocab"
)
// SocialProtocol contains behaviors an application needs to satisfy for the
// full ActivityPub C2S implementation to be supported by this library.
//
// It is only required if the client application wants to support the client-to-
// server, or social, protocol.
//
// It is passed to the library as a dependency injection from the client
// application.
type SocialProtocol interface {
// Hook callback after parsing the request body for a client request
// to the Actor's outbox.
//
// Can be used to set contextual information based on the
// ActivityStreams object received.
//
// Only called if the Social API is enabled.
//
// Warning: Neither authentication nor authorization has taken place at
// this time. Doing anything beyond setting contextual information is
// strongly discouraged.
//
// If an error is returned, it is passed back to the caller of
// PostOutbox. In this case, the DelegateActor implementation must not
// write a response to the ResponseWriter as is expected that the caller
// to PostOutbox will do so when handling the error.
PostOutboxRequestBodyHook(c context.Context, r *http.Request, data vocab.Type) (context.Context, error)
// AuthenticatePostOutbox delegates the authentication of a POST to an
// outbox.
//
// Only called if the Social API is enabled.
//
// If an error is returned, it is passed back to the caller of
// PostOutbox. In this case, the implementation must not write a
// response to the ResponseWriter as is expected that the client will
// do so when handling the error. The 'authenticated' is ignored.
//
// If no error is returned, but authentication or authorization fails,
// then authenticated must be false and error nil. It is expected that
// the implementation handles writing to the ResponseWriter in this
// case.
//
// Finally, if the authentication and authorization succeeds, then
// authenticated must be true and error nil. The request will continue
// to be processed.
AuthenticatePostOutbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error)
// SocialCallbacks returns the application logic that handles
// ActivityStreams received from C2S clients.
//
// Note that certain types of callbacks will be 'wrapped' with default
// behaviors supported natively by the library. Other callbacks
// compatible with streams.TypeResolver can be specified by 'other'.
//
// For example, setting the 'Create' field in the SocialWrappedCallbacks
// lets an application dependency inject additional behaviors they want
// to take place, including the default behavior supplied by this
// library. This is guaranteed to be compliant with the ActivityPub
// Social protocol.
//
// To override the default behavior, instead supply the function in
// 'other', which does not guarantee the application will be compliant
// with the ActivityPub Social Protocol.
//
// Applications are not expected to handle every single ActivityStreams
// type and extension. The unhandled ones are passed to DefaultCallback.
SocialCallbacks(c context.Context) (wrapped SocialWrappedCallbacks, other []interface{}, err error)
// DefaultCallback is called for types that go-fed can deserialize but
// are not handled by the application's callbacks returned in the
// Callbacks method.
//
// Applications are not expected to handle every single ActivityStreams
// type and extension, so the unhandled ones are passed to
// DefaultCallback.
DefaultCallback(c context.Context, activity Activity) error
}

View File

@@ -1,534 +0,0 @@
package pub
import (
"context"
"fmt"
"net/url"
"codeberg.org/superseriousbusiness/activity/streams"
"codeberg.org/superseriousbusiness/activity/streams/vocab"
)
// SocialWrappedCallbacks lists the callback functions that already have some
// side effect behavior provided by the pub library.
//
// These functions are wrapped for the Social Protocol.
type SocialWrappedCallbacks struct {
// Create handles additional side effects for the Create ActivityStreams
// type.
//
// The wrapping callback copies the actor(s) to the 'attributedTo'
// property and copies recipients between the Create activity and all
// objects. It then saves the entry in the database.
Create func(context.Context, vocab.ActivityStreamsCreate) error
// Update handles additional side effects for the Update ActivityStreams
// type.
//
// The wrapping callback applies new top-level values on an object to
// the stored objects. Any top-level null literals will be deleted on
// the stored objects as well.
Update func(context.Context, vocab.ActivityStreamsUpdate) error
// Delete handles additional side effects for the Delete ActivityStreams
// type.
//
// The wrapping callback replaces the object(s) with tombstones in the
// database.
Delete func(context.Context, vocab.ActivityStreamsDelete) error
// Follow handles additional side effects for the Follow ActivityStreams
// type.
//
// The wrapping callback only ensures the 'Follow' has at least one
// 'object' entry, but otherwise has no default side effect.
Follow func(context.Context, vocab.ActivityStreamsFollow) error
// Add handles additional side effects for the Add ActivityStreams
// type.
//
//
// The wrapping function will add the 'object' IRIs to a specific
// 'target' collection if the 'target' collection(s) live on this
// server.
Add func(context.Context, vocab.ActivityStreamsAdd) error
// Remove handles additional side effects for the Remove ActivityStreams
// type.
//
// The wrapping function will remove all 'object' IRIs from a specific
// 'target' collection if the 'target' collection(s) live on this
// server.
Remove func(context.Context, vocab.ActivityStreamsRemove) error
// Like handles additional side effects for the Like ActivityStreams
// type.
//
// The wrapping function will add the objects on the activity to the
// "liked" collection of this actor.
Like func(context.Context, vocab.ActivityStreamsLike) error
// Undo handles additional side effects for the Undo ActivityStreams
// type.
//
//
// The wrapping function ensures the 'actor' on the 'Undo'
// is be the same as the 'actor' on all Activities being undone.
// It enforces that the actors on the Undo must correspond to all of the
// 'object' actors in some manner.
//
// It is expected that the application will implement the proper
// reversal of activities that are being undone.
Undo func(context.Context, vocab.ActivityStreamsUndo) error
// Block handles additional side effects for the Block ActivityStreams
// type.
//
// The wrapping callback only ensures the 'Block' has at least one
// 'object' entry, but otherwise has no default side effect. It is up
// to the wrapped application function to properly enforce the new
// blocking behavior.
//
// Note that go-fed does not federate 'Block' activities received in the
// Social Protocol.
Block func(context.Context, vocab.ActivityStreamsBlock) error
// Sidechannel data -- this is set at request handling time. These must
// be set before the callbacks are used.
// db is the Database the SocialWrappedCallbacks should use. It must be
// set before calling the callbacks.
db Database
// outboxIRI is the outboxIRI that is handling this callback.
outboxIRI *url.URL
// rawActivity is the JSON map literal received when deserializing the
// request body.
rawActivity map[string]interface{}
// clock is the server's clock.
clock Clock
// newTransport creates a new Transport.
newTransport func(c context.Context, actorBoxIRI *url.URL, gofedAgent string) (t Transport, err error)
// undeliverable is a sidechannel out, indicating if the handled activity
// should not be delivered to a peer.
//
// Its provided default value will always be used when a custom function
// is called.
undeliverable *bool
}
// callbacks returns the WrappedCallbacks members into a single interface slice
// for use in streams.Resolver callbacks.
//
// If the given functions have a type that collides with the default behavior,
// then disable our default behavior
func (w SocialWrappedCallbacks) callbacks(fns []interface{}) []interface{} {
enableCreate := true
enableUpdate := true
enableDelete := true
enableFollow := true
enableAdd := true
enableRemove := true
enableLike := true
enableUndo := true
enableBlock := true
for _, fn := range fns {
switch fn.(type) {
default:
continue
case func(context.Context, vocab.ActivityStreamsCreate) error:
enableCreate = false
case func(context.Context, vocab.ActivityStreamsUpdate) error:
enableUpdate = false
case func(context.Context, vocab.ActivityStreamsDelete) error:
enableDelete = false
case func(context.Context, vocab.ActivityStreamsFollow) error:
enableFollow = false
case func(context.Context, vocab.ActivityStreamsAdd) error:
enableAdd = false
case func(context.Context, vocab.ActivityStreamsRemove) error:
enableRemove = false
case func(context.Context, vocab.ActivityStreamsLike) error:
enableLike = false
case func(context.Context, vocab.ActivityStreamsUndo) error:
enableUndo = false
case func(context.Context, vocab.ActivityStreamsBlock) error:
enableBlock = false
}
}
if enableCreate {
fns = append(fns, w.create)
}
if enableUpdate {
fns = append(fns, w.update)
}
if enableDelete {
fns = append(fns, w.deleteFn)
}
if enableFollow {
fns = append(fns, w.follow)
}
if enableAdd {
fns = append(fns, w.add)
}
if enableRemove {
fns = append(fns, w.remove)
}
if enableLike {
fns = append(fns, w.like)
}
if enableUndo {
fns = append(fns, w.undo)
}
if enableBlock {
fns = append(fns, w.block)
}
return fns
}
// create implements the social Create activity side effects.
func (w SocialWrappedCallbacks) create(c context.Context, a vocab.ActivityStreamsCreate) error {
*w.undeliverable = false
op := a.GetActivityStreamsObject()
if op == nil || op.Len() == 0 {
return ErrObjectRequired
}
// Obtain all actor IRIs.
actors := a.GetActivityStreamsActor()
createActorIds := make(map[string]*url.URL)
if actors != nil {
createActorIds = make(map[string]*url.URL, actors.Len())
for iter := actors.Begin(); iter != actors.End(); iter = iter.Next() {
id, err := ToId(iter)
if err != nil {
return err
}
createActorIds[id.String()] = id
}
}
// Obtain each object's 'attributedTo' IRIs.
objectAttributedToIds := make([]map[string]*url.URL, op.Len())
for i := range objectAttributedToIds {
objectAttributedToIds[i] = make(map[string]*url.URL)
}
for i := 0; i < op.Len(); i++ {
t := op.At(i).GetType()
attrToer, ok := t.(attributedToer)
if !ok {
continue
}
attr := attrToer.GetActivityStreamsAttributedTo()
if attr == nil {
attr = streams.NewActivityStreamsAttributedToProperty()
attrToer.SetActivityStreamsAttributedTo(attr)
}
for iter := attr.Begin(); iter != attr.End(); iter = iter.Next() {
id, err := ToId(iter)
if err != nil {
return err
}
objectAttributedToIds[i][id.String()] = id
}
}
// Put all missing actor IRIs onto all object attributedTo properties.
for k, v := range createActorIds {
for i, attributedToMap := range objectAttributedToIds {
if _, ok := attributedToMap[k]; !ok {
t := op.At(i).GetType()
attrToer, ok := t.(attributedToer)
if !ok {
continue
}
attr := attrToer.GetActivityStreamsAttributedTo()
attr.AppendIRI(v)
}
}
}
// Put all missing object attributedTo IRIs onto the actor property
// if there is one.
if actors != nil {
for _, attributedToMap := range objectAttributedToIds {
for k, v := range attributedToMap {
if _, ok := createActorIds[k]; !ok {
actors.AppendIRI(v)
}
}
}
}
// Copy over the 'to', 'bto', 'cc', 'bcc', and 'audience' recipients
// between the activity and all child objects and vice versa.
if err := normalizeRecipients(a); err != nil {
return err
}
// Create anonymous loop function to be able to properly scope the defer
// for the database lock at each iteration.
loopFn := func(i int) error {
obj := op.At(i).GetType()
id, err := GetId(obj)
if err != nil {
return err
}
var unlock func()
unlock, err = w.db.Lock(c, id)
if err != nil {
return err
}
defer unlock()
if err := w.db.Create(c, obj); err != nil {
return err
}
return nil
}
// Persist all objects we've created, which will include sensitive
// recipients such as 'bcc' and 'bto'.
for i := 0; i < op.Len(); i++ {
if err := loopFn(i); err != nil {
return err
}
}
if w.Create != nil {
return w.Create(c, a)
}
return nil
}
// update implements the social Update activity side effects.
func (w SocialWrappedCallbacks) update(c context.Context, a vocab.ActivityStreamsUpdate) error {
*w.undeliverable = false
op := a.GetActivityStreamsObject()
if op == nil || op.Len() == 0 {
return ErrObjectRequired
}
// Obtain all object ids, which should be owned by this server.
objIds := make([]*url.URL, 0, op.Len())
for iter := op.Begin(); iter != op.End(); iter = iter.Next() {
id, err := ToId(iter)
if err != nil {
return err
}
objIds = append(objIds, id)
}
// Create anonymous loop function to be able to properly scope the defer
// for the database lock at each iteration.
loopFn := func(idx int, loopId *url.URL) error {
unlock, err := w.db.Lock(c, loopId)
if err != nil {
return err
}
defer unlock()
t, err := w.db.Get(c, loopId)
if err != nil {
return err
}
m, err := t.Serialize()
if err != nil {
return err
}
// Copy over new top-level values.
objType := op.At(idx).GetType()
if objType == nil {
return fmt.Errorf("object at index %d is not a literal type value", idx)
}
newM, err := objType.Serialize()
if err != nil {
return err
}
for k, v := range newM {
m[k] = v
}
// Delete top-level values where the raw Activity had nils.
for k, v := range w.rawActivity {
if _, ok := m[k]; v == nil && ok {
delete(m, k)
}
}
newT, err := streams.ToType(c, m)
if err != nil {
return err
}
if err = w.db.Update(c, newT); err != nil {
return err
}
return nil
}
for i, id := range objIds {
if err := loopFn(i, id); err != nil {
return err
}
}
if w.Update != nil {
return w.Update(c, a)
}
return nil
}
// deleteFn implements the social Delete activity side effects.
func (w SocialWrappedCallbacks) deleteFn(c context.Context, a vocab.ActivityStreamsDelete) error {
*w.undeliverable = false
op := a.GetActivityStreamsObject()
if op == nil || op.Len() == 0 {
return ErrObjectRequired
}
// Obtain all object ids, which should be owned by this server.
objIds := make([]*url.URL, 0, op.Len())
for iter := op.Begin(); iter != op.End(); iter = iter.Next() {
id, err := ToId(iter)
if err != nil {
return err
}
objIds = append(objIds, id)
}
// Create anonymous loop function to be able to properly scope the defer
// for the database lock at each iteration.
loopFn := func(idx int, loopId *url.URL) error {
unlock, err := w.db.Lock(c, loopId)
if err != nil {
return err
}
defer unlock()
t, err := w.db.Get(c, loopId)
if err != nil {
return err
}
tomb := toTombstone(t, loopId, w.clock.Now())
if err := w.db.Update(c, tomb); err != nil {
return err
}
return nil
}
for i, id := range objIds {
if err := loopFn(i, id); err != nil {
return err
}
}
if w.Delete != nil {
return w.Delete(c, a)
}
return nil
}
// follow implements the social Follow activity side effects.
func (w SocialWrappedCallbacks) follow(c context.Context, a vocab.ActivityStreamsFollow) error {
*w.undeliverable = false
op := a.GetActivityStreamsObject()
if op == nil || op.Len() == 0 {
return ErrObjectRequired
}
if w.Follow != nil {
return w.Follow(c, a)
}
return nil
}
// add implements the social Add activity side effects.
func (w SocialWrappedCallbacks) add(c context.Context, a vocab.ActivityStreamsAdd) error {
*w.undeliverable = false
op := a.GetActivityStreamsObject()
if op == nil || op.Len() == 0 {
return ErrObjectRequired
}
target := a.GetActivityStreamsTarget()
if target == nil || target.Len() == 0 {
return ErrTargetRequired
}
if err := add(c, op, target, w.db); err != nil {
return err
}
if w.Add != nil {
return w.Add(c, a)
}
return nil
}
// remove implements the social Remove activity side effects.
func (w SocialWrappedCallbacks) remove(c context.Context, a vocab.ActivityStreamsRemove) error {
*w.undeliverable = false
op := a.GetActivityStreamsObject()
if op == nil || op.Len() == 0 {
return ErrObjectRequired
}
target := a.GetActivityStreamsTarget()
if target == nil || target.Len() == 0 {
return ErrTargetRequired
}
if err := remove(c, op, target, w.db); err != nil {
return err
}
if w.Remove != nil {
return w.Remove(c, a)
}
return nil
}
// like implements the social Like activity side effects.
func (w SocialWrappedCallbacks) like(c context.Context, a vocab.ActivityStreamsLike) error {
*w.undeliverable = false
op := a.GetActivityStreamsObject()
if op == nil || op.Len() == 0 {
return ErrObjectRequired
}
// Get this actor's IRI.
unlock, err := w.db.Lock(c, w.outboxIRI)
if err != nil {
return err
}
// WARNING: Unlock not deferred.
actorIRI, err := w.db.ActorForOutbox(c, w.outboxIRI)
unlock() // unlock even on error
if err != nil {
return err
}
// Unlock must be called by now and every branch above.
//
// Now obtain this actor's 'liked' collection.
unlock, err = w.db.Lock(c, actorIRI)
if err != nil {
return err
}
defer unlock()
liked, err := w.db.Liked(c, actorIRI)
if err != nil {
return err
}
likedItems := liked.GetActivityStreamsItems()
if likedItems == nil {
likedItems = streams.NewActivityStreamsItemsProperty()
liked.SetActivityStreamsItems(likedItems)
}
for iter := op.Begin(); iter != op.End(); iter = iter.Next() {
objId, err := ToId(iter)
if err != nil {
return err
}
likedItems.PrependIRI(objId)
}
err = w.db.Update(c, liked)
if err != nil {
return err
}
if w.Like != nil {
return w.Like(c, a)
}
return nil
}
// undo implements the social Undo activity side effects.
func (w SocialWrappedCallbacks) undo(c context.Context, a vocab.ActivityStreamsUndo) error {
*w.undeliverable = false
op := a.GetActivityStreamsObject()
if op == nil || op.Len() == 0 {
return ErrObjectRequired
}
actors := a.GetActivityStreamsActor()
if err := mustHaveActivityActorsMatchObjectActors(c, actors, op, w.newTransport, w.outboxIRI); err != nil {
return err
}
if w.Undo != nil {
return w.Undo(c, a)
}
return nil
}
// block implements the social Block activity side effects.
func (w SocialWrappedCallbacks) block(c context.Context, a vocab.ActivityStreamsBlock) error {
*w.undeliverable = true
op := a.GetActivityStreamsObject()
if op == nil || op.Len() == 0 {
return ErrObjectRequired
}
if w.Block != nil {
return w.Block(c, a)
}
return nil
}

View File

@@ -1,219 +0,0 @@
package pub
import (
"bytes"
"context"
"crypto"
"encoding/json"
"fmt"
"net/http"
"net/url"
"strings"
"sync"
"github.com/go-fed/httpsig"
)
const (
// acceptHeaderValue is the Accept header value indicating that the
// response should contain an ActivityStreams object.
acceptHeaderValue = "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\""
)
// isSuccess returns true if the HTTP status code is either OK, Created, or
// Accepted.
func isSuccess(code int) bool {
return code == http.StatusOK ||
code == http.StatusCreated ||
code == http.StatusAccepted
}
// Transport makes ActivityStreams calls to other servers in order to send or
// receive ActivityStreams data.
//
// It is responsible for setting the appropriate request headers, signing the
// requests if needed, and facilitating the traffic between this server and
// another.
//
// The transport is exclusively used to issue requests on behalf of an actor,
// and is never sending requests on behalf of the server in general.
//
// It may be reused multiple times, but never concurrently.
type Transport interface {
// Dereference fetches the ActivityStreams object located at this IRI with
// a GET request. Note that Response will only be returned on status = OK.
Dereference(c context.Context, iri *url.URL) (*http.Response, error)
// Deliver sends an ActivityStreams object.
Deliver(c context.Context, obj map[string]interface{}, to *url.URL) error
// BatchDeliver sends an ActivityStreams object to multiple recipients.
BatchDeliver(c context.Context, obj map[string]interface{}, recipients []*url.URL) error
}
// Transport must be implemented by HttpSigTransport.
var _ Transport = &HttpSigTransport{}
// HttpSigTransport makes a dereference call using HTTP signatures to
// authenticate the request on behalf of a particular actor.
//
// No rate limiting is applied.
//
// Only one request is tried per call.
type HttpSigTransport struct {
client HttpClient
appAgent string
gofedAgent string
clock Clock
getSigner httpsig.Signer
getSignerMu *sync.Mutex
postSigner httpsig.Signer
postSignerMu *sync.Mutex
pubKeyId string
privKey crypto.PrivateKey
}
// NewHttpSigTransport returns a new Transport.
//
// It sends requests specifically on behalf of a specific actor on this server.
// The actor's credentials are used to add an HTTP Signature to requests, which
// requires an actor's private key, a unique identifier for their public key,
// and an HTTP Signature signing algorithm.
//
// The client lets users issue requests through any HTTP client, including the
// standard library's HTTP client.
//
// The appAgent uniquely identifies the calling application's requests, so peers
// may aid debugging the requests incoming from this server. Note that the
// agent string will also include one for go-fed, so at minimum peer servers can
// reach out to the go-fed library to aid in notifying implementors of malformed
// or unsupported requests.
func NewHttpSigTransport(
client HttpClient,
appAgent string,
clock Clock,
getSigner, postSigner httpsig.Signer,
pubKeyId string,
privKey crypto.PrivateKey) *HttpSigTransport {
return &HttpSigTransport{
client: client,
appAgent: appAgent,
gofedAgent: goFedUserAgent(),
clock: clock,
getSigner: getSigner,
getSignerMu: &sync.Mutex{},
postSigner: postSigner,
postSignerMu: &sync.Mutex{},
pubKeyId: pubKeyId,
privKey: privKey,
}
}
// Dereference sends a GET request signed with an HTTP Signature to obtain an ActivityStreams value.
func (h HttpSigTransport) Dereference(c context.Context, iri *url.URL) (*http.Response, error) {
req, err := http.NewRequest("GET", iri.String(), nil)
if err != nil {
return nil, err
}
req = req.WithContext(c)
req.Header.Add(acceptHeader, acceptHeaderValue)
req.Header.Add("Accept-Charset", "utf-8")
req.Header.Add("Date", h.clock.Now().UTC().Format("Mon, 02 Jan 2006 15:04:05")+" GMT")
req.Header.Add("User-Agent", fmt.Sprintf("%s %s", h.appAgent, h.gofedAgent))
req.Header.Set("Host", iri.Host)
h.getSignerMu.Lock()
err = h.getSigner.SignRequest(h.privKey, h.pubKeyId, req, nil)
h.getSignerMu.Unlock()
if err != nil {
return nil, err
}
resp, err := h.client.Do(req)
if err != nil {
return nil, err
}
if resp.StatusCode != http.StatusOK {
_ = resp.Body.Close()
return nil, fmt.Errorf("GET request to %s failed (%d): %s", iri.String(), resp.StatusCode, resp.Status)
}
return resp, nil
}
// Deliver sends a POST request with an HTTP Signature.
func (h HttpSigTransport) Deliver(c context.Context, data map[string]interface{}, to *url.URL) error {
b, err := json.Marshal(data)
if err != nil {
return err
}
return h.deliver(c, b, to)
}
// BatchDeliver sends concurrent POST requests. Returns an error if any of the requests had an error.
func (h HttpSigTransport) BatchDeliver(c context.Context, data map[string]interface{}, recipients []*url.URL) error {
b, err := json.Marshal(data)
if err != nil {
return err
}
var wg sync.WaitGroup
errCh := make(chan error, len(recipients))
for _, recipient := range recipients {
wg.Add(1)
go func(r *url.URL) {
defer wg.Done()
if err := h.deliver(c, b, r); err != nil {
errCh <- err
}
}(recipient)
}
wg.Wait()
errs := make([]string, 0, len(recipients))
outer:
for {
select {
case e := <-errCh:
errs = append(errs, e.Error())
default:
break outer
}
}
if len(errs) > 0 {
return fmt.Errorf("batch deliver had at least one failure: %s", strings.Join(errs, "; "))
}
return nil
}
func (h HttpSigTransport) deliver(c context.Context, b []byte, to *url.URL) error {
req, err := http.NewRequest("POST", to.String(), bytes.NewReader(b))
if err != nil {
return err
}
req = req.WithContext(c)
req.Header.Add(contentTypeHeader, contentTypeHeaderValue)
req.Header.Add("Accept-Charset", "utf-8")
req.Header.Add("Date", h.clock.Now().UTC().Format("Mon, 02 Jan 2006 15:04:05")+" GMT")
req.Header.Add("User-Agent", fmt.Sprintf("%s %s", h.appAgent, h.gofedAgent))
req.Header.Set("Host", to.Host)
h.postSignerMu.Lock()
err = h.postSigner.SignRequest(h.privKey, h.pubKeyId, req, b)
h.postSignerMu.Unlock()
if err != nil {
return err
}
resp, err := h.client.Do(req)
if err != nil {
return err
}
defer resp.Body.Close()
if !isSuccess(resp.StatusCode) {
return fmt.Errorf("POST request to %s failed (%d): %s", to.String(), resp.StatusCode, resp.Status)
}
return nil
}
// HttpClient sends http requests, and is an abstraction only needed by the
// HttpSigTransport. The standard library's Client satisfies this interface.
type HttpClient interface {
Do(req *http.Request) (*http.Response, error)
}
// HttpClient must be implemented by http.Client.
var _ HttpClient = &http.Client{}

File diff suppressed because it is too large Load Diff

View File

@@ -1,15 +0,0 @@
package pub
import (
"fmt"
)
const (
// Version string, used in the User-Agent
version = "v1.0.0"
)
// goFedUserAgent returns the user agent string for the go-fed library.
func goFedUserAgent() string {
return fmt.Sprintf("(go-fed/activity %s)", version)
}

View File

@@ -1,152 +0,0 @@
# streams
ActivityStreams vocabularies automatically code-generated with `astool`.
## Reference & Tutorial
The [go-fed website](https://go-fed.org/) contains tutorials and reference
materials, in addition to the rest of this README.
## How To Use
```
go get github.com/go-fed/activity
```
All generated types and properties are interfaces in
`github.com/go-fed/streams/vocab`, but note that the constructors and supporting
functions live in `github.com/go-fed/streams`.
To create a type and set properties:
```golang
var actorURL *url.URL = // ...
// A new "Create" Activity.
create := streams.NewActivityStreamsCreate()
// A new "actor" property.
actor := streams.NewActivityStreamsActorProperty()
actor.AppendIRI(actorURL)
// Set the "actor" property on the "Create" Activity.
create.SetActivityStreamsActor(actor)
```
To process properties on a type:
```golang
// Returns true if the "Update" has at least one "object" with an IRI value.
func hasObjectWithIRIValue(update vocab.ActivityStreamsUpdate) bool {
objectProperty := update.GetActivityStreamsObject()
// Any property may be nil if it was either empty in the original JSON or
// never set on the golang type.
if objectProperty == nil {
return false
}
// The "object" property is non-functional: it could have multiple values. The
// generated code has slightly different methods for a functional property
// versus a non-functional one.
//
// While it may be easy to ignore multiple values in other languages
// (accidentally or purposefully), go-fed is designed to make it hard to do
// so.
for iter := objectProperty.Begin(); iter != objectProperty.End(); iter = iter.Next() {
// If this particular value is an IRI, return true.
if iter.IsIRI() {
return true
}
}
// All values are literal embedded values and not IRIs.
return false
}
```
The ActivityStreams type hierarchy of "extends" and "disjoint" is not the same
as the Object Oriented definition of inheritance. It is also not the same as
golang's interface duck-typing. Helper functions are provided to guarantee that
an application's logic can correctly apply the type hierarchy.
```golang
thing := // Pick a type from streams.NewActivityStreams<Type>()
if streams.ActivityStreamsObjectIsDisjointWith(thing) {
fmt.Printf("The \"Object\" type is Disjoint with the %T type.\n", thing)
}
if streams.ActivityStreamsLinkIsExtendedBy(thing) {
fmt.Printf("The %T type Extends from the \"Link\" type.\n", thing)
}
if streams.ActivityStreamsActivityExtends(thing) {
fmt.Printf("The \"Activity\" type extends from the %T type.\n", thing)
}
```
When given a generic JSON payload, it can be resolved to a concrete type by
creating a `streams.JSONResolver` and giving it a callback function that accepts
the interesting concrete type:
```golang
// Callbacks must be in the form:
// func(context.Context, <TypeInterface>) error
createCallback := func(c context.Context, create vocab.ActivityStreamsCreate) error {
// Do something with 'create'
fmt.Printf("createCallback called: %T\n", create)
return nil
}
updateCallback := func(c context.Context, update vocab.ActivityStreamsUpdate) error {
// Do something with 'update'
fmt.Printf("updateCallback called: %T\n", update)
return nil
}
jsonResolver, err := streams.NewJSONResolver(createCallback, updateCallback)
if err != nil {
// Something in the setup was wrong. For example, a callback has an
// unsupported signature and would never be called
panic(err)
}
// Create a context, which allows you to pass data opaquely through the
// JSONResolver.
c := context.Background()
// Example 15 of the ActivityStreams specification.
b := []byte(`{
"@context": "https://www.w3.org/ns/activitystreams",
"summary": "Sally created a note",
"type": "Create",
"actor": {
"type": "Person",
"name": "Sally"
},
"object": {
"type": "Note",
"name": "A Simple Note",
"content": "This is a simple note"
}
}`)
var jsonMap map[string]interface{}
if err = json.Unmarshal(b, &jsonMap); err != nil {
panic(err)
}
// The createCallback function will be called.
err = jsonResolver.Resolve(c, jsonMap)
if err != nil && !streams.IsUnmatchedErr(err) {
// Something went wrong
panic(err)
} else if streams.IsUnmatchedErr(err) {
// Everything went right but the callback didn't match or the ActivityStreams
// type is one that wasn't code generated.
fmt.Println("No match: ", err)
}
```
A `streams.TypeResolver` is similar but uses the golang types instead. It
accepts the generic `vocab.Type`. This is the abstraction when needing to handle
any ActivityStreams type. The function `ToType` can convert a JSON-decoded-map
into this kind of value if needed.
A `streams.PredicatedTypeResolver` lets you apply a boolean predicate function
that acts as a check whether a callback is allowed to be invoked.
## FAQ
### Why Are Empty Properties Nil And Not Zero-Valued?
Due to implementation design decisions, it would require a lot of plumbing to
ensure this would work properly. It would also require allocation of a
non-trivial amount of memory.

View File

@@ -1,552 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package streams
// ActivityStreamsAcceptName is the string literal of the name for the Accept type in the ActivityStreams vocabulary.
var ActivityStreamsAcceptName string = "Accept"
// ActivityStreamsActivityName is the string literal of the name for the Activity type in the ActivityStreams vocabulary.
var ActivityStreamsActivityName string = "Activity"
// ActivityStreamsAddName is the string literal of the name for the Add type in the ActivityStreams vocabulary.
var ActivityStreamsAddName string = "Add"
// FunkwhaleAlbumName is the string literal of the name for the Album type in the Funkwhale vocabulary.
var FunkwhaleAlbumName string = "Album"
// ActivityStreamsAnnounceName is the string literal of the name for the Announce type in the ActivityStreams vocabulary.
var ActivityStreamsAnnounceName string = "Announce"
// GoToSocialAnnounceApprovalName is the string literal of the name for the AnnounceApproval type in the GoToSocial vocabulary.
var GoToSocialAnnounceApprovalName string = "AnnounceApproval"
// GoToSocialAnnounceAuthorizationName is the string literal of the name for the AnnounceAuthorization type in the GoToSocial vocabulary.
var GoToSocialAnnounceAuthorizationName string = "AnnounceAuthorization"
// GoToSocialAnnounceRequestName is the string literal of the name for the AnnounceRequest type in the GoToSocial vocabulary.
var GoToSocialAnnounceRequestName string = "AnnounceRequest"
// ActivityStreamsApplicationName is the string literal of the name for the Application type in the ActivityStreams vocabulary.
var ActivityStreamsApplicationName string = "Application"
// ActivityStreamsArriveName is the string literal of the name for the Arrive type in the ActivityStreams vocabulary.
var ActivityStreamsArriveName string = "Arrive"
// ActivityStreamsArticleName is the string literal of the name for the Article type in the ActivityStreams vocabulary.
var ActivityStreamsArticleName string = "Article"
// FunkwhaleArtistName is the string literal of the name for the Artist type in the Funkwhale vocabulary.
var FunkwhaleArtistName string = "Artist"
// ActivityStreamsAudioName is the string literal of the name for the Audio type in the ActivityStreams vocabulary.
var ActivityStreamsAudioName string = "Audio"
// ActivityStreamsBlockName is the string literal of the name for the Block type in the ActivityStreams vocabulary.
var ActivityStreamsBlockName string = "Block"
// GoToSocialCanAnnounceName is the string literal of the name for the CanAnnounce type in the GoToSocial vocabulary.
var GoToSocialCanAnnounceName string = "CanAnnounce"
// GoToSocialCanLikeName is the string literal of the name for the CanLike type in the GoToSocial vocabulary.
var GoToSocialCanLikeName string = "CanLike"
// GoToSocialCanQuoteName is the string literal of the name for the CanQuote type in the GoToSocial vocabulary.
var GoToSocialCanQuoteName string = "CanQuote"
// GoToSocialCanReplyName is the string literal of the name for the CanReply type in the GoToSocial vocabulary.
var GoToSocialCanReplyName string = "CanReply"
// ActivityStreamsCollectionName is the string literal of the name for the Collection type in the ActivityStreams vocabulary.
var ActivityStreamsCollectionName string = "Collection"
// ActivityStreamsCollectionPageName is the string literal of the name for the CollectionPage type in the ActivityStreams vocabulary.
var ActivityStreamsCollectionPageName string = "CollectionPage"
// ActivityStreamsCreateName is the string literal of the name for the Create type in the ActivityStreams vocabulary.
var ActivityStreamsCreateName string = "Create"
// ActivityStreamsDeleteName is the string literal of the name for the Delete type in the ActivityStreams vocabulary.
var ActivityStreamsDeleteName string = "Delete"
// ActivityStreamsDislikeName is the string literal of the name for the Dislike type in the ActivityStreams vocabulary.
var ActivityStreamsDislikeName string = "Dislike"
// ActivityStreamsDocumentName is the string literal of the name for the Document type in the ActivityStreams vocabulary.
var ActivityStreamsDocumentName string = "Document"
// TootEmojiName is the string literal of the name for the Emoji type in the Toot vocabulary.
var TootEmojiName string = "Emoji"
// ActivityStreamsEndpointsName is the string literal of the name for the Endpoints type in the ActivityStreams vocabulary.
var ActivityStreamsEndpointsName string = "Endpoints"
// ActivityStreamsEventName is the string literal of the name for the Event type in the ActivityStreams vocabulary.
var ActivityStreamsEventName string = "Event"
// ActivityStreamsFlagName is the string literal of the name for the Flag type in the ActivityStreams vocabulary.
var ActivityStreamsFlagName string = "Flag"
// ActivityStreamsFollowName is the string literal of the name for the Follow type in the ActivityStreams vocabulary.
var ActivityStreamsFollowName string = "Follow"
// ActivityStreamsGroupName is the string literal of the name for the Group type in the ActivityStreams vocabulary.
var ActivityStreamsGroupName string = "Group"
// TootHashtagName is the string literal of the name for the Hashtag type in the Toot vocabulary.
var TootHashtagName string = "Hashtag"
// TootIdentityProofName is the string literal of the name for the IdentityProof type in the Toot vocabulary.
var TootIdentityProofName string = "IdentityProof"
// ActivityStreamsIgnoreName is the string literal of the name for the Ignore type in the ActivityStreams vocabulary.
var ActivityStreamsIgnoreName string = "Ignore"
// ActivityStreamsImageName is the string literal of the name for the Image type in the ActivityStreams vocabulary.
var ActivityStreamsImageName string = "Image"
// GoToSocialInteractionPolicyName is the string literal of the name for the InteractionPolicy type in the GoToSocial vocabulary.
var GoToSocialInteractionPolicyName string = "InteractionPolicy"
// ActivityStreamsIntransitiveActivityName is the string literal of the name for the IntransitiveActivity type in the ActivityStreams vocabulary.
var ActivityStreamsIntransitiveActivityName string = "IntransitiveActivity"
// ActivityStreamsInviteName is the string literal of the name for the Invite type in the ActivityStreams vocabulary.
var ActivityStreamsInviteName string = "Invite"
// ActivityStreamsJoinName is the string literal of the name for the Join type in the ActivityStreams vocabulary.
var ActivityStreamsJoinName string = "Join"
// ActivityStreamsLeaveName is the string literal of the name for the Leave type in the ActivityStreams vocabulary.
var ActivityStreamsLeaveName string = "Leave"
// FunkwhaleLibraryName is the string literal of the name for the Library type in the Funkwhale vocabulary.
var FunkwhaleLibraryName string = "Library"
// ActivityStreamsLikeName is the string literal of the name for the Like type in the ActivityStreams vocabulary.
var ActivityStreamsLikeName string = "Like"
// GoToSocialLikeApprovalName is the string literal of the name for the LikeApproval type in the GoToSocial vocabulary.
var GoToSocialLikeApprovalName string = "LikeApproval"
// GoToSocialLikeAuthorizationName is the string literal of the name for the LikeAuthorization type in the GoToSocial vocabulary.
var GoToSocialLikeAuthorizationName string = "LikeAuthorization"
// GoToSocialLikeRequestName is the string literal of the name for the LikeRequest type in the GoToSocial vocabulary.
var GoToSocialLikeRequestName string = "LikeRequest"
// ActivityStreamsLinkName is the string literal of the name for the Link type in the ActivityStreams vocabulary.
var ActivityStreamsLinkName string = "Link"
// ActivityStreamsListenName is the string literal of the name for the Listen type in the ActivityStreams vocabulary.
var ActivityStreamsListenName string = "Listen"
// ActivityStreamsMentionName is the string literal of the name for the Mention type in the ActivityStreams vocabulary.
var ActivityStreamsMentionName string = "Mention"
// ActivityStreamsMoveName is the string literal of the name for the Move type in the ActivityStreams vocabulary.
var ActivityStreamsMoveName string = "Move"
// ActivityStreamsNoteName is the string literal of the name for the Note type in the ActivityStreams vocabulary.
var ActivityStreamsNoteName string = "Note"
// ActivityStreamsObjectName is the string literal of the name for the Object type in the ActivityStreams vocabulary.
var ActivityStreamsObjectName string = "Object"
// ActivityStreamsOfferName is the string literal of the name for the Offer type in the ActivityStreams vocabulary.
var ActivityStreamsOfferName string = "Offer"
// ActivityStreamsOrderedCollectionName is the string literal of the name for the OrderedCollection type in the ActivityStreams vocabulary.
var ActivityStreamsOrderedCollectionName string = "OrderedCollection"
// ActivityStreamsOrderedCollectionPageName is the string literal of the name for the OrderedCollectionPage type in the ActivityStreams vocabulary.
var ActivityStreamsOrderedCollectionPageName string = "OrderedCollectionPage"
// ActivityStreamsOrganizationName is the string literal of the name for the Organization type in the ActivityStreams vocabulary.
var ActivityStreamsOrganizationName string = "Organization"
// ActivityStreamsPageName is the string literal of the name for the Page type in the ActivityStreams vocabulary.
var ActivityStreamsPageName string = "Page"
// ActivityStreamsPersonName is the string literal of the name for the Person type in the ActivityStreams vocabulary.
var ActivityStreamsPersonName string = "Person"
// ActivityStreamsPlaceName is the string literal of the name for the Place type in the ActivityStreams vocabulary.
var ActivityStreamsPlaceName string = "Place"
// ActivityStreamsProfileName is the string literal of the name for the Profile type in the ActivityStreams vocabulary.
var ActivityStreamsProfileName string = "Profile"
// SchemaPropertyValueName is the string literal of the name for the PropertyValue type in the Schema vocabulary.
var SchemaPropertyValueName string = "PropertyValue"
// W3IDSecurityV1PublicKeyName is the string literal of the name for the PublicKey type in the W3IDSecurityV1 vocabulary.
var W3IDSecurityV1PublicKeyName string = "PublicKey"
// ActivityStreamsQuestionName is the string literal of the name for the Question type in the ActivityStreams vocabulary.
var ActivityStreamsQuestionName string = "Question"
// ActivityStreamsReadName is the string literal of the name for the Read type in the ActivityStreams vocabulary.
var ActivityStreamsReadName string = "Read"
// ActivityStreamsRejectName is the string literal of the name for the Reject type in the ActivityStreams vocabulary.
var ActivityStreamsRejectName string = "Reject"
// ActivityStreamsRelationshipName is the string literal of the name for the Relationship type in the ActivityStreams vocabulary.
var ActivityStreamsRelationshipName string = "Relationship"
// ActivityStreamsRemoveName is the string literal of the name for the Remove type in the ActivityStreams vocabulary.
var ActivityStreamsRemoveName string = "Remove"
// GoToSocialReplyApprovalName is the string literal of the name for the ReplyApproval type in the GoToSocial vocabulary.
var GoToSocialReplyApprovalName string = "ReplyApproval"
// GoToSocialReplyAuthorizationName is the string literal of the name for the ReplyAuthorization type in the GoToSocial vocabulary.
var GoToSocialReplyAuthorizationName string = "ReplyAuthorization"
// GoToSocialReplyRequestName is the string literal of the name for the ReplyRequest type in the GoToSocial vocabulary.
var GoToSocialReplyRequestName string = "ReplyRequest"
// ActivityStreamsServiceName is the string literal of the name for the Service type in the ActivityStreams vocabulary.
var ActivityStreamsServiceName string = "Service"
// ActivityStreamsTentativeAcceptName is the string literal of the name for the TentativeAccept type in the ActivityStreams vocabulary.
var ActivityStreamsTentativeAcceptName string = "TentativeAccept"
// ActivityStreamsTentativeRejectName is the string literal of the name for the TentativeReject type in the ActivityStreams vocabulary.
var ActivityStreamsTentativeRejectName string = "TentativeReject"
// ActivityStreamsTombstoneName is the string literal of the name for the Tombstone type in the ActivityStreams vocabulary.
var ActivityStreamsTombstoneName string = "Tombstone"
// FunkwhaleTrackName is the string literal of the name for the Track type in the Funkwhale vocabulary.
var FunkwhaleTrackName string = "Track"
// ActivityStreamsTravelName is the string literal of the name for the Travel type in the ActivityStreams vocabulary.
var ActivityStreamsTravelName string = "Travel"
// ActivityStreamsUndoName is the string literal of the name for the Undo type in the ActivityStreams vocabulary.
var ActivityStreamsUndoName string = "Undo"
// ActivityStreamsUpdateName is the string literal of the name for the Update type in the ActivityStreams vocabulary.
var ActivityStreamsUpdateName string = "Update"
// ActivityStreamsVideoName is the string literal of the name for the Video type in the ActivityStreams vocabulary.
var ActivityStreamsVideoName string = "Video"
// ActivityStreamsViewName is the string literal of the name for the View type in the ActivityStreams vocabulary.
var ActivityStreamsViewName string = "View"
// ActivityStreamsAccuracyPropertyName is the string literal of the name for the accuracy property in the ActivityStreams vocabulary.
var ActivityStreamsAccuracyPropertyName string = "accuracy"
// ActivityStreamsActorPropertyName is the string literal of the name for the actor property in the ActivityStreams vocabulary.
var ActivityStreamsActorPropertyName string = "actor"
// ActivityStreamsAlsoKnownAsPropertyName is the string literal of the name for the alsoKnownAs property in the ActivityStreams vocabulary.
var ActivityStreamsAlsoKnownAsPropertyName string = "alsoKnownAs"
// ActivityStreamsAltitudePropertyName is the string literal of the name for the altitude property in the ActivityStreams vocabulary.
var ActivityStreamsAltitudePropertyName string = "altitude"
// GoToSocialAlwaysPropertyName is the string literal of the name for the always property in the GoToSocial vocabulary.
var GoToSocialAlwaysPropertyName string = "always"
// ActivityStreamsAnyOfPropertyName is the string literal of the name for the anyOf property in the ActivityStreams vocabulary.
var ActivityStreamsAnyOfPropertyName string = "anyOf"
// GoToSocialApprovalRequiredPropertyName is the string literal of the name for the approvalRequired property in the GoToSocial vocabulary.
var GoToSocialApprovalRequiredPropertyName string = "approvalRequired"
// GoToSocialApprovedByPropertyName is the string literal of the name for the approvedBy property in the GoToSocial vocabulary.
var GoToSocialApprovedByPropertyName string = "approvedBy"
// ActivityStreamsAttachmentPropertyName is the string literal of the name for the attachment property in the ActivityStreams vocabulary.
var ActivityStreamsAttachmentPropertyName string = "attachment"
// ActivityStreamsAttributedToPropertyName is the string literal of the name for the attributedTo property in the ActivityStreams vocabulary.
var ActivityStreamsAttributedToPropertyName string = "attributedTo"
// ActivityStreamsAudiencePropertyName is the string literal of the name for the audience property in the ActivityStreams vocabulary.
var ActivityStreamsAudiencePropertyName string = "audience"
// GoToSocialAutomaticApprovalPropertyName is the string literal of the name for the automaticApproval property in the GoToSocial vocabulary.
var GoToSocialAutomaticApprovalPropertyName string = "automaticApproval"
// ActivityStreamsBccPropertyName is the string literal of the name for the bcc property in the ActivityStreams vocabulary.
var ActivityStreamsBccPropertyName string = "bcc"
// TootBlurhashPropertyName is the string literal of the name for the blurhash property in the Toot vocabulary.
var TootBlurhashPropertyName string = "blurhash"
// ActivityStreamsBtoPropertyName is the string literal of the name for the bto property in the ActivityStreams vocabulary.
var ActivityStreamsBtoPropertyName string = "bto"
// GoToSocialCanAnnouncePropertyName is the string literal of the name for the canAnnounce property in the GoToSocial vocabulary.
var GoToSocialCanAnnouncePropertyName string = "canAnnounce"
// GoToSocialCanLikePropertyName is the string literal of the name for the canLike property in the GoToSocial vocabulary.
var GoToSocialCanLikePropertyName string = "canLike"
// GoToSocialCanQuotePropertyName is the string literal of the name for the canQuote property in the GoToSocial vocabulary.
var GoToSocialCanQuotePropertyName string = "canQuote"
// GoToSocialCanReplyPropertyName is the string literal of the name for the canReply property in the GoToSocial vocabulary.
var GoToSocialCanReplyPropertyName string = "canReply"
// ActivityStreamsCcPropertyName is the string literal of the name for the cc property in the ActivityStreams vocabulary.
var ActivityStreamsCcPropertyName string = "cc"
// ActivityStreamsClosedPropertyName is the string literal of the name for the closed property in the ActivityStreams vocabulary.
var ActivityStreamsClosedPropertyName string = "closed"
// ActivityStreamsContentPropertyName is the string literal of the name for the content property in the ActivityStreams vocabulary.
var ActivityStreamsContentPropertyName string = "content"
// ActivityStreamsContentPropertyMapName is the string literal of the name for the content property in the ActivityStreams vocabulary when it is a natural language map.
var ActivityStreamsContentPropertyMapName string = "contentMap"
// ActivityStreamsContextPropertyName is the string literal of the name for the context property in the ActivityStreams vocabulary.
var ActivityStreamsContextPropertyName string = "context"
// ActivityStreamsCurrentPropertyName is the string literal of the name for the current property in the ActivityStreams vocabulary.
var ActivityStreamsCurrentPropertyName string = "current"
// ActivityStreamsDeletedPropertyName is the string literal of the name for the deleted property in the ActivityStreams vocabulary.
var ActivityStreamsDeletedPropertyName string = "deleted"
// ActivityStreamsDescribesPropertyName is the string literal of the name for the describes property in the ActivityStreams vocabulary.
var ActivityStreamsDescribesPropertyName string = "describes"
// TootDiscoverablePropertyName is the string literal of the name for the discoverable property in the Toot vocabulary.
var TootDiscoverablePropertyName string = "discoverable"
// ActivityStreamsDurationPropertyName is the string literal of the name for the duration property in the ActivityStreams vocabulary.
var ActivityStreamsDurationPropertyName string = "duration"
// ActivityStreamsEndTimePropertyName is the string literal of the name for the endTime property in the ActivityStreams vocabulary.
var ActivityStreamsEndTimePropertyName string = "endTime"
// ActivityStreamsEndpointsPropertyName is the string literal of the name for the endpoints property in the ActivityStreams vocabulary.
var ActivityStreamsEndpointsPropertyName string = "endpoints"
// TootFeaturedPropertyName is the string literal of the name for the featured property in the Toot vocabulary.
var TootFeaturedPropertyName string = "featured"
// ActivityStreamsFirstPropertyName is the string literal of the name for the first property in the ActivityStreams vocabulary.
var ActivityStreamsFirstPropertyName string = "first"
// TootFocalPointPropertyName is the string literal of the name for the focalPoint property in the Toot vocabulary.
var TootFocalPointPropertyName string = "focalPoint"
// ActivityStreamsFollowersPropertyName is the string literal of the name for the followers property in the ActivityStreams vocabulary.
var ActivityStreamsFollowersPropertyName string = "followers"
// ActivityStreamsFollowingPropertyName is the string literal of the name for the following property in the ActivityStreams vocabulary.
var ActivityStreamsFollowingPropertyName string = "following"
// ActivityStreamsFormerTypePropertyName is the string literal of the name for the formerType property in the ActivityStreams vocabulary.
var ActivityStreamsFormerTypePropertyName string = "formerType"
// ActivityStreamsGeneratorPropertyName is the string literal of the name for the generator property in the ActivityStreams vocabulary.
var ActivityStreamsGeneratorPropertyName string = "generator"
// ActivityStreamsHeightPropertyName is the string literal of the name for the height property in the ActivityStreams vocabulary.
var ActivityStreamsHeightPropertyName string = "height"
// ActivityStreamsHrefPropertyName is the string literal of the name for the href property in the ActivityStreams vocabulary.
var ActivityStreamsHrefPropertyName string = "href"
// ActivityStreamsHreflangPropertyName is the string literal of the name for the hreflang property in the ActivityStreams vocabulary.
var ActivityStreamsHreflangPropertyName string = "hreflang"
// ActivityStreamsIconPropertyName is the string literal of the name for the icon property in the ActivityStreams vocabulary.
var ActivityStreamsIconPropertyName string = "icon"
// ActivityStreamsImagePropertyName is the string literal of the name for the image property in the ActivityStreams vocabulary.
var ActivityStreamsImagePropertyName string = "image"
// ActivityStreamsInReplyToPropertyName is the string literal of the name for the inReplyTo property in the ActivityStreams vocabulary.
var ActivityStreamsInReplyToPropertyName string = "inReplyTo"
// ActivityStreamsInboxPropertyName is the string literal of the name for the inbox property in the ActivityStreams vocabulary.
var ActivityStreamsInboxPropertyName string = "inbox"
// TootIndexablePropertyName is the string literal of the name for the indexable property in the Toot vocabulary.
var TootIndexablePropertyName string = "indexable"
// ActivityStreamsInstrumentPropertyName is the string literal of the name for the instrument property in the ActivityStreams vocabulary.
var ActivityStreamsInstrumentPropertyName string = "instrument"
// GoToSocialInteractingObjectPropertyName is the string literal of the name for the interactingObject property in the GoToSocial vocabulary.
var GoToSocialInteractingObjectPropertyName string = "interactingObject"
// GoToSocialInteractionPolicyPropertyName is the string literal of the name for the interactionPolicy property in the GoToSocial vocabulary.
var GoToSocialInteractionPolicyPropertyName string = "interactionPolicy"
// GoToSocialInteractionTargetPropertyName is the string literal of the name for the interactionTarget property in the GoToSocial vocabulary.
var GoToSocialInteractionTargetPropertyName string = "interactionTarget"
// ActivityStreamsItemsPropertyName is the string literal of the name for the items property in the ActivityStreams vocabulary.
var ActivityStreamsItemsPropertyName string = "items"
// ActivityStreamsLastPropertyName is the string literal of the name for the last property in the ActivityStreams vocabulary.
var ActivityStreamsLastPropertyName string = "last"
// ActivityStreamsLatitudePropertyName is the string literal of the name for the latitude property in the ActivityStreams vocabulary.
var ActivityStreamsLatitudePropertyName string = "latitude"
// ActivityStreamsLikedPropertyName is the string literal of the name for the liked property in the ActivityStreams vocabulary.
var ActivityStreamsLikedPropertyName string = "liked"
// ActivityStreamsLikesPropertyName is the string literal of the name for the likes property in the ActivityStreams vocabulary.
var ActivityStreamsLikesPropertyName string = "likes"
// ActivityStreamsLocationPropertyName is the string literal of the name for the location property in the ActivityStreams vocabulary.
var ActivityStreamsLocationPropertyName string = "location"
// ActivityStreamsLongitudePropertyName is the string literal of the name for the longitude property in the ActivityStreams vocabulary.
var ActivityStreamsLongitudePropertyName string = "longitude"
// GoToSocialManualApprovalPropertyName is the string literal of the name for the manualApproval property in the GoToSocial vocabulary.
var GoToSocialManualApprovalPropertyName string = "manualApproval"
// ActivityStreamsManuallyApprovesFollowersPropertyName is the string literal of the name for the manuallyApprovesFollowers property in the ActivityStreams vocabulary.
var ActivityStreamsManuallyApprovesFollowersPropertyName string = "manuallyApprovesFollowers"
// ActivityStreamsMediaTypePropertyName is the string literal of the name for the mediaType property in the ActivityStreams vocabulary.
var ActivityStreamsMediaTypePropertyName string = "mediaType"
// ActivityStreamsMovedToPropertyName is the string literal of the name for the movedTo property in the ActivityStreams vocabulary.
var ActivityStreamsMovedToPropertyName string = "movedTo"
// ActivityStreamsNamePropertyName is the string literal of the name for the name property in the ActivityStreams vocabulary.
var ActivityStreamsNamePropertyName string = "name"
// ActivityStreamsNamePropertyMapName is the string literal of the name for the name property in the ActivityStreams vocabulary when it is a natural language map.
var ActivityStreamsNamePropertyMapName string = "nameMap"
// ActivityStreamsNextPropertyName is the string literal of the name for the next property in the ActivityStreams vocabulary.
var ActivityStreamsNextPropertyName string = "next"
// ActivityStreamsObjectPropertyName is the string literal of the name for the object property in the ActivityStreams vocabulary.
var ActivityStreamsObjectPropertyName string = "object"
// ActivityStreamsOneOfPropertyName is the string literal of the name for the oneOf property in the ActivityStreams vocabulary.
var ActivityStreamsOneOfPropertyName string = "oneOf"
// ActivityStreamsOrderedItemsPropertyName is the string literal of the name for the orderedItems property in the ActivityStreams vocabulary.
var ActivityStreamsOrderedItemsPropertyName string = "orderedItems"
// ActivityStreamsOriginPropertyName is the string literal of the name for the origin property in the ActivityStreams vocabulary.
var ActivityStreamsOriginPropertyName string = "origin"
// ActivityStreamsOutboxPropertyName is the string literal of the name for the outbox property in the ActivityStreams vocabulary.
var ActivityStreamsOutboxPropertyName string = "outbox"
// W3IDSecurityV1OwnerPropertyName is the string literal of the name for the owner property in the W3IDSecurityV1 vocabulary.
var W3IDSecurityV1OwnerPropertyName string = "owner"
// ActivityStreamsPartOfPropertyName is the string literal of the name for the partOf property in the ActivityStreams vocabulary.
var ActivityStreamsPartOfPropertyName string = "partOf"
// ActivityStreamsPreferredUsernamePropertyName is the string literal of the name for the preferredUsername property in the ActivityStreams vocabulary.
var ActivityStreamsPreferredUsernamePropertyName string = "preferredUsername"
// ActivityStreamsPreferredUsernamePropertyMapName is the string literal of the name for the preferredUsername property in the ActivityStreams vocabulary when it is a natural language map.
var ActivityStreamsPreferredUsernamePropertyMapName string = "preferredUsernameMap"
// ActivityStreamsPrevPropertyName is the string literal of the name for the prev property in the ActivityStreams vocabulary.
var ActivityStreamsPrevPropertyName string = "prev"
// ActivityStreamsPreviewPropertyName is the string literal of the name for the preview property in the ActivityStreams vocabulary.
var ActivityStreamsPreviewPropertyName string = "preview"
// W3IDSecurityV1PublicKeyPropertyName is the string literal of the name for the publicKey property in the W3IDSecurityV1 vocabulary.
var W3IDSecurityV1PublicKeyPropertyName string = "publicKey"
// W3IDSecurityV1PublicKeyPemPropertyName is the string literal of the name for the publicKeyPem property in the W3IDSecurityV1 vocabulary.
var W3IDSecurityV1PublicKeyPemPropertyName string = "publicKeyPem"
// ActivityStreamsPublishedPropertyName is the string literal of the name for the published property in the ActivityStreams vocabulary.
var ActivityStreamsPublishedPropertyName string = "published"
// ActivityStreamsRadiusPropertyName is the string literal of the name for the radius property in the ActivityStreams vocabulary.
var ActivityStreamsRadiusPropertyName string = "radius"
// ActivityStreamsRelPropertyName is the string literal of the name for the rel property in the ActivityStreams vocabulary.
var ActivityStreamsRelPropertyName string = "rel"
// ActivityStreamsRelationshipPropertyName is the string literal of the name for the relationship property in the ActivityStreams vocabulary.
var ActivityStreamsRelationshipPropertyName string = "relationship"
// ActivityStreamsRepliesPropertyName is the string literal of the name for the replies property in the ActivityStreams vocabulary.
var ActivityStreamsRepliesPropertyName string = "replies"
// ActivityStreamsResultPropertyName is the string literal of the name for the result property in the ActivityStreams vocabulary.
var ActivityStreamsResultPropertyName string = "result"
// ActivityStreamsSensitivePropertyName is the string literal of the name for the sensitive property in the ActivityStreams vocabulary.
var ActivityStreamsSensitivePropertyName string = "sensitive"
// ActivityStreamsSharedInboxPropertyName is the string literal of the name for the sharedInbox property in the ActivityStreams vocabulary.
var ActivityStreamsSharedInboxPropertyName string = "sharedInbox"
// ActivityStreamsSharesPropertyName is the string literal of the name for the shares property in the ActivityStreams vocabulary.
var ActivityStreamsSharesPropertyName string = "shares"
// TootSignatureAlgorithmPropertyName is the string literal of the name for the signatureAlgorithm property in the Toot vocabulary.
var TootSignatureAlgorithmPropertyName string = "signatureAlgorithm"
// TootSignatureValuePropertyName is the string literal of the name for the signatureValue property in the Toot vocabulary.
var TootSignatureValuePropertyName string = "signatureValue"
// ActivityStreamsSourcePropertyName is the string literal of the name for the source property in the ActivityStreams vocabulary.
var ActivityStreamsSourcePropertyName string = "source"
// ActivityStreamsStartIndexPropertyName is the string literal of the name for the startIndex property in the ActivityStreams vocabulary.
var ActivityStreamsStartIndexPropertyName string = "startIndex"
// ActivityStreamsStartTimePropertyName is the string literal of the name for the startTime property in the ActivityStreams vocabulary.
var ActivityStreamsStartTimePropertyName string = "startTime"
// ActivityStreamsStreamsPropertyName is the string literal of the name for the streams property in the ActivityStreams vocabulary.
var ActivityStreamsStreamsPropertyName string = "streams"
// ActivityStreamsSubjectPropertyName is the string literal of the name for the subject property in the ActivityStreams vocabulary.
var ActivityStreamsSubjectPropertyName string = "subject"
// ActivityStreamsSummaryPropertyName is the string literal of the name for the summary property in the ActivityStreams vocabulary.
var ActivityStreamsSummaryPropertyName string = "summary"
// ActivityStreamsSummaryPropertyMapName is the string literal of the name for the summary property in the ActivityStreams vocabulary when it is a natural language map.
var ActivityStreamsSummaryPropertyMapName string = "summaryMap"
// ActivityStreamsTagPropertyName is the string literal of the name for the tag property in the ActivityStreams vocabulary.
var ActivityStreamsTagPropertyName string = "tag"
// ActivityStreamsTargetPropertyName is the string literal of the name for the target property in the ActivityStreams vocabulary.
var ActivityStreamsTargetPropertyName string = "target"
// ActivityStreamsToPropertyName is the string literal of the name for the to property in the ActivityStreams vocabulary.
var ActivityStreamsToPropertyName string = "to"
// ActivityStreamsTotalItemsPropertyName is the string literal of the name for the totalItems property in the ActivityStreams vocabulary.
var ActivityStreamsTotalItemsPropertyName string = "totalItems"
// ActivityStreamsUnitsPropertyName is the string literal of the name for the units property in the ActivityStreams vocabulary.
var ActivityStreamsUnitsPropertyName string = "units"
// ActivityStreamsUpdatedPropertyName is the string literal of the name for the updated property in the ActivityStreams vocabulary.
var ActivityStreamsUpdatedPropertyName string = "updated"
// ActivityStreamsUrlPropertyName is the string literal of the name for the url property in the ActivityStreams vocabulary.
var ActivityStreamsUrlPropertyName string = "url"
// SchemaValuePropertyName is the string literal of the name for the value property in the Schema vocabulary.
var SchemaValuePropertyName string = "value"
// TootVotersCountPropertyName is the string literal of the name for the votersCount property in the Toot vocabulary.
var TootVotersCountPropertyName string = "votersCount"
// ActivityStreamsWidthPropertyName is the string literal of the name for the width property in the ActivityStreams vocabulary.
var ActivityStreamsWidthPropertyName string = "width"

View File

@@ -1,51 +0,0 @@
// Code generated by astool. DO NOT EDIT.
// Package streams contains constructors and functions necessary for applications
// to serialize, deserialize, and use ActivityStreams types in Go. This
// package is code-generated and subject to the same license as the go-fed
// tool used to generate it.
//
// This package is useful to three classes of developers: end-user-application
// developers, specification writers creating an ActivityStream Extension, and
// ActivityPub implementors wanting to create an alternate ActivityStreams
// implementation that still satisfies the interfaces generated by the go-fed
// tool.
//
// Application developers should limit their use to the Resolver type, the
// constructors beginning with "New", the "Extends" functions, the
// "DisjointWith" functions, the "ExtendedBy" functions, and any interfaces
// returned in those functions in this package. This lets applications use
// Resolvers to Deserialize or Dispatch specific types. The types themselves
// can Serialize as needed. The "Extends", "DisjointWith", and "ExtendedBy"
// functions help navigate the ActivityStreams hierarchy since it is not
// equivalent to object-oriented inheritance.
//
// When creating an ActivityStreams extension, developers will want to ensure
// that the generated code builds correctly and check that the properties,
// types, extensions, and disjointedness is set up correctly. Writing unit
// tests with concrete types is then the next step. If the tool has an error
// generating this code, a fix is needed in the tool as it is likely there is
// a new RDF type being used in the extension that the tool does not know how
// to resolve. Thus, most development will focus on the go-fed tool itself.
//
// Finally, ActivityStreams implementors that want drop-in replacement while
// still using the generated interfaces are highly encouraged to examine the
// Manager type in this package (in addition to the constructors) as these are
// the locations where concrete types are instantiated. When supplying a
// different type in these two locations, the other generated code will
// propagate it throughout the rest of an application. The Manager is
// instantiated as a singleton at init time in this library. It is then
// injected into each implementation library so they can deserialize their
// needed types without relying on the underlying concrete type.
//
// Subdirectories of this package include implementation files and functions
// that are not intended to be directly linked to applications, but are used
// by this particular package. It is strongly recommended to only use the
// property interfaces and type interfaces in subdirectories and limiting
// concrete types to those in this package. The go-fed tool is likely to
// contain a pruning feature in the future which will analyze an application
// and eliminate code that would be dead if it were to be generated which
// reduces the compilation time, compilation resources, and binary size of an
// application. Such a feature will not be compatible with applications that
// use the concrete implementation types.
package streams

View File

@@ -1,457 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package streams
import (
propertyaccuracy "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_accuracy"
propertyactor "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_actor"
propertyalsoknownas "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_alsoknownas"
propertyaltitude "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_altitude"
propertyanyof "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_anyof"
propertyattachment "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attachment"
propertyattributedto "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attributedto"
propertyaudience "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_audience"
propertybcc "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bcc"
propertybto "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bto"
propertycc "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_cc"
propertyclosed "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_closed"
propertycontent "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_content"
propertycontext "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_context"
propertycurrent "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_current"
propertydeleted "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_deleted"
propertydescribes "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_describes"
propertyduration "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_duration"
propertyendpoints "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endpoints"
propertyendtime "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endtime"
propertyfirst "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_first"
propertyfollowers "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_followers"
propertyfollowing "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_following"
propertyformertype "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_formertype"
propertygenerator "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_generator"
propertyheight "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_height"
propertyhref "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_href"
propertyhreflang "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_hreflang"
propertyicon "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_icon"
propertyimage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_image"
propertyinbox "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inbox"
propertyinreplyto "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inreplyto"
propertyinstrument "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_instrument"
propertyitems "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_items"
propertylast "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_last"
propertylatitude "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_latitude"
propertyliked "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_liked"
propertylikes "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_likes"
propertylocation "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_location"
propertylongitude "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_longitude"
propertymanuallyapprovesfollowers "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers"
propertymediatype "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_mediatype"
propertymovedto "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_movedto"
propertyname "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_name"
propertynext "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_next"
propertyobject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_object"
propertyoneof "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_oneof"
propertyordereditems "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_ordereditems"
propertyorigin "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_origin"
propertyoutbox "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_outbox"
propertypartof "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_partof"
propertypreferredusername "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preferredusername"
propertyprev "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_prev"
propertypreview "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preview"
propertypublished "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_published"
propertyradius "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_radius"
propertyrel "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_rel"
propertyrelationship "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_relationship"
propertyreplies "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_replies"
propertyresult "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_result"
propertysensitive "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sensitive"
propertysharedinbox "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sharedinbox"
propertyshares "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_shares"
propertysource "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_source"
propertystartindex "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_startindex"
propertystarttime "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_starttime"
propertystreams "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_streams"
propertysubject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_subject"
propertysummary "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_summary"
propertytag "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_tag"
propertytarget "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_target"
propertyto "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_to"
propertytotalitems "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_totalitems"
propertyunits "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_units"
propertyupdated "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_updated"
propertyurl "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_url"
propertywidth "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_width"
typeaccept "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_accept"
typeactivity "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_activity"
typeadd "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_add"
typeannounce "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_announce"
typeapplication "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_application"
typearrive "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_arrive"
typearticle "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_article"
typeaudio "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_audio"
typeblock "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_block"
typecollection "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collection"
typecollectionpage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collectionpage"
typecreate "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_create"
typedelete "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_delete"
typedislike "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_dislike"
typedocument "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_document"
typeendpoints "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_endpoints"
typeevent "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_event"
typeflag "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_flag"
typefollow "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_follow"
typegroup "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_group"
typeignore "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_ignore"
typeimage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_image"
typeintransitiveactivity "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_intransitiveactivity"
typeinvite "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_invite"
typejoin "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_join"
typeleave "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_leave"
typelike "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_like"
typelink "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_link"
typelisten "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_listen"
typemention "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_mention"
typemove "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_move"
typenote "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_note"
typeobject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_object"
typeoffer "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_offer"
typeorderedcollection "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollection"
typeorderedcollectionpage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollectionpage"
typeorganization "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_organization"
typepage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_page"
typeperson "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_person"
typeplace "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_place"
typeprofile "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_profile"
typequestion "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_question"
typeread "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_read"
typereject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_reject"
typerelationship "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_relationship"
typeremove "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_remove"
typeservice "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_service"
typetentativeaccept "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativeaccept"
typetentativereject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativereject"
typetombstone "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tombstone"
typetravel "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_travel"
typeundo "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_undo"
typeupdate "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_update"
typevideo "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_video"
typeview "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_view"
typealbum "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album"
typeartist "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist"
typelibrary "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library"
typetrack "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track"
propertyalways "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_always"
propertyapprovalrequired "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvalrequired"
propertyapprovedby "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvedby"
propertyautomaticapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_automaticapproval"
propertycanannounce "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canannounce"
propertycanlike "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canlike"
propertycanquote "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canquote"
propertycanreply "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canreply"
propertyinteractingobject "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactingobject"
propertyinteractionpolicy "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactionpolicy"
propertyinteractiontarget "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactiontarget"
propertymanualapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_manualapproval"
typeannounceapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceapproval"
typeannounceauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceauthorization"
typeannouncerequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announcerequest"
typecanannounce "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canannounce"
typecanlike "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canlike"
typecanquote "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canquote"
typecanreply "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canreply"
typeinteractionpolicy "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_interactionpolicy"
typelikeapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeapproval"
typelikeauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeauthorization"
typelikerequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likerequest"
typereplyapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyapproval"
typereplyauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyauthorization"
typereplyrequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyrequest"
propertyvalue "codeberg.org/superseriousbusiness/activity/streams/impl/schema/property_value"
typepropertyvalue "codeberg.org/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue"
propertyblurhash "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_blurhash"
propertydiscoverable "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_discoverable"
propertyfeatured "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_featured"
propertyfocalpoint "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_focalpoint"
propertyindexable "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_indexable"
propertysignaturealgorithm "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturealgorithm"
propertysignaturevalue "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturevalue"
propertyvoterscount "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_voterscount"
typeemoji "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_emoji"
typehashtag "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_hashtag"
typeidentityproof "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_identityproof"
propertyowner "codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_owner"
propertypublickey "codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickey"
propertypublickeypem "codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickeypem"
typepublickey "codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/type_publickey"
)
var mgr *Manager
// init handles the 'magic' of creating a Manager and dependency-injecting it into
// every other code-generated package. This gives the implementations access
// to create any type needed to deserialize, without relying on the other
// specific concrete implementations. In order to replace a go-fed created
// type with your own, be sure to have the manager call your own
// implementation's deserialize functions instead of the built-in type.
// Finally, each implementation views the Manager as an interface with only a
// subset of funcitons available. This means this Manager implements the union
// of those interfaces.
func init() {
mgr = &Manager{}
propertyaccuracy.SetManager(mgr)
propertyactor.SetManager(mgr)
propertyalsoknownas.SetManager(mgr)
propertyaltitude.SetManager(mgr)
propertyanyof.SetManager(mgr)
propertyattachment.SetManager(mgr)
propertyattributedto.SetManager(mgr)
propertyaudience.SetManager(mgr)
propertybcc.SetManager(mgr)
propertybto.SetManager(mgr)
propertycc.SetManager(mgr)
propertyclosed.SetManager(mgr)
propertycontent.SetManager(mgr)
propertycontext.SetManager(mgr)
propertycurrent.SetManager(mgr)
propertydeleted.SetManager(mgr)
propertydescribes.SetManager(mgr)
propertyduration.SetManager(mgr)
propertyendpoints.SetManager(mgr)
propertyendtime.SetManager(mgr)
propertyfirst.SetManager(mgr)
propertyfollowers.SetManager(mgr)
propertyfollowing.SetManager(mgr)
propertyformertype.SetManager(mgr)
propertygenerator.SetManager(mgr)
propertyheight.SetManager(mgr)
propertyhref.SetManager(mgr)
propertyhreflang.SetManager(mgr)
propertyicon.SetManager(mgr)
propertyimage.SetManager(mgr)
propertyinbox.SetManager(mgr)
propertyinreplyto.SetManager(mgr)
propertyinstrument.SetManager(mgr)
propertyitems.SetManager(mgr)
propertylast.SetManager(mgr)
propertylatitude.SetManager(mgr)
propertyliked.SetManager(mgr)
propertylikes.SetManager(mgr)
propertylocation.SetManager(mgr)
propertylongitude.SetManager(mgr)
propertymanuallyapprovesfollowers.SetManager(mgr)
propertymediatype.SetManager(mgr)
propertymovedto.SetManager(mgr)
propertyname.SetManager(mgr)
propertynext.SetManager(mgr)
propertyobject.SetManager(mgr)
propertyoneof.SetManager(mgr)
propertyordereditems.SetManager(mgr)
propertyorigin.SetManager(mgr)
propertyoutbox.SetManager(mgr)
propertypartof.SetManager(mgr)
propertypreferredusername.SetManager(mgr)
propertyprev.SetManager(mgr)
propertypreview.SetManager(mgr)
propertypublished.SetManager(mgr)
propertyradius.SetManager(mgr)
propertyrel.SetManager(mgr)
propertyrelationship.SetManager(mgr)
propertyreplies.SetManager(mgr)
propertyresult.SetManager(mgr)
propertysensitive.SetManager(mgr)
propertysharedinbox.SetManager(mgr)
propertyshares.SetManager(mgr)
propertysource.SetManager(mgr)
propertystartindex.SetManager(mgr)
propertystarttime.SetManager(mgr)
propertystreams.SetManager(mgr)
propertysubject.SetManager(mgr)
propertysummary.SetManager(mgr)
propertytag.SetManager(mgr)
propertytarget.SetManager(mgr)
propertyto.SetManager(mgr)
propertytotalitems.SetManager(mgr)
propertyunits.SetManager(mgr)
propertyupdated.SetManager(mgr)
propertyurl.SetManager(mgr)
propertywidth.SetManager(mgr)
typeaccept.SetManager(mgr)
typeactivity.SetManager(mgr)
typeadd.SetManager(mgr)
typeannounce.SetManager(mgr)
typeapplication.SetManager(mgr)
typearrive.SetManager(mgr)
typearticle.SetManager(mgr)
typeaudio.SetManager(mgr)
typeblock.SetManager(mgr)
typecollection.SetManager(mgr)
typecollectionpage.SetManager(mgr)
typecreate.SetManager(mgr)
typedelete.SetManager(mgr)
typedislike.SetManager(mgr)
typedocument.SetManager(mgr)
typeendpoints.SetManager(mgr)
typeevent.SetManager(mgr)
typeflag.SetManager(mgr)
typefollow.SetManager(mgr)
typegroup.SetManager(mgr)
typeignore.SetManager(mgr)
typeimage.SetManager(mgr)
typeintransitiveactivity.SetManager(mgr)
typeinvite.SetManager(mgr)
typejoin.SetManager(mgr)
typeleave.SetManager(mgr)
typelike.SetManager(mgr)
typelink.SetManager(mgr)
typelisten.SetManager(mgr)
typemention.SetManager(mgr)
typemove.SetManager(mgr)
typenote.SetManager(mgr)
typeobject.SetManager(mgr)
typeoffer.SetManager(mgr)
typeorderedcollection.SetManager(mgr)
typeorderedcollectionpage.SetManager(mgr)
typeorganization.SetManager(mgr)
typepage.SetManager(mgr)
typeperson.SetManager(mgr)
typeplace.SetManager(mgr)
typeprofile.SetManager(mgr)
typequestion.SetManager(mgr)
typeread.SetManager(mgr)
typereject.SetManager(mgr)
typerelationship.SetManager(mgr)
typeremove.SetManager(mgr)
typeservice.SetManager(mgr)
typetentativeaccept.SetManager(mgr)
typetentativereject.SetManager(mgr)
typetombstone.SetManager(mgr)
typetravel.SetManager(mgr)
typeundo.SetManager(mgr)
typeupdate.SetManager(mgr)
typevideo.SetManager(mgr)
typeview.SetManager(mgr)
typealbum.SetManager(mgr)
typeartist.SetManager(mgr)
typelibrary.SetManager(mgr)
typetrack.SetManager(mgr)
propertyalways.SetManager(mgr)
propertyapprovalrequired.SetManager(mgr)
propertyapprovedby.SetManager(mgr)
propertyautomaticapproval.SetManager(mgr)
propertycanannounce.SetManager(mgr)
propertycanlike.SetManager(mgr)
propertycanquote.SetManager(mgr)
propertycanreply.SetManager(mgr)
propertyinteractingobject.SetManager(mgr)
propertyinteractionpolicy.SetManager(mgr)
propertyinteractiontarget.SetManager(mgr)
propertymanualapproval.SetManager(mgr)
typeannounceapproval.SetManager(mgr)
typeannounceauthorization.SetManager(mgr)
typeannouncerequest.SetManager(mgr)
typecanannounce.SetManager(mgr)
typecanlike.SetManager(mgr)
typecanquote.SetManager(mgr)
typecanreply.SetManager(mgr)
typeinteractionpolicy.SetManager(mgr)
typelikeapproval.SetManager(mgr)
typelikeauthorization.SetManager(mgr)
typelikerequest.SetManager(mgr)
typereplyapproval.SetManager(mgr)
typereplyauthorization.SetManager(mgr)
typereplyrequest.SetManager(mgr)
propertyvalue.SetManager(mgr)
typepropertyvalue.SetManager(mgr)
propertyblurhash.SetManager(mgr)
propertydiscoverable.SetManager(mgr)
propertyfeatured.SetManager(mgr)
propertyfocalpoint.SetManager(mgr)
propertyindexable.SetManager(mgr)
propertysignaturealgorithm.SetManager(mgr)
propertysignaturevalue.SetManager(mgr)
propertyvoterscount.SetManager(mgr)
typeemoji.SetManager(mgr)
typehashtag.SetManager(mgr)
typeidentityproof.SetManager(mgr)
propertyowner.SetManager(mgr)
propertypublickey.SetManager(mgr)
propertypublickeypem.SetManager(mgr)
typepublickey.SetManager(mgr)
typeaccept.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typeactivity.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typeadd.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typeannounce.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typeapplication.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typearrive.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typearticle.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typeaudio.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typeblock.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typecollection.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typecollectionpage.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typecreate.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typedelete.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typedislike.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typedocument.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typeendpoints.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typeevent.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typeflag.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typefollow.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typegroup.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typeignore.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typeimage.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typeintransitiveactivity.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typeinvite.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typejoin.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typeleave.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typelike.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typelink.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typelisten.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typemention.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typemove.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typenote.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typeobject.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typeoffer.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typeorderedcollection.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typeorderedcollectionpage.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typeorganization.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typepage.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typeperson.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typeplace.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typeprofile.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typequestion.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typeread.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typereject.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typerelationship.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typeremove.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typeservice.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typetentativeaccept.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typetentativereject.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typetombstone.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typetravel.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typeundo.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typeupdate.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typevideo.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typeview.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typealbum.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typeartist.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typelibrary.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typetrack.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typeannounceapproval.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typeannounceauthorization.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typeannouncerequest.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typecanannounce.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typecanlike.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typecanquote.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typecanreply.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typeinteractionpolicy.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typelikeapproval.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typelikeauthorization.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typelikerequest.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typereplyapproval.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typereplyauthorization.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typereplyrequest.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typepropertyvalue.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typeemoji.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typehashtag.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typeidentityproof.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typepublickey.SetTypePropertyConstructor(NewJSONLDTypeProperty)
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,392 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package streams
import (
typeaccept "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_accept"
typeactivity "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_activity"
typeadd "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_add"
typeannounce "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_announce"
typeapplication "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_application"
typearrive "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_arrive"
typearticle "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_article"
typeaudio "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_audio"
typeblock "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_block"
typecollection "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collection"
typecollectionpage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collectionpage"
typecreate "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_create"
typedelete "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_delete"
typedislike "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_dislike"
typedocument "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_document"
typeendpoints "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_endpoints"
typeevent "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_event"
typeflag "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_flag"
typefollow "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_follow"
typegroup "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_group"
typeignore "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_ignore"
typeimage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_image"
typeintransitiveactivity "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_intransitiveactivity"
typeinvite "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_invite"
typejoin "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_join"
typeleave "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_leave"
typelike "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_like"
typelink "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_link"
typelisten "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_listen"
typemention "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_mention"
typemove "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_move"
typenote "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_note"
typeobject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_object"
typeoffer "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_offer"
typeorderedcollection "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollection"
typeorderedcollectionpage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollectionpage"
typeorganization "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_organization"
typepage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_page"
typeperson "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_person"
typeplace "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_place"
typeprofile "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_profile"
typequestion "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_question"
typeread "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_read"
typereject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_reject"
typerelationship "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_relationship"
typeremove "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_remove"
typeservice "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_service"
typetentativeaccept "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativeaccept"
typetentativereject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativereject"
typetombstone "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tombstone"
typetravel "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_travel"
typeundo "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_undo"
typeupdate "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_update"
typevideo "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_video"
typeview "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_view"
vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
)
// ActivityStreamsAcceptIsDisjointWith returns true if Accept is disjoint with the
// other's type.
func ActivityStreamsAcceptIsDisjointWith(other vocab.Type) bool {
return typeaccept.AcceptIsDisjointWith(other)
}
// ActivityStreamsActivityIsDisjointWith returns true if Activity is disjoint with
// the other's type.
func ActivityStreamsActivityIsDisjointWith(other vocab.Type) bool {
return typeactivity.ActivityIsDisjointWith(other)
}
// ActivityStreamsAddIsDisjointWith returns true if Add is disjoint with the
// other's type.
func ActivityStreamsAddIsDisjointWith(other vocab.Type) bool {
return typeadd.AddIsDisjointWith(other)
}
// ActivityStreamsAnnounceIsDisjointWith returns true if Announce is disjoint with
// the other's type.
func ActivityStreamsAnnounceIsDisjointWith(other vocab.Type) bool {
return typeannounce.AnnounceIsDisjointWith(other)
}
// ActivityStreamsApplicationIsDisjointWith returns true if Application is
// disjoint with the other's type.
func ActivityStreamsApplicationIsDisjointWith(other vocab.Type) bool {
return typeapplication.ApplicationIsDisjointWith(other)
}
// ActivityStreamsArriveIsDisjointWith returns true if Arrive is disjoint with the
// other's type.
func ActivityStreamsArriveIsDisjointWith(other vocab.Type) bool {
return typearrive.ArriveIsDisjointWith(other)
}
// ActivityStreamsArticleIsDisjointWith returns true if Article is disjoint with
// the other's type.
func ActivityStreamsArticleIsDisjointWith(other vocab.Type) bool {
return typearticle.ArticleIsDisjointWith(other)
}
// ActivityStreamsAudioIsDisjointWith returns true if Audio is disjoint with the
// other's type.
func ActivityStreamsAudioIsDisjointWith(other vocab.Type) bool {
return typeaudio.AudioIsDisjointWith(other)
}
// ActivityStreamsBlockIsDisjointWith returns true if Block is disjoint with the
// other's type.
func ActivityStreamsBlockIsDisjointWith(other vocab.Type) bool {
return typeblock.BlockIsDisjointWith(other)
}
// ActivityStreamsCollectionIsDisjointWith returns true if Collection is disjoint
// with the other's type.
func ActivityStreamsCollectionIsDisjointWith(other vocab.Type) bool {
return typecollection.CollectionIsDisjointWith(other)
}
// ActivityStreamsCollectionPageIsDisjointWith returns true if CollectionPage is
// disjoint with the other's type.
func ActivityStreamsCollectionPageIsDisjointWith(other vocab.Type) bool {
return typecollectionpage.CollectionPageIsDisjointWith(other)
}
// ActivityStreamsCreateIsDisjointWith returns true if Create is disjoint with the
// other's type.
func ActivityStreamsCreateIsDisjointWith(other vocab.Type) bool {
return typecreate.CreateIsDisjointWith(other)
}
// ActivityStreamsDeleteIsDisjointWith returns true if Delete is disjoint with the
// other's type.
func ActivityStreamsDeleteIsDisjointWith(other vocab.Type) bool {
return typedelete.DeleteIsDisjointWith(other)
}
// ActivityStreamsDislikeIsDisjointWith returns true if Dislike is disjoint with
// the other's type.
func ActivityStreamsDislikeIsDisjointWith(other vocab.Type) bool {
return typedislike.DislikeIsDisjointWith(other)
}
// ActivityStreamsDocumentIsDisjointWith returns true if Document is disjoint with
// the other's type.
func ActivityStreamsDocumentIsDisjointWith(other vocab.Type) bool {
return typedocument.DocumentIsDisjointWith(other)
}
// ActivityStreamsEndpointsIsDisjointWith returns true if Endpoints is disjoint
// with the other's type.
func ActivityStreamsEndpointsIsDisjointWith(other vocab.Type) bool {
return typeendpoints.EndpointsIsDisjointWith(other)
}
// ActivityStreamsEventIsDisjointWith returns true if Event is disjoint with the
// other's type.
func ActivityStreamsEventIsDisjointWith(other vocab.Type) bool {
return typeevent.EventIsDisjointWith(other)
}
// ActivityStreamsFlagIsDisjointWith returns true if Flag is disjoint with the
// other's type.
func ActivityStreamsFlagIsDisjointWith(other vocab.Type) bool {
return typeflag.FlagIsDisjointWith(other)
}
// ActivityStreamsFollowIsDisjointWith returns true if Follow is disjoint with the
// other's type.
func ActivityStreamsFollowIsDisjointWith(other vocab.Type) bool {
return typefollow.FollowIsDisjointWith(other)
}
// ActivityStreamsGroupIsDisjointWith returns true if Group is disjoint with the
// other's type.
func ActivityStreamsGroupIsDisjointWith(other vocab.Type) bool {
return typegroup.GroupIsDisjointWith(other)
}
// ActivityStreamsIgnoreIsDisjointWith returns true if Ignore is disjoint with the
// other's type.
func ActivityStreamsIgnoreIsDisjointWith(other vocab.Type) bool {
return typeignore.IgnoreIsDisjointWith(other)
}
// ActivityStreamsImageIsDisjointWith returns true if Image is disjoint with the
// other's type.
func ActivityStreamsImageIsDisjointWith(other vocab.Type) bool {
return typeimage.ImageIsDisjointWith(other)
}
// ActivityStreamsIntransitiveActivityIsDisjointWith returns true if
// IntransitiveActivity is disjoint with the other's type.
func ActivityStreamsIntransitiveActivityIsDisjointWith(other vocab.Type) bool {
return typeintransitiveactivity.IntransitiveActivityIsDisjointWith(other)
}
// ActivityStreamsInviteIsDisjointWith returns true if Invite is disjoint with the
// other's type.
func ActivityStreamsInviteIsDisjointWith(other vocab.Type) bool {
return typeinvite.InviteIsDisjointWith(other)
}
// ActivityStreamsJoinIsDisjointWith returns true if Join is disjoint with the
// other's type.
func ActivityStreamsJoinIsDisjointWith(other vocab.Type) bool {
return typejoin.JoinIsDisjointWith(other)
}
// ActivityStreamsLeaveIsDisjointWith returns true if Leave is disjoint with the
// other's type.
func ActivityStreamsLeaveIsDisjointWith(other vocab.Type) bool {
return typeleave.LeaveIsDisjointWith(other)
}
// ActivityStreamsLikeIsDisjointWith returns true if Like is disjoint with the
// other's type.
func ActivityStreamsLikeIsDisjointWith(other vocab.Type) bool {
return typelike.LikeIsDisjointWith(other)
}
// ActivityStreamsLinkIsDisjointWith returns true if Link is disjoint with the
// other's type.
func ActivityStreamsLinkIsDisjointWith(other vocab.Type) bool {
return typelink.LinkIsDisjointWith(other)
}
// ActivityStreamsListenIsDisjointWith returns true if Listen is disjoint with the
// other's type.
func ActivityStreamsListenIsDisjointWith(other vocab.Type) bool {
return typelisten.ListenIsDisjointWith(other)
}
// ActivityStreamsMentionIsDisjointWith returns true if Mention is disjoint with
// the other's type.
func ActivityStreamsMentionIsDisjointWith(other vocab.Type) bool {
return typemention.MentionIsDisjointWith(other)
}
// ActivityStreamsMoveIsDisjointWith returns true if Move is disjoint with the
// other's type.
func ActivityStreamsMoveIsDisjointWith(other vocab.Type) bool {
return typemove.MoveIsDisjointWith(other)
}
// ActivityStreamsNoteIsDisjointWith returns true if Note is disjoint with the
// other's type.
func ActivityStreamsNoteIsDisjointWith(other vocab.Type) bool {
return typenote.NoteIsDisjointWith(other)
}
// ActivityStreamsObjectIsDisjointWith returns true if Object is disjoint with the
// other's type.
func ActivityStreamsObjectIsDisjointWith(other vocab.Type) bool {
return typeobject.ObjectIsDisjointWith(other)
}
// ActivityStreamsOfferIsDisjointWith returns true if Offer is disjoint with the
// other's type.
func ActivityStreamsOfferIsDisjointWith(other vocab.Type) bool {
return typeoffer.OfferIsDisjointWith(other)
}
// ActivityStreamsOrderedCollectionIsDisjointWith returns true if
// OrderedCollection is disjoint with the other's type.
func ActivityStreamsOrderedCollectionIsDisjointWith(other vocab.Type) bool {
return typeorderedcollection.OrderedCollectionIsDisjointWith(other)
}
// ActivityStreamsOrderedCollectionPageIsDisjointWith returns true if
// OrderedCollectionPage is disjoint with the other's type.
func ActivityStreamsOrderedCollectionPageIsDisjointWith(other vocab.Type) bool {
return typeorderedcollectionpage.OrderedCollectionPageIsDisjointWith(other)
}
// ActivityStreamsOrganizationIsDisjointWith returns true if Organization is
// disjoint with the other's type.
func ActivityStreamsOrganizationIsDisjointWith(other vocab.Type) bool {
return typeorganization.OrganizationIsDisjointWith(other)
}
// ActivityStreamsPageIsDisjointWith returns true if Page is disjoint with the
// other's type.
func ActivityStreamsPageIsDisjointWith(other vocab.Type) bool {
return typepage.PageIsDisjointWith(other)
}
// ActivityStreamsPersonIsDisjointWith returns true if Person is disjoint with the
// other's type.
func ActivityStreamsPersonIsDisjointWith(other vocab.Type) bool {
return typeperson.PersonIsDisjointWith(other)
}
// ActivityStreamsPlaceIsDisjointWith returns true if Place is disjoint with the
// other's type.
func ActivityStreamsPlaceIsDisjointWith(other vocab.Type) bool {
return typeplace.PlaceIsDisjointWith(other)
}
// ActivityStreamsProfileIsDisjointWith returns true if Profile is disjoint with
// the other's type.
func ActivityStreamsProfileIsDisjointWith(other vocab.Type) bool {
return typeprofile.ProfileIsDisjointWith(other)
}
// ActivityStreamsQuestionIsDisjointWith returns true if Question is disjoint with
// the other's type.
func ActivityStreamsQuestionIsDisjointWith(other vocab.Type) bool {
return typequestion.QuestionIsDisjointWith(other)
}
// ActivityStreamsReadIsDisjointWith returns true if Read is disjoint with the
// other's type.
func ActivityStreamsReadIsDisjointWith(other vocab.Type) bool {
return typeread.ReadIsDisjointWith(other)
}
// ActivityStreamsRejectIsDisjointWith returns true if Reject is disjoint with the
// other's type.
func ActivityStreamsRejectIsDisjointWith(other vocab.Type) bool {
return typereject.RejectIsDisjointWith(other)
}
// ActivityStreamsRelationshipIsDisjointWith returns true if Relationship is
// disjoint with the other's type.
func ActivityStreamsRelationshipIsDisjointWith(other vocab.Type) bool {
return typerelationship.RelationshipIsDisjointWith(other)
}
// ActivityStreamsRemoveIsDisjointWith returns true if Remove is disjoint with the
// other's type.
func ActivityStreamsRemoveIsDisjointWith(other vocab.Type) bool {
return typeremove.RemoveIsDisjointWith(other)
}
// ActivityStreamsServiceIsDisjointWith returns true if Service is disjoint with
// the other's type.
func ActivityStreamsServiceIsDisjointWith(other vocab.Type) bool {
return typeservice.ServiceIsDisjointWith(other)
}
// ActivityStreamsTentativeAcceptIsDisjointWith returns true if TentativeAccept is
// disjoint with the other's type.
func ActivityStreamsTentativeAcceptIsDisjointWith(other vocab.Type) bool {
return typetentativeaccept.TentativeAcceptIsDisjointWith(other)
}
// ActivityStreamsTentativeRejectIsDisjointWith returns true if TentativeReject is
// disjoint with the other's type.
func ActivityStreamsTentativeRejectIsDisjointWith(other vocab.Type) bool {
return typetentativereject.TentativeRejectIsDisjointWith(other)
}
// ActivityStreamsTombstoneIsDisjointWith returns true if Tombstone is disjoint
// with the other's type.
func ActivityStreamsTombstoneIsDisjointWith(other vocab.Type) bool {
return typetombstone.TombstoneIsDisjointWith(other)
}
// ActivityStreamsTravelIsDisjointWith returns true if Travel is disjoint with the
// other's type.
func ActivityStreamsTravelIsDisjointWith(other vocab.Type) bool {
return typetravel.TravelIsDisjointWith(other)
}
// ActivityStreamsUndoIsDisjointWith returns true if Undo is disjoint with the
// other's type.
func ActivityStreamsUndoIsDisjointWith(other vocab.Type) bool {
return typeundo.UndoIsDisjointWith(other)
}
// ActivityStreamsUpdateIsDisjointWith returns true if Update is disjoint with the
// other's type.
func ActivityStreamsUpdateIsDisjointWith(other vocab.Type) bool {
return typeupdate.UpdateIsDisjointWith(other)
}
// ActivityStreamsVideoIsDisjointWith returns true if Video is disjoint with the
// other's type.
func ActivityStreamsVideoIsDisjointWith(other vocab.Type) bool {
return typevideo.VideoIsDisjointWith(other)
}
// ActivityStreamsViewIsDisjointWith returns true if View is disjoint with the
// other's type.
func ActivityStreamsViewIsDisjointWith(other vocab.Type) bool {
return typeview.ViewIsDisjointWith(other)
}

View File

@@ -1,447 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package streams
import (
typeaccept "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_accept"
typeactivity "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_activity"
typeadd "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_add"
typeannounce "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_announce"
typeapplication "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_application"
typearrive "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_arrive"
typearticle "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_article"
typeaudio "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_audio"
typeblock "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_block"
typecollection "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collection"
typecollectionpage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collectionpage"
typecreate "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_create"
typedelete "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_delete"
typedislike "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_dislike"
typedocument "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_document"
typeendpoints "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_endpoints"
typeevent "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_event"
typeflag "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_flag"
typefollow "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_follow"
typegroup "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_group"
typeignore "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_ignore"
typeimage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_image"
typeintransitiveactivity "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_intransitiveactivity"
typeinvite "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_invite"
typejoin "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_join"
typeleave "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_leave"
typelike "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_like"
typelink "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_link"
typelisten "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_listen"
typemention "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_mention"
typemove "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_move"
typenote "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_note"
typeobject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_object"
typeoffer "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_offer"
typeorderedcollection "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollection"
typeorderedcollectionpage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollectionpage"
typeorganization "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_organization"
typepage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_page"
typeperson "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_person"
typeplace "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_place"
typeprofile "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_profile"
typequestion "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_question"
typeread "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_read"
typereject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_reject"
typerelationship "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_relationship"
typeremove "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_remove"
typeservice "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_service"
typetentativeaccept "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativeaccept"
typetentativereject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativereject"
typetombstone "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tombstone"
typetravel "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_travel"
typeundo "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_undo"
typeupdate "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_update"
typevideo "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_video"
typeview "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_view"
vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
)
// ActivityStreamsAcceptIsExtendedBy returns true if the other's type extends from
// Accept. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func ActivityStreamsAcceptIsExtendedBy(other vocab.Type) bool {
return typeaccept.AcceptIsExtendedBy(other)
}
// ActivityStreamsActivityIsExtendedBy returns true if the other's type extends
// from Activity. Note that it returns false if the types are the same; see
// the "IsOrExtends" variant instead.
func ActivityStreamsActivityIsExtendedBy(other vocab.Type) bool {
return typeactivity.ActivityIsExtendedBy(other)
}
// ActivityStreamsAddIsExtendedBy returns true if the other's type extends from
// Add. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func ActivityStreamsAddIsExtendedBy(other vocab.Type) bool {
return typeadd.AddIsExtendedBy(other)
}
// ActivityStreamsAnnounceIsExtendedBy returns true if the other's type extends
// from Announce. Note that it returns false if the types are the same; see
// the "IsOrExtends" variant instead.
func ActivityStreamsAnnounceIsExtendedBy(other vocab.Type) bool {
return typeannounce.AnnounceIsExtendedBy(other)
}
// ActivityStreamsApplicationIsExtendedBy returns true if the other's type extends
// from Application. Note that it returns false if the types are the same; see
// the "IsOrExtends" variant instead.
func ActivityStreamsApplicationIsExtendedBy(other vocab.Type) bool {
return typeapplication.ApplicationIsExtendedBy(other)
}
// ActivityStreamsArriveIsExtendedBy returns true if the other's type extends from
// Arrive. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func ActivityStreamsArriveIsExtendedBy(other vocab.Type) bool {
return typearrive.ArriveIsExtendedBy(other)
}
// ActivityStreamsArticleIsExtendedBy returns true if the other's type extends
// from Article. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func ActivityStreamsArticleIsExtendedBy(other vocab.Type) bool {
return typearticle.ArticleIsExtendedBy(other)
}
// ActivityStreamsAudioIsExtendedBy returns true if the other's type extends from
// Audio. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func ActivityStreamsAudioIsExtendedBy(other vocab.Type) bool {
return typeaudio.AudioIsExtendedBy(other)
}
// ActivityStreamsBlockIsExtendedBy returns true if the other's type extends from
// Block. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func ActivityStreamsBlockIsExtendedBy(other vocab.Type) bool {
return typeblock.BlockIsExtendedBy(other)
}
// ActivityStreamsCollectionIsExtendedBy returns true if the other's type extends
// from Collection. Note that it returns false if the types are the same; see
// the "IsOrExtends" variant instead.
func ActivityStreamsCollectionIsExtendedBy(other vocab.Type) bool {
return typecollection.CollectionIsExtendedBy(other)
}
// ActivityStreamsCollectionPageIsExtendedBy returns true if the other's type
// extends from CollectionPage. Note that it returns false if the types are
// the same; see the "IsOrExtends" variant instead.
func ActivityStreamsCollectionPageIsExtendedBy(other vocab.Type) bool {
return typecollectionpage.CollectionPageIsExtendedBy(other)
}
// ActivityStreamsCreateIsExtendedBy returns true if the other's type extends from
// Create. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func ActivityStreamsCreateIsExtendedBy(other vocab.Type) bool {
return typecreate.CreateIsExtendedBy(other)
}
// ActivityStreamsDeleteIsExtendedBy returns true if the other's type extends from
// Delete. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func ActivityStreamsDeleteIsExtendedBy(other vocab.Type) bool {
return typedelete.DeleteIsExtendedBy(other)
}
// ActivityStreamsDislikeIsExtendedBy returns true if the other's type extends
// from Dislike. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func ActivityStreamsDislikeIsExtendedBy(other vocab.Type) bool {
return typedislike.DislikeIsExtendedBy(other)
}
// ActivityStreamsDocumentIsExtendedBy returns true if the other's type extends
// from Document. Note that it returns false if the types are the same; see
// the "IsOrExtends" variant instead.
func ActivityStreamsDocumentIsExtendedBy(other vocab.Type) bool {
return typedocument.DocumentIsExtendedBy(other)
}
// ActivityStreamsEndpointsIsExtendedBy returns true if the other's type extends
// from Endpoints. Note that it returns false if the types are the same; see
// the "IsOrExtends" variant instead.
func ActivityStreamsEndpointsIsExtendedBy(other vocab.Type) bool {
return typeendpoints.EndpointsIsExtendedBy(other)
}
// ActivityStreamsEventIsExtendedBy returns true if the other's type extends from
// Event. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func ActivityStreamsEventIsExtendedBy(other vocab.Type) bool {
return typeevent.EventIsExtendedBy(other)
}
// ActivityStreamsFlagIsExtendedBy returns true if the other's type extends from
// Flag. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func ActivityStreamsFlagIsExtendedBy(other vocab.Type) bool {
return typeflag.FlagIsExtendedBy(other)
}
// ActivityStreamsFollowIsExtendedBy returns true if the other's type extends from
// Follow. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func ActivityStreamsFollowIsExtendedBy(other vocab.Type) bool {
return typefollow.FollowIsExtendedBy(other)
}
// ActivityStreamsGroupIsExtendedBy returns true if the other's type extends from
// Group. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func ActivityStreamsGroupIsExtendedBy(other vocab.Type) bool {
return typegroup.GroupIsExtendedBy(other)
}
// ActivityStreamsIgnoreIsExtendedBy returns true if the other's type extends from
// Ignore. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func ActivityStreamsIgnoreIsExtendedBy(other vocab.Type) bool {
return typeignore.IgnoreIsExtendedBy(other)
}
// ActivityStreamsImageIsExtendedBy returns true if the other's type extends from
// Image. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func ActivityStreamsImageIsExtendedBy(other vocab.Type) bool {
return typeimage.ImageIsExtendedBy(other)
}
// ActivityStreamsIntransitiveActivityIsExtendedBy returns true if the other's
// type extends from IntransitiveActivity. Note that it returns false if the
// types are the same; see the "IsOrExtends" variant instead.
func ActivityStreamsIntransitiveActivityIsExtendedBy(other vocab.Type) bool {
return typeintransitiveactivity.IntransitiveActivityIsExtendedBy(other)
}
// ActivityStreamsInviteIsExtendedBy returns true if the other's type extends from
// Invite. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func ActivityStreamsInviteIsExtendedBy(other vocab.Type) bool {
return typeinvite.InviteIsExtendedBy(other)
}
// ActivityStreamsJoinIsExtendedBy returns true if the other's type extends from
// Join. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func ActivityStreamsJoinIsExtendedBy(other vocab.Type) bool {
return typejoin.JoinIsExtendedBy(other)
}
// ActivityStreamsLeaveIsExtendedBy returns true if the other's type extends from
// Leave. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func ActivityStreamsLeaveIsExtendedBy(other vocab.Type) bool {
return typeleave.LeaveIsExtendedBy(other)
}
// ActivityStreamsLikeIsExtendedBy returns true if the other's type extends from
// Like. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func ActivityStreamsLikeIsExtendedBy(other vocab.Type) bool {
return typelike.LikeIsExtendedBy(other)
}
// ActivityStreamsLinkIsExtendedBy returns true if the other's type extends from
// Link. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func ActivityStreamsLinkIsExtendedBy(other vocab.Type) bool {
return typelink.LinkIsExtendedBy(other)
}
// ActivityStreamsListenIsExtendedBy returns true if the other's type extends from
// Listen. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func ActivityStreamsListenIsExtendedBy(other vocab.Type) bool {
return typelisten.ListenIsExtendedBy(other)
}
// ActivityStreamsMentionIsExtendedBy returns true if the other's type extends
// from Mention. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func ActivityStreamsMentionIsExtendedBy(other vocab.Type) bool {
return typemention.MentionIsExtendedBy(other)
}
// ActivityStreamsMoveIsExtendedBy returns true if the other's type extends from
// Move. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func ActivityStreamsMoveIsExtendedBy(other vocab.Type) bool {
return typemove.MoveIsExtendedBy(other)
}
// ActivityStreamsNoteIsExtendedBy returns true if the other's type extends from
// Note. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func ActivityStreamsNoteIsExtendedBy(other vocab.Type) bool {
return typenote.NoteIsExtendedBy(other)
}
// ActivityStreamsObjectIsExtendedBy returns true if the other's type extends from
// Object. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func ActivityStreamsObjectIsExtendedBy(other vocab.Type) bool {
return typeobject.ObjectIsExtendedBy(other)
}
// ActivityStreamsOfferIsExtendedBy returns true if the other's type extends from
// Offer. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func ActivityStreamsOfferIsExtendedBy(other vocab.Type) bool {
return typeoffer.OfferIsExtendedBy(other)
}
// ActivityStreamsOrderedCollectionIsExtendedBy returns true if the other's type
// extends from OrderedCollection. Note that it returns false if the types are
// the same; see the "IsOrExtends" variant instead.
func ActivityStreamsOrderedCollectionIsExtendedBy(other vocab.Type) bool {
return typeorderedcollection.OrderedCollectionIsExtendedBy(other)
}
// ActivityStreamsOrderedCollectionPageIsExtendedBy returns true if the other's
// type extends from OrderedCollectionPage. Note that it returns false if the
// types are the same; see the "IsOrExtends" variant instead.
func ActivityStreamsOrderedCollectionPageIsExtendedBy(other vocab.Type) bool {
return typeorderedcollectionpage.OrderedCollectionPageIsExtendedBy(other)
}
// ActivityStreamsOrganizationIsExtendedBy returns true if the other's type
// extends from Organization. Note that it returns false if the types are the
// same; see the "IsOrExtends" variant instead.
func ActivityStreamsOrganizationIsExtendedBy(other vocab.Type) bool {
return typeorganization.OrganizationIsExtendedBy(other)
}
// ActivityStreamsPageIsExtendedBy returns true if the other's type extends from
// Page. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func ActivityStreamsPageIsExtendedBy(other vocab.Type) bool {
return typepage.PageIsExtendedBy(other)
}
// ActivityStreamsPersonIsExtendedBy returns true if the other's type extends from
// Person. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func ActivityStreamsPersonIsExtendedBy(other vocab.Type) bool {
return typeperson.PersonIsExtendedBy(other)
}
// ActivityStreamsPlaceIsExtendedBy returns true if the other's type extends from
// Place. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func ActivityStreamsPlaceIsExtendedBy(other vocab.Type) bool {
return typeplace.PlaceIsExtendedBy(other)
}
// ActivityStreamsProfileIsExtendedBy returns true if the other's type extends
// from Profile. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func ActivityStreamsProfileIsExtendedBy(other vocab.Type) bool {
return typeprofile.ProfileIsExtendedBy(other)
}
// ActivityStreamsQuestionIsExtendedBy returns true if the other's type extends
// from Question. Note that it returns false if the types are the same; see
// the "IsOrExtends" variant instead.
func ActivityStreamsQuestionIsExtendedBy(other vocab.Type) bool {
return typequestion.QuestionIsExtendedBy(other)
}
// ActivityStreamsReadIsExtendedBy returns true if the other's type extends from
// Read. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func ActivityStreamsReadIsExtendedBy(other vocab.Type) bool {
return typeread.ReadIsExtendedBy(other)
}
// ActivityStreamsRejectIsExtendedBy returns true if the other's type extends from
// Reject. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func ActivityStreamsRejectIsExtendedBy(other vocab.Type) bool {
return typereject.RejectIsExtendedBy(other)
}
// ActivityStreamsRelationshipIsExtendedBy returns true if the other's type
// extends from Relationship. Note that it returns false if the types are the
// same; see the "IsOrExtends" variant instead.
func ActivityStreamsRelationshipIsExtendedBy(other vocab.Type) bool {
return typerelationship.RelationshipIsExtendedBy(other)
}
// ActivityStreamsRemoveIsExtendedBy returns true if the other's type extends from
// Remove. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func ActivityStreamsRemoveIsExtendedBy(other vocab.Type) bool {
return typeremove.RemoveIsExtendedBy(other)
}
// ActivityStreamsServiceIsExtendedBy returns true if the other's type extends
// from Service. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func ActivityStreamsServiceIsExtendedBy(other vocab.Type) bool {
return typeservice.ServiceIsExtendedBy(other)
}
// ActivityStreamsTentativeAcceptIsExtendedBy returns true if the other's type
// extends from TentativeAccept. Note that it returns false if the types are
// the same; see the "IsOrExtends" variant instead.
func ActivityStreamsTentativeAcceptIsExtendedBy(other vocab.Type) bool {
return typetentativeaccept.TentativeAcceptIsExtendedBy(other)
}
// ActivityStreamsTentativeRejectIsExtendedBy returns true if the other's type
// extends from TentativeReject. Note that it returns false if the types are
// the same; see the "IsOrExtends" variant instead.
func ActivityStreamsTentativeRejectIsExtendedBy(other vocab.Type) bool {
return typetentativereject.TentativeRejectIsExtendedBy(other)
}
// ActivityStreamsTombstoneIsExtendedBy returns true if the other's type extends
// from Tombstone. Note that it returns false if the types are the same; see
// the "IsOrExtends" variant instead.
func ActivityStreamsTombstoneIsExtendedBy(other vocab.Type) bool {
return typetombstone.TombstoneIsExtendedBy(other)
}
// ActivityStreamsTravelIsExtendedBy returns true if the other's type extends from
// Travel. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func ActivityStreamsTravelIsExtendedBy(other vocab.Type) bool {
return typetravel.TravelIsExtendedBy(other)
}
// ActivityStreamsUndoIsExtendedBy returns true if the other's type extends from
// Undo. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func ActivityStreamsUndoIsExtendedBy(other vocab.Type) bool {
return typeundo.UndoIsExtendedBy(other)
}
// ActivityStreamsUpdateIsExtendedBy returns true if the other's type extends from
// Update. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func ActivityStreamsUpdateIsExtendedBy(other vocab.Type) bool {
return typeupdate.UpdateIsExtendedBy(other)
}
// ActivityStreamsVideoIsExtendedBy returns true if the other's type extends from
// Video. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func ActivityStreamsVideoIsExtendedBy(other vocab.Type) bool {
return typevideo.VideoIsExtendedBy(other)
}
// ActivityStreamsViewIsExtendedBy returns true if the other's type extends from
// View. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func ActivityStreamsViewIsExtendedBy(other vocab.Type) bool {
return typeview.ViewIsExtendedBy(other)
}

View File

@@ -1,392 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package streams
import (
typeaccept "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_accept"
typeactivity "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_activity"
typeadd "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_add"
typeannounce "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_announce"
typeapplication "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_application"
typearrive "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_arrive"
typearticle "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_article"
typeaudio "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_audio"
typeblock "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_block"
typecollection "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collection"
typecollectionpage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collectionpage"
typecreate "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_create"
typedelete "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_delete"
typedislike "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_dislike"
typedocument "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_document"
typeendpoints "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_endpoints"
typeevent "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_event"
typeflag "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_flag"
typefollow "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_follow"
typegroup "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_group"
typeignore "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_ignore"
typeimage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_image"
typeintransitiveactivity "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_intransitiveactivity"
typeinvite "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_invite"
typejoin "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_join"
typeleave "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_leave"
typelike "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_like"
typelink "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_link"
typelisten "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_listen"
typemention "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_mention"
typemove "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_move"
typenote "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_note"
typeobject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_object"
typeoffer "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_offer"
typeorderedcollection "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollection"
typeorderedcollectionpage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollectionpage"
typeorganization "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_organization"
typepage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_page"
typeperson "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_person"
typeplace "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_place"
typeprofile "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_profile"
typequestion "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_question"
typeread "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_read"
typereject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_reject"
typerelationship "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_relationship"
typeremove "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_remove"
typeservice "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_service"
typetentativeaccept "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativeaccept"
typetentativereject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativereject"
typetombstone "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tombstone"
typetravel "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_travel"
typeundo "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_undo"
typeupdate "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_update"
typevideo "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_video"
typeview "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_view"
vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
)
// ActivityStreamsActivityStreamsAcceptExtends returns true if Accept extends from
// the other's type.
func ActivityStreamsActivityStreamsAcceptExtends(other vocab.Type) bool {
return typeaccept.ActivityStreamsAcceptExtends(other)
}
// ActivityStreamsActivityStreamsActivityExtends returns true if Activity extends
// from the other's type.
func ActivityStreamsActivityStreamsActivityExtends(other vocab.Type) bool {
return typeactivity.ActivityStreamsActivityExtends(other)
}
// ActivityStreamsActivityStreamsAddExtends returns true if Add extends from the
// other's type.
func ActivityStreamsActivityStreamsAddExtends(other vocab.Type) bool {
return typeadd.ActivityStreamsAddExtends(other)
}
// ActivityStreamsActivityStreamsAnnounceExtends returns true if Announce extends
// from the other's type.
func ActivityStreamsActivityStreamsAnnounceExtends(other vocab.Type) bool {
return typeannounce.ActivityStreamsAnnounceExtends(other)
}
// ActivityStreamsActivityStreamsApplicationExtends returns true if Application
// extends from the other's type.
func ActivityStreamsActivityStreamsApplicationExtends(other vocab.Type) bool {
return typeapplication.ActivityStreamsApplicationExtends(other)
}
// ActivityStreamsActivityStreamsArriveExtends returns true if Arrive extends from
// the other's type.
func ActivityStreamsActivityStreamsArriveExtends(other vocab.Type) bool {
return typearrive.ActivityStreamsArriveExtends(other)
}
// ActivityStreamsActivityStreamsArticleExtends returns true if Article extends
// from the other's type.
func ActivityStreamsActivityStreamsArticleExtends(other vocab.Type) bool {
return typearticle.ActivityStreamsArticleExtends(other)
}
// ActivityStreamsActivityStreamsAudioExtends returns true if Audio extends from
// the other's type.
func ActivityStreamsActivityStreamsAudioExtends(other vocab.Type) bool {
return typeaudio.ActivityStreamsAudioExtends(other)
}
// ActivityStreamsActivityStreamsBlockExtends returns true if Block extends from
// the other's type.
func ActivityStreamsActivityStreamsBlockExtends(other vocab.Type) bool {
return typeblock.ActivityStreamsBlockExtends(other)
}
// ActivityStreamsActivityStreamsCollectionExtends returns true if Collection
// extends from the other's type.
func ActivityStreamsActivityStreamsCollectionExtends(other vocab.Type) bool {
return typecollection.ActivityStreamsCollectionExtends(other)
}
// ActivityStreamsActivityStreamsCollectionPageExtends returns true if
// CollectionPage extends from the other's type.
func ActivityStreamsActivityStreamsCollectionPageExtends(other vocab.Type) bool {
return typecollectionpage.ActivityStreamsCollectionPageExtends(other)
}
// ActivityStreamsActivityStreamsCreateExtends returns true if Create extends from
// the other's type.
func ActivityStreamsActivityStreamsCreateExtends(other vocab.Type) bool {
return typecreate.ActivityStreamsCreateExtends(other)
}
// ActivityStreamsActivityStreamsDeleteExtends returns true if Delete extends from
// the other's type.
func ActivityStreamsActivityStreamsDeleteExtends(other vocab.Type) bool {
return typedelete.ActivityStreamsDeleteExtends(other)
}
// ActivityStreamsActivityStreamsDislikeExtends returns true if Dislike extends
// from the other's type.
func ActivityStreamsActivityStreamsDislikeExtends(other vocab.Type) bool {
return typedislike.ActivityStreamsDislikeExtends(other)
}
// ActivityStreamsActivityStreamsDocumentExtends returns true if Document extends
// from the other's type.
func ActivityStreamsActivityStreamsDocumentExtends(other vocab.Type) bool {
return typedocument.ActivityStreamsDocumentExtends(other)
}
// ActivityStreamsActivityStreamsEndpointsExtends returns true if Endpoints
// extends from the other's type.
func ActivityStreamsActivityStreamsEndpointsExtends(other vocab.Type) bool {
return typeendpoints.ActivityStreamsEndpointsExtends(other)
}
// ActivityStreamsActivityStreamsEventExtends returns true if Event extends from
// the other's type.
func ActivityStreamsActivityStreamsEventExtends(other vocab.Type) bool {
return typeevent.ActivityStreamsEventExtends(other)
}
// ActivityStreamsActivityStreamsFlagExtends returns true if Flag extends from the
// other's type.
func ActivityStreamsActivityStreamsFlagExtends(other vocab.Type) bool {
return typeflag.ActivityStreamsFlagExtends(other)
}
// ActivityStreamsActivityStreamsFollowExtends returns true if Follow extends from
// the other's type.
func ActivityStreamsActivityStreamsFollowExtends(other vocab.Type) bool {
return typefollow.ActivityStreamsFollowExtends(other)
}
// ActivityStreamsActivityStreamsGroupExtends returns true if Group extends from
// the other's type.
func ActivityStreamsActivityStreamsGroupExtends(other vocab.Type) bool {
return typegroup.ActivityStreamsGroupExtends(other)
}
// ActivityStreamsActivityStreamsIgnoreExtends returns true if Ignore extends from
// the other's type.
func ActivityStreamsActivityStreamsIgnoreExtends(other vocab.Type) bool {
return typeignore.ActivityStreamsIgnoreExtends(other)
}
// ActivityStreamsActivityStreamsImageExtends returns true if Image extends from
// the other's type.
func ActivityStreamsActivityStreamsImageExtends(other vocab.Type) bool {
return typeimage.ActivityStreamsImageExtends(other)
}
// ActivityStreamsActivityStreamsIntransitiveActivityExtends returns true if
// IntransitiveActivity extends from the other's type.
func ActivityStreamsActivityStreamsIntransitiveActivityExtends(other vocab.Type) bool {
return typeintransitiveactivity.ActivityStreamsIntransitiveActivityExtends(other)
}
// ActivityStreamsActivityStreamsInviteExtends returns true if Invite extends from
// the other's type.
func ActivityStreamsActivityStreamsInviteExtends(other vocab.Type) bool {
return typeinvite.ActivityStreamsInviteExtends(other)
}
// ActivityStreamsActivityStreamsJoinExtends returns true if Join extends from the
// other's type.
func ActivityStreamsActivityStreamsJoinExtends(other vocab.Type) bool {
return typejoin.ActivityStreamsJoinExtends(other)
}
// ActivityStreamsActivityStreamsLeaveExtends returns true if Leave extends from
// the other's type.
func ActivityStreamsActivityStreamsLeaveExtends(other vocab.Type) bool {
return typeleave.ActivityStreamsLeaveExtends(other)
}
// ActivityStreamsActivityStreamsLikeExtends returns true if Like extends from the
// other's type.
func ActivityStreamsActivityStreamsLikeExtends(other vocab.Type) bool {
return typelike.ActivityStreamsLikeExtends(other)
}
// ActivityStreamsActivityStreamsLinkExtends returns true if Link extends from the
// other's type.
func ActivityStreamsActivityStreamsLinkExtends(other vocab.Type) bool {
return typelink.ActivityStreamsLinkExtends(other)
}
// ActivityStreamsActivityStreamsListenExtends returns true if Listen extends from
// the other's type.
func ActivityStreamsActivityStreamsListenExtends(other vocab.Type) bool {
return typelisten.ActivityStreamsListenExtends(other)
}
// ActivityStreamsActivityStreamsMentionExtends returns true if Mention extends
// from the other's type.
func ActivityStreamsActivityStreamsMentionExtends(other vocab.Type) bool {
return typemention.ActivityStreamsMentionExtends(other)
}
// ActivityStreamsActivityStreamsMoveExtends returns true if Move extends from the
// other's type.
func ActivityStreamsActivityStreamsMoveExtends(other vocab.Type) bool {
return typemove.ActivityStreamsMoveExtends(other)
}
// ActivityStreamsActivityStreamsNoteExtends returns true if Note extends from the
// other's type.
func ActivityStreamsActivityStreamsNoteExtends(other vocab.Type) bool {
return typenote.ActivityStreamsNoteExtends(other)
}
// ActivityStreamsActivityStreamsObjectExtends returns true if Object extends from
// the other's type.
func ActivityStreamsActivityStreamsObjectExtends(other vocab.Type) bool {
return typeobject.ActivityStreamsObjectExtends(other)
}
// ActivityStreamsActivityStreamsOfferExtends returns true if Offer extends from
// the other's type.
func ActivityStreamsActivityStreamsOfferExtends(other vocab.Type) bool {
return typeoffer.ActivityStreamsOfferExtends(other)
}
// ActivityStreamsActivityStreamsOrderedCollectionExtends returns true if
// OrderedCollection extends from the other's type.
func ActivityStreamsActivityStreamsOrderedCollectionExtends(other vocab.Type) bool {
return typeorderedcollection.ActivityStreamsOrderedCollectionExtends(other)
}
// ActivityStreamsActivityStreamsOrderedCollectionPageExtends returns true if
// OrderedCollectionPage extends from the other's type.
func ActivityStreamsActivityStreamsOrderedCollectionPageExtends(other vocab.Type) bool {
return typeorderedcollectionpage.ActivityStreamsOrderedCollectionPageExtends(other)
}
// ActivityStreamsActivityStreamsOrganizationExtends returns true if Organization
// extends from the other's type.
func ActivityStreamsActivityStreamsOrganizationExtends(other vocab.Type) bool {
return typeorganization.ActivityStreamsOrganizationExtends(other)
}
// ActivityStreamsActivityStreamsPageExtends returns true if Page extends from the
// other's type.
func ActivityStreamsActivityStreamsPageExtends(other vocab.Type) bool {
return typepage.ActivityStreamsPageExtends(other)
}
// ActivityStreamsActivityStreamsPersonExtends returns true if Person extends from
// the other's type.
func ActivityStreamsActivityStreamsPersonExtends(other vocab.Type) bool {
return typeperson.ActivityStreamsPersonExtends(other)
}
// ActivityStreamsActivityStreamsPlaceExtends returns true if Place extends from
// the other's type.
func ActivityStreamsActivityStreamsPlaceExtends(other vocab.Type) bool {
return typeplace.ActivityStreamsPlaceExtends(other)
}
// ActivityStreamsActivityStreamsProfileExtends returns true if Profile extends
// from the other's type.
func ActivityStreamsActivityStreamsProfileExtends(other vocab.Type) bool {
return typeprofile.ActivityStreamsProfileExtends(other)
}
// ActivityStreamsActivityStreamsQuestionExtends returns true if Question extends
// from the other's type.
func ActivityStreamsActivityStreamsQuestionExtends(other vocab.Type) bool {
return typequestion.ActivityStreamsQuestionExtends(other)
}
// ActivityStreamsActivityStreamsReadExtends returns true if Read extends from the
// other's type.
func ActivityStreamsActivityStreamsReadExtends(other vocab.Type) bool {
return typeread.ActivityStreamsReadExtends(other)
}
// ActivityStreamsActivityStreamsRejectExtends returns true if Reject extends from
// the other's type.
func ActivityStreamsActivityStreamsRejectExtends(other vocab.Type) bool {
return typereject.ActivityStreamsRejectExtends(other)
}
// ActivityStreamsActivityStreamsRelationshipExtends returns true if Relationship
// extends from the other's type.
func ActivityStreamsActivityStreamsRelationshipExtends(other vocab.Type) bool {
return typerelationship.ActivityStreamsRelationshipExtends(other)
}
// ActivityStreamsActivityStreamsRemoveExtends returns true if Remove extends from
// the other's type.
func ActivityStreamsActivityStreamsRemoveExtends(other vocab.Type) bool {
return typeremove.ActivityStreamsRemoveExtends(other)
}
// ActivityStreamsActivityStreamsServiceExtends returns true if Service extends
// from the other's type.
func ActivityStreamsActivityStreamsServiceExtends(other vocab.Type) bool {
return typeservice.ActivityStreamsServiceExtends(other)
}
// ActivityStreamsActivityStreamsTentativeAcceptExtends returns true if
// TentativeAccept extends from the other's type.
func ActivityStreamsActivityStreamsTentativeAcceptExtends(other vocab.Type) bool {
return typetentativeaccept.ActivityStreamsTentativeAcceptExtends(other)
}
// ActivityStreamsActivityStreamsTentativeRejectExtends returns true if
// TentativeReject extends from the other's type.
func ActivityStreamsActivityStreamsTentativeRejectExtends(other vocab.Type) bool {
return typetentativereject.ActivityStreamsTentativeRejectExtends(other)
}
// ActivityStreamsActivityStreamsTombstoneExtends returns true if Tombstone
// extends from the other's type.
func ActivityStreamsActivityStreamsTombstoneExtends(other vocab.Type) bool {
return typetombstone.ActivityStreamsTombstoneExtends(other)
}
// ActivityStreamsActivityStreamsTravelExtends returns true if Travel extends from
// the other's type.
func ActivityStreamsActivityStreamsTravelExtends(other vocab.Type) bool {
return typetravel.ActivityStreamsTravelExtends(other)
}
// ActivityStreamsActivityStreamsUndoExtends returns true if Undo extends from the
// other's type.
func ActivityStreamsActivityStreamsUndoExtends(other vocab.Type) bool {
return typeundo.ActivityStreamsUndoExtends(other)
}
// ActivityStreamsActivityStreamsUpdateExtends returns true if Update extends from
// the other's type.
func ActivityStreamsActivityStreamsUpdateExtends(other vocab.Type) bool {
return typeupdate.ActivityStreamsUpdateExtends(other)
}
// ActivityStreamsActivityStreamsVideoExtends returns true if Video extends from
// the other's type.
func ActivityStreamsActivityStreamsVideoExtends(other vocab.Type) bool {
return typevideo.ActivityStreamsVideoExtends(other)
}
// ActivityStreamsActivityStreamsViewExtends returns true if View extends from the
// other's type.
func ActivityStreamsActivityStreamsViewExtends(other vocab.Type) bool {
return typeview.ActivityStreamsViewExtends(other)
}

View File

@@ -1,395 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package streams
import (
typeaccept "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_accept"
typeactivity "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_activity"
typeadd "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_add"
typeannounce "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_announce"
typeapplication "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_application"
typearrive "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_arrive"
typearticle "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_article"
typeaudio "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_audio"
typeblock "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_block"
typecollection "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collection"
typecollectionpage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collectionpage"
typecreate "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_create"
typedelete "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_delete"
typedislike "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_dislike"
typedocument "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_document"
typeendpoints "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_endpoints"
typeevent "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_event"
typeflag "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_flag"
typefollow "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_follow"
typegroup "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_group"
typeignore "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_ignore"
typeimage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_image"
typeintransitiveactivity "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_intransitiveactivity"
typeinvite "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_invite"
typejoin "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_join"
typeleave "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_leave"
typelike "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_like"
typelink "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_link"
typelisten "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_listen"
typemention "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_mention"
typemove "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_move"
typenote "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_note"
typeobject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_object"
typeoffer "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_offer"
typeorderedcollection "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollection"
typeorderedcollectionpage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollectionpage"
typeorganization "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_organization"
typepage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_page"
typeperson "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_person"
typeplace "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_place"
typeprofile "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_profile"
typequestion "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_question"
typeread "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_read"
typereject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_reject"
typerelationship "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_relationship"
typeremove "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_remove"
typeservice "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_service"
typetentativeaccept "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativeaccept"
typetentativereject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativereject"
typetombstone "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tombstone"
typetravel "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_travel"
typeundo "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_undo"
typeupdate "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_update"
typevideo "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_video"
typeview "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_view"
vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
)
// IsOrExtendsActivityStreamsAccept returns true if the other provided type is the
// Accept type or extends from the Accept type.
func IsOrExtendsActivityStreamsAccept(other vocab.Type) bool {
return typeaccept.IsOrExtendsAccept(other)
}
// IsOrExtendsActivityStreamsActivity returns true if the other provided type is
// the Activity type or extends from the Activity type.
func IsOrExtendsActivityStreamsActivity(other vocab.Type) bool {
return typeactivity.IsOrExtendsActivity(other)
}
// IsOrExtendsActivityStreamsAdd returns true if the other provided type is the
// Add type or extends from the Add type.
func IsOrExtendsActivityStreamsAdd(other vocab.Type) bool {
return typeadd.IsOrExtendsAdd(other)
}
// IsOrExtendsActivityStreamsAnnounce returns true if the other provided type is
// the Announce type or extends from the Announce type.
func IsOrExtendsActivityStreamsAnnounce(other vocab.Type) bool {
return typeannounce.IsOrExtendsAnnounce(other)
}
// IsOrExtendsActivityStreamsApplication returns true if the other provided type
// is the Application type or extends from the Application type.
func IsOrExtendsActivityStreamsApplication(other vocab.Type) bool {
return typeapplication.IsOrExtendsApplication(other)
}
// IsOrExtendsActivityStreamsArrive returns true if the other provided type is the
// Arrive type or extends from the Arrive type.
func IsOrExtendsActivityStreamsArrive(other vocab.Type) bool {
return typearrive.IsOrExtendsArrive(other)
}
// IsOrExtendsActivityStreamsArticle returns true if the other provided type is
// the Article type or extends from the Article type.
func IsOrExtendsActivityStreamsArticle(other vocab.Type) bool {
return typearticle.IsOrExtendsArticle(other)
}
// IsOrExtendsActivityStreamsAudio returns true if the other provided type is the
// Audio type or extends from the Audio type.
func IsOrExtendsActivityStreamsAudio(other vocab.Type) bool {
return typeaudio.IsOrExtendsAudio(other)
}
// IsOrExtendsActivityStreamsBlock returns true if the other provided type is the
// Block type or extends from the Block type.
func IsOrExtendsActivityStreamsBlock(other vocab.Type) bool {
return typeblock.IsOrExtendsBlock(other)
}
// IsOrExtendsActivityStreamsCollection returns true if the other provided type is
// the Collection type or extends from the Collection type.
func IsOrExtendsActivityStreamsCollection(other vocab.Type) bool {
return typecollection.IsOrExtendsCollection(other)
}
// IsOrExtendsActivityStreamsCollectionPage returns true if the other provided
// type is the CollectionPage type or extends from the CollectionPage type.
func IsOrExtendsActivityStreamsCollectionPage(other vocab.Type) bool {
return typecollectionpage.IsOrExtendsCollectionPage(other)
}
// IsOrExtendsActivityStreamsCreate returns true if the other provided type is the
// Create type or extends from the Create type.
func IsOrExtendsActivityStreamsCreate(other vocab.Type) bool {
return typecreate.IsOrExtendsCreate(other)
}
// IsOrExtendsActivityStreamsDelete returns true if the other provided type is the
// Delete type or extends from the Delete type.
func IsOrExtendsActivityStreamsDelete(other vocab.Type) bool {
return typedelete.IsOrExtendsDelete(other)
}
// IsOrExtendsActivityStreamsDislike returns true if the other provided type is
// the Dislike type or extends from the Dislike type.
func IsOrExtendsActivityStreamsDislike(other vocab.Type) bool {
return typedislike.IsOrExtendsDislike(other)
}
// IsOrExtendsActivityStreamsDocument returns true if the other provided type is
// the Document type or extends from the Document type.
func IsOrExtendsActivityStreamsDocument(other vocab.Type) bool {
return typedocument.IsOrExtendsDocument(other)
}
// IsOrExtendsActivityStreamsEndpoints returns true if the other provided type is
// the Endpoints type or extends from the Endpoints type.
func IsOrExtendsActivityStreamsEndpoints(other vocab.Type) bool {
return typeendpoints.IsOrExtendsEndpoints(other)
}
// IsOrExtendsActivityStreamsEvent returns true if the other provided type is the
// Event type or extends from the Event type.
func IsOrExtendsActivityStreamsEvent(other vocab.Type) bool {
return typeevent.IsOrExtendsEvent(other)
}
// IsOrExtendsActivityStreamsFlag returns true if the other provided type is the
// Flag type or extends from the Flag type.
func IsOrExtendsActivityStreamsFlag(other vocab.Type) bool {
return typeflag.IsOrExtendsFlag(other)
}
// IsOrExtendsActivityStreamsFollow returns true if the other provided type is the
// Follow type or extends from the Follow type.
func IsOrExtendsActivityStreamsFollow(other vocab.Type) bool {
return typefollow.IsOrExtendsFollow(other)
}
// IsOrExtendsActivityStreamsGroup returns true if the other provided type is the
// Group type or extends from the Group type.
func IsOrExtendsActivityStreamsGroup(other vocab.Type) bool {
return typegroup.IsOrExtendsGroup(other)
}
// IsOrExtendsActivityStreamsIgnore returns true if the other provided type is the
// Ignore type or extends from the Ignore type.
func IsOrExtendsActivityStreamsIgnore(other vocab.Type) bool {
return typeignore.IsOrExtendsIgnore(other)
}
// IsOrExtendsActivityStreamsImage returns true if the other provided type is the
// Image type or extends from the Image type.
func IsOrExtendsActivityStreamsImage(other vocab.Type) bool {
return typeimage.IsOrExtendsImage(other)
}
// IsOrExtendsActivityStreamsIntransitiveActivity returns true if the other
// provided type is the IntransitiveActivity type or extends from the
// IntransitiveActivity type.
func IsOrExtendsActivityStreamsIntransitiveActivity(other vocab.Type) bool {
return typeintransitiveactivity.IsOrExtendsIntransitiveActivity(other)
}
// IsOrExtendsActivityStreamsInvite returns true if the other provided type is the
// Invite type or extends from the Invite type.
func IsOrExtendsActivityStreamsInvite(other vocab.Type) bool {
return typeinvite.IsOrExtendsInvite(other)
}
// IsOrExtendsActivityStreamsJoin returns true if the other provided type is the
// Join type or extends from the Join type.
func IsOrExtendsActivityStreamsJoin(other vocab.Type) bool {
return typejoin.IsOrExtendsJoin(other)
}
// IsOrExtendsActivityStreamsLeave returns true if the other provided type is the
// Leave type or extends from the Leave type.
func IsOrExtendsActivityStreamsLeave(other vocab.Type) bool {
return typeleave.IsOrExtendsLeave(other)
}
// IsOrExtendsActivityStreamsLike returns true if the other provided type is the
// Like type or extends from the Like type.
func IsOrExtendsActivityStreamsLike(other vocab.Type) bool {
return typelike.IsOrExtendsLike(other)
}
// IsOrExtendsActivityStreamsLink returns true if the other provided type is the
// Link type or extends from the Link type.
func IsOrExtendsActivityStreamsLink(other vocab.Type) bool {
return typelink.IsOrExtendsLink(other)
}
// IsOrExtendsActivityStreamsListen returns true if the other provided type is the
// Listen type or extends from the Listen type.
func IsOrExtendsActivityStreamsListen(other vocab.Type) bool {
return typelisten.IsOrExtendsListen(other)
}
// IsOrExtendsActivityStreamsMention returns true if the other provided type is
// the Mention type or extends from the Mention type.
func IsOrExtendsActivityStreamsMention(other vocab.Type) bool {
return typemention.IsOrExtendsMention(other)
}
// IsOrExtendsActivityStreamsMove returns true if the other provided type is the
// Move type or extends from the Move type.
func IsOrExtendsActivityStreamsMove(other vocab.Type) bool {
return typemove.IsOrExtendsMove(other)
}
// IsOrExtendsActivityStreamsNote returns true if the other provided type is the
// Note type or extends from the Note type.
func IsOrExtendsActivityStreamsNote(other vocab.Type) bool {
return typenote.IsOrExtendsNote(other)
}
// IsOrExtendsActivityStreamsObject returns true if the other provided type is the
// Object type or extends from the Object type.
func IsOrExtendsActivityStreamsObject(other vocab.Type) bool {
return typeobject.IsOrExtendsObject(other)
}
// IsOrExtendsActivityStreamsOffer returns true if the other provided type is the
// Offer type or extends from the Offer type.
func IsOrExtendsActivityStreamsOffer(other vocab.Type) bool {
return typeoffer.IsOrExtendsOffer(other)
}
// IsOrExtendsActivityStreamsOrderedCollection returns true if the other provided
// type is the OrderedCollection type or extends from the OrderedCollection
// type.
func IsOrExtendsActivityStreamsOrderedCollection(other vocab.Type) bool {
return typeorderedcollection.IsOrExtendsOrderedCollection(other)
}
// IsOrExtendsActivityStreamsOrderedCollectionPage returns true if the other
// provided type is the OrderedCollectionPage type or extends from the
// OrderedCollectionPage type.
func IsOrExtendsActivityStreamsOrderedCollectionPage(other vocab.Type) bool {
return typeorderedcollectionpage.IsOrExtendsOrderedCollectionPage(other)
}
// IsOrExtendsActivityStreamsOrganization returns true if the other provided type
// is the Organization type or extends from the Organization type.
func IsOrExtendsActivityStreamsOrganization(other vocab.Type) bool {
return typeorganization.IsOrExtendsOrganization(other)
}
// IsOrExtendsActivityStreamsPage returns true if the other provided type is the
// Page type or extends from the Page type.
func IsOrExtendsActivityStreamsPage(other vocab.Type) bool {
return typepage.IsOrExtendsPage(other)
}
// IsOrExtendsActivityStreamsPerson returns true if the other provided type is the
// Person type or extends from the Person type.
func IsOrExtendsActivityStreamsPerson(other vocab.Type) bool {
return typeperson.IsOrExtendsPerson(other)
}
// IsOrExtendsActivityStreamsPlace returns true if the other provided type is the
// Place type or extends from the Place type.
func IsOrExtendsActivityStreamsPlace(other vocab.Type) bool {
return typeplace.IsOrExtendsPlace(other)
}
// IsOrExtendsActivityStreamsProfile returns true if the other provided type is
// the Profile type or extends from the Profile type.
func IsOrExtendsActivityStreamsProfile(other vocab.Type) bool {
return typeprofile.IsOrExtendsProfile(other)
}
// IsOrExtendsActivityStreamsQuestion returns true if the other provided type is
// the Question type or extends from the Question type.
func IsOrExtendsActivityStreamsQuestion(other vocab.Type) bool {
return typequestion.IsOrExtendsQuestion(other)
}
// IsOrExtendsActivityStreamsRead returns true if the other provided type is the
// Read type or extends from the Read type.
func IsOrExtendsActivityStreamsRead(other vocab.Type) bool {
return typeread.IsOrExtendsRead(other)
}
// IsOrExtendsActivityStreamsReject returns true if the other provided type is the
// Reject type or extends from the Reject type.
func IsOrExtendsActivityStreamsReject(other vocab.Type) bool {
return typereject.IsOrExtendsReject(other)
}
// IsOrExtendsActivityStreamsRelationship returns true if the other provided type
// is the Relationship type or extends from the Relationship type.
func IsOrExtendsActivityStreamsRelationship(other vocab.Type) bool {
return typerelationship.IsOrExtendsRelationship(other)
}
// IsOrExtendsActivityStreamsRemove returns true if the other provided type is the
// Remove type or extends from the Remove type.
func IsOrExtendsActivityStreamsRemove(other vocab.Type) bool {
return typeremove.IsOrExtendsRemove(other)
}
// IsOrExtendsActivityStreamsService returns true if the other provided type is
// the Service type or extends from the Service type.
func IsOrExtendsActivityStreamsService(other vocab.Type) bool {
return typeservice.IsOrExtendsService(other)
}
// IsOrExtendsActivityStreamsTentativeAccept returns true if the other provided
// type is the TentativeAccept type or extends from the TentativeAccept type.
func IsOrExtendsActivityStreamsTentativeAccept(other vocab.Type) bool {
return typetentativeaccept.IsOrExtendsTentativeAccept(other)
}
// IsOrExtendsActivityStreamsTentativeReject returns true if the other provided
// type is the TentativeReject type or extends from the TentativeReject type.
func IsOrExtendsActivityStreamsTentativeReject(other vocab.Type) bool {
return typetentativereject.IsOrExtendsTentativeReject(other)
}
// IsOrExtendsActivityStreamsTombstone returns true if the other provided type is
// the Tombstone type or extends from the Tombstone type.
func IsOrExtendsActivityStreamsTombstone(other vocab.Type) bool {
return typetombstone.IsOrExtendsTombstone(other)
}
// IsOrExtendsActivityStreamsTravel returns true if the other provided type is the
// Travel type or extends from the Travel type.
func IsOrExtendsActivityStreamsTravel(other vocab.Type) bool {
return typetravel.IsOrExtendsTravel(other)
}
// IsOrExtendsActivityStreamsUndo returns true if the other provided type is the
// Undo type or extends from the Undo type.
func IsOrExtendsActivityStreamsUndo(other vocab.Type) bool {
return typeundo.IsOrExtendsUndo(other)
}
// IsOrExtendsActivityStreamsUpdate returns true if the other provided type is the
// Update type or extends from the Update type.
func IsOrExtendsActivityStreamsUpdate(other vocab.Type) bool {
return typeupdate.IsOrExtendsUpdate(other)
}
// IsOrExtendsActivityStreamsVideo returns true if the other provided type is the
// Video type or extends from the Video type.
func IsOrExtendsActivityStreamsVideo(other vocab.Type) bool {
return typevideo.IsOrExtendsVideo(other)
}
// IsOrExtendsActivityStreamsView returns true if the other provided type is the
// View type or extends from the View type.
func IsOrExtendsActivityStreamsView(other vocab.Type) bool {
return typeview.IsOrExtendsView(other)
}

View File

@@ -1,546 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package streams
import (
propertyaccuracy "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_accuracy"
propertyactor "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_actor"
propertyalsoknownas "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_alsoknownas"
propertyaltitude "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_altitude"
propertyanyof "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_anyof"
propertyattachment "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attachment"
propertyattributedto "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attributedto"
propertyaudience "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_audience"
propertybcc "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bcc"
propertybto "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bto"
propertycc "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_cc"
propertyclosed "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_closed"
propertycontent "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_content"
propertycontext "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_context"
propertycurrent "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_current"
propertydeleted "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_deleted"
propertydescribes "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_describes"
propertyduration "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_duration"
propertyendpoints "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endpoints"
propertyendtime "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endtime"
propertyfirst "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_first"
propertyfollowers "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_followers"
propertyfollowing "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_following"
propertyformertype "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_formertype"
propertygenerator "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_generator"
propertyheight "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_height"
propertyhref "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_href"
propertyhreflang "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_hreflang"
propertyicon "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_icon"
propertyimage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_image"
propertyinbox "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inbox"
propertyinreplyto "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inreplyto"
propertyinstrument "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_instrument"
propertyitems "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_items"
propertylast "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_last"
propertylatitude "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_latitude"
propertyliked "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_liked"
propertylikes "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_likes"
propertylocation "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_location"
propertylongitude "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_longitude"
propertymanuallyapprovesfollowers "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers"
propertymediatype "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_mediatype"
propertymovedto "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_movedto"
propertyname "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_name"
propertynext "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_next"
propertyobject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_object"
propertyoneof "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_oneof"
propertyordereditems "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_ordereditems"
propertyorigin "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_origin"
propertyoutbox "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_outbox"
propertypartof "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_partof"
propertypreferredusername "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preferredusername"
propertyprev "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_prev"
propertypreview "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preview"
propertypublished "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_published"
propertyradius "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_radius"
propertyrel "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_rel"
propertyrelationship "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_relationship"
propertyreplies "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_replies"
propertyresult "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_result"
propertysensitive "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sensitive"
propertysharedinbox "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sharedinbox"
propertyshares "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_shares"
propertysource "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_source"
propertystartindex "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_startindex"
propertystarttime "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_starttime"
propertystreams "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_streams"
propertysubject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_subject"
propertysummary "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_summary"
propertytag "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_tag"
propertytarget "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_target"
propertyto "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_to"
propertytotalitems "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_totalitems"
propertyunits "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_units"
propertyupdated "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_updated"
propertyurl "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_url"
propertywidth "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_width"
vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
)
// NewActivityStreamsActivityStreamsAccuracyProperty creates a new
// ActivityStreamsAccuracyProperty
func NewActivityStreamsAccuracyProperty() vocab.ActivityStreamsAccuracyProperty {
return propertyaccuracy.NewActivityStreamsAccuracyProperty()
}
// NewActivityStreamsActivityStreamsActorProperty creates a new
// ActivityStreamsActorProperty
func NewActivityStreamsActorProperty() vocab.ActivityStreamsActorProperty {
return propertyactor.NewActivityStreamsActorProperty()
}
// NewActivityStreamsActivityStreamsAlsoKnownAsProperty creates a new
// ActivityStreamsAlsoKnownAsProperty
func NewActivityStreamsAlsoKnownAsProperty() vocab.ActivityStreamsAlsoKnownAsProperty {
return propertyalsoknownas.NewActivityStreamsAlsoKnownAsProperty()
}
// NewActivityStreamsActivityStreamsAltitudeProperty creates a new
// ActivityStreamsAltitudeProperty
func NewActivityStreamsAltitudeProperty() vocab.ActivityStreamsAltitudeProperty {
return propertyaltitude.NewActivityStreamsAltitudeProperty()
}
// NewActivityStreamsActivityStreamsAnyOfProperty creates a new
// ActivityStreamsAnyOfProperty
func NewActivityStreamsAnyOfProperty() vocab.ActivityStreamsAnyOfProperty {
return propertyanyof.NewActivityStreamsAnyOfProperty()
}
// NewActivityStreamsActivityStreamsAttachmentProperty creates a new
// ActivityStreamsAttachmentProperty
func NewActivityStreamsAttachmentProperty() vocab.ActivityStreamsAttachmentProperty {
return propertyattachment.NewActivityStreamsAttachmentProperty()
}
// NewActivityStreamsActivityStreamsAttributedToProperty creates a new
// ActivityStreamsAttributedToProperty
func NewActivityStreamsAttributedToProperty() vocab.ActivityStreamsAttributedToProperty {
return propertyattributedto.NewActivityStreamsAttributedToProperty()
}
// NewActivityStreamsActivityStreamsAudienceProperty creates a new
// ActivityStreamsAudienceProperty
func NewActivityStreamsAudienceProperty() vocab.ActivityStreamsAudienceProperty {
return propertyaudience.NewActivityStreamsAudienceProperty()
}
// NewActivityStreamsActivityStreamsBccProperty creates a new
// ActivityStreamsBccProperty
func NewActivityStreamsBccProperty() vocab.ActivityStreamsBccProperty {
return propertybcc.NewActivityStreamsBccProperty()
}
// NewActivityStreamsActivityStreamsBtoProperty creates a new
// ActivityStreamsBtoProperty
func NewActivityStreamsBtoProperty() vocab.ActivityStreamsBtoProperty {
return propertybto.NewActivityStreamsBtoProperty()
}
// NewActivityStreamsActivityStreamsCcProperty creates a new
// ActivityStreamsCcProperty
func NewActivityStreamsCcProperty() vocab.ActivityStreamsCcProperty {
return propertycc.NewActivityStreamsCcProperty()
}
// NewActivityStreamsActivityStreamsClosedProperty creates a new
// ActivityStreamsClosedProperty
func NewActivityStreamsClosedProperty() vocab.ActivityStreamsClosedProperty {
return propertyclosed.NewActivityStreamsClosedProperty()
}
// NewActivityStreamsActivityStreamsContentProperty creates a new
// ActivityStreamsContentProperty
func NewActivityStreamsContentProperty() vocab.ActivityStreamsContentProperty {
return propertycontent.NewActivityStreamsContentProperty()
}
// NewActivityStreamsActivityStreamsContextProperty creates a new
// ActivityStreamsContextProperty
func NewActivityStreamsContextProperty() vocab.ActivityStreamsContextProperty {
return propertycontext.NewActivityStreamsContextProperty()
}
// NewActivityStreamsActivityStreamsCurrentProperty creates a new
// ActivityStreamsCurrentProperty
func NewActivityStreamsCurrentProperty() vocab.ActivityStreamsCurrentProperty {
return propertycurrent.NewActivityStreamsCurrentProperty()
}
// NewActivityStreamsActivityStreamsDeletedProperty creates a new
// ActivityStreamsDeletedProperty
func NewActivityStreamsDeletedProperty() vocab.ActivityStreamsDeletedProperty {
return propertydeleted.NewActivityStreamsDeletedProperty()
}
// NewActivityStreamsActivityStreamsDescribesProperty creates a new
// ActivityStreamsDescribesProperty
func NewActivityStreamsDescribesProperty() vocab.ActivityStreamsDescribesProperty {
return propertydescribes.NewActivityStreamsDescribesProperty()
}
// NewActivityStreamsActivityStreamsDurationProperty creates a new
// ActivityStreamsDurationProperty
func NewActivityStreamsDurationProperty() vocab.ActivityStreamsDurationProperty {
return propertyduration.NewActivityStreamsDurationProperty()
}
// NewActivityStreamsActivityStreamsEndTimeProperty creates a new
// ActivityStreamsEndTimeProperty
func NewActivityStreamsEndTimeProperty() vocab.ActivityStreamsEndTimeProperty {
return propertyendtime.NewActivityStreamsEndTimeProperty()
}
// NewActivityStreamsActivityStreamsEndpointsProperty creates a new
// ActivityStreamsEndpointsProperty
func NewActivityStreamsEndpointsProperty() vocab.ActivityStreamsEndpointsProperty {
return propertyendpoints.NewActivityStreamsEndpointsProperty()
}
// NewActivityStreamsActivityStreamsFirstProperty creates a new
// ActivityStreamsFirstProperty
func NewActivityStreamsFirstProperty() vocab.ActivityStreamsFirstProperty {
return propertyfirst.NewActivityStreamsFirstProperty()
}
// NewActivityStreamsActivityStreamsFollowersProperty creates a new
// ActivityStreamsFollowersProperty
func NewActivityStreamsFollowersProperty() vocab.ActivityStreamsFollowersProperty {
return propertyfollowers.NewActivityStreamsFollowersProperty()
}
// NewActivityStreamsActivityStreamsFollowingProperty creates a new
// ActivityStreamsFollowingProperty
func NewActivityStreamsFollowingProperty() vocab.ActivityStreamsFollowingProperty {
return propertyfollowing.NewActivityStreamsFollowingProperty()
}
// NewActivityStreamsActivityStreamsFormerTypeProperty creates a new
// ActivityStreamsFormerTypeProperty
func NewActivityStreamsFormerTypeProperty() vocab.ActivityStreamsFormerTypeProperty {
return propertyformertype.NewActivityStreamsFormerTypeProperty()
}
// NewActivityStreamsActivityStreamsGeneratorProperty creates a new
// ActivityStreamsGeneratorProperty
func NewActivityStreamsGeneratorProperty() vocab.ActivityStreamsGeneratorProperty {
return propertygenerator.NewActivityStreamsGeneratorProperty()
}
// NewActivityStreamsActivityStreamsHeightProperty creates a new
// ActivityStreamsHeightProperty
func NewActivityStreamsHeightProperty() vocab.ActivityStreamsHeightProperty {
return propertyheight.NewActivityStreamsHeightProperty()
}
// NewActivityStreamsActivityStreamsHrefProperty creates a new
// ActivityStreamsHrefProperty
func NewActivityStreamsHrefProperty() vocab.ActivityStreamsHrefProperty {
return propertyhref.NewActivityStreamsHrefProperty()
}
// NewActivityStreamsActivityStreamsHreflangProperty creates a new
// ActivityStreamsHreflangProperty
func NewActivityStreamsHreflangProperty() vocab.ActivityStreamsHreflangProperty {
return propertyhreflang.NewActivityStreamsHreflangProperty()
}
// NewActivityStreamsActivityStreamsIconProperty creates a new
// ActivityStreamsIconProperty
func NewActivityStreamsIconProperty() vocab.ActivityStreamsIconProperty {
return propertyicon.NewActivityStreamsIconProperty()
}
// NewActivityStreamsActivityStreamsImageProperty creates a new
// ActivityStreamsImageProperty
func NewActivityStreamsImageProperty() vocab.ActivityStreamsImageProperty {
return propertyimage.NewActivityStreamsImageProperty()
}
// NewActivityStreamsActivityStreamsInReplyToProperty creates a new
// ActivityStreamsInReplyToProperty
func NewActivityStreamsInReplyToProperty() vocab.ActivityStreamsInReplyToProperty {
return propertyinreplyto.NewActivityStreamsInReplyToProperty()
}
// NewActivityStreamsActivityStreamsInboxProperty creates a new
// ActivityStreamsInboxProperty
func NewActivityStreamsInboxProperty() vocab.ActivityStreamsInboxProperty {
return propertyinbox.NewActivityStreamsInboxProperty()
}
// NewActivityStreamsActivityStreamsInstrumentProperty creates a new
// ActivityStreamsInstrumentProperty
func NewActivityStreamsInstrumentProperty() vocab.ActivityStreamsInstrumentProperty {
return propertyinstrument.NewActivityStreamsInstrumentProperty()
}
// NewActivityStreamsActivityStreamsItemsProperty creates a new
// ActivityStreamsItemsProperty
func NewActivityStreamsItemsProperty() vocab.ActivityStreamsItemsProperty {
return propertyitems.NewActivityStreamsItemsProperty()
}
// NewActivityStreamsActivityStreamsLastProperty creates a new
// ActivityStreamsLastProperty
func NewActivityStreamsLastProperty() vocab.ActivityStreamsLastProperty {
return propertylast.NewActivityStreamsLastProperty()
}
// NewActivityStreamsActivityStreamsLatitudeProperty creates a new
// ActivityStreamsLatitudeProperty
func NewActivityStreamsLatitudeProperty() vocab.ActivityStreamsLatitudeProperty {
return propertylatitude.NewActivityStreamsLatitudeProperty()
}
// NewActivityStreamsActivityStreamsLikedProperty creates a new
// ActivityStreamsLikedProperty
func NewActivityStreamsLikedProperty() vocab.ActivityStreamsLikedProperty {
return propertyliked.NewActivityStreamsLikedProperty()
}
// NewActivityStreamsActivityStreamsLikesProperty creates a new
// ActivityStreamsLikesProperty
func NewActivityStreamsLikesProperty() vocab.ActivityStreamsLikesProperty {
return propertylikes.NewActivityStreamsLikesProperty()
}
// NewActivityStreamsActivityStreamsLocationProperty creates a new
// ActivityStreamsLocationProperty
func NewActivityStreamsLocationProperty() vocab.ActivityStreamsLocationProperty {
return propertylocation.NewActivityStreamsLocationProperty()
}
// NewActivityStreamsActivityStreamsLongitudeProperty creates a new
// ActivityStreamsLongitudeProperty
func NewActivityStreamsLongitudeProperty() vocab.ActivityStreamsLongitudeProperty {
return propertylongitude.NewActivityStreamsLongitudeProperty()
}
// NewActivityStreamsActivityStreamsManuallyApprovesFollowersProperty creates a
// new ActivityStreamsManuallyApprovesFollowersProperty
func NewActivityStreamsManuallyApprovesFollowersProperty() vocab.ActivityStreamsManuallyApprovesFollowersProperty {
return propertymanuallyapprovesfollowers.NewActivityStreamsManuallyApprovesFollowersProperty()
}
// NewActivityStreamsActivityStreamsMediaTypeProperty creates a new
// ActivityStreamsMediaTypeProperty
func NewActivityStreamsMediaTypeProperty() vocab.ActivityStreamsMediaTypeProperty {
return propertymediatype.NewActivityStreamsMediaTypeProperty()
}
// NewActivityStreamsActivityStreamsMovedToProperty creates a new
// ActivityStreamsMovedToProperty
func NewActivityStreamsMovedToProperty() vocab.ActivityStreamsMovedToProperty {
return propertymovedto.NewActivityStreamsMovedToProperty()
}
// NewActivityStreamsActivityStreamsNameProperty creates a new
// ActivityStreamsNameProperty
func NewActivityStreamsNameProperty() vocab.ActivityStreamsNameProperty {
return propertyname.NewActivityStreamsNameProperty()
}
// NewActivityStreamsActivityStreamsNextProperty creates a new
// ActivityStreamsNextProperty
func NewActivityStreamsNextProperty() vocab.ActivityStreamsNextProperty {
return propertynext.NewActivityStreamsNextProperty()
}
// NewActivityStreamsActivityStreamsObjectProperty creates a new
// ActivityStreamsObjectProperty
func NewActivityStreamsObjectProperty() vocab.ActivityStreamsObjectProperty {
return propertyobject.NewActivityStreamsObjectProperty()
}
// NewActivityStreamsActivityStreamsOneOfProperty creates a new
// ActivityStreamsOneOfProperty
func NewActivityStreamsOneOfProperty() vocab.ActivityStreamsOneOfProperty {
return propertyoneof.NewActivityStreamsOneOfProperty()
}
// NewActivityStreamsActivityStreamsOrderedItemsProperty creates a new
// ActivityStreamsOrderedItemsProperty
func NewActivityStreamsOrderedItemsProperty() vocab.ActivityStreamsOrderedItemsProperty {
return propertyordereditems.NewActivityStreamsOrderedItemsProperty()
}
// NewActivityStreamsActivityStreamsOriginProperty creates a new
// ActivityStreamsOriginProperty
func NewActivityStreamsOriginProperty() vocab.ActivityStreamsOriginProperty {
return propertyorigin.NewActivityStreamsOriginProperty()
}
// NewActivityStreamsActivityStreamsOutboxProperty creates a new
// ActivityStreamsOutboxProperty
func NewActivityStreamsOutboxProperty() vocab.ActivityStreamsOutboxProperty {
return propertyoutbox.NewActivityStreamsOutboxProperty()
}
// NewActivityStreamsActivityStreamsPartOfProperty creates a new
// ActivityStreamsPartOfProperty
func NewActivityStreamsPartOfProperty() vocab.ActivityStreamsPartOfProperty {
return propertypartof.NewActivityStreamsPartOfProperty()
}
// NewActivityStreamsActivityStreamsPreferredUsernameProperty creates a new
// ActivityStreamsPreferredUsernameProperty
func NewActivityStreamsPreferredUsernameProperty() vocab.ActivityStreamsPreferredUsernameProperty {
return propertypreferredusername.NewActivityStreamsPreferredUsernameProperty()
}
// NewActivityStreamsActivityStreamsPrevProperty creates a new
// ActivityStreamsPrevProperty
func NewActivityStreamsPrevProperty() vocab.ActivityStreamsPrevProperty {
return propertyprev.NewActivityStreamsPrevProperty()
}
// NewActivityStreamsActivityStreamsPreviewProperty creates a new
// ActivityStreamsPreviewProperty
func NewActivityStreamsPreviewProperty() vocab.ActivityStreamsPreviewProperty {
return propertypreview.NewActivityStreamsPreviewProperty()
}
// NewActivityStreamsActivityStreamsPublishedProperty creates a new
// ActivityStreamsPublishedProperty
func NewActivityStreamsPublishedProperty() vocab.ActivityStreamsPublishedProperty {
return propertypublished.NewActivityStreamsPublishedProperty()
}
// NewActivityStreamsActivityStreamsRadiusProperty creates a new
// ActivityStreamsRadiusProperty
func NewActivityStreamsRadiusProperty() vocab.ActivityStreamsRadiusProperty {
return propertyradius.NewActivityStreamsRadiusProperty()
}
// NewActivityStreamsActivityStreamsRelProperty creates a new
// ActivityStreamsRelProperty
func NewActivityStreamsRelProperty() vocab.ActivityStreamsRelProperty {
return propertyrel.NewActivityStreamsRelProperty()
}
// NewActivityStreamsActivityStreamsRelationshipProperty creates a new
// ActivityStreamsRelationshipProperty
func NewActivityStreamsRelationshipProperty() vocab.ActivityStreamsRelationshipProperty {
return propertyrelationship.NewActivityStreamsRelationshipProperty()
}
// NewActivityStreamsActivityStreamsRepliesProperty creates a new
// ActivityStreamsRepliesProperty
func NewActivityStreamsRepliesProperty() vocab.ActivityStreamsRepliesProperty {
return propertyreplies.NewActivityStreamsRepliesProperty()
}
// NewActivityStreamsActivityStreamsResultProperty creates a new
// ActivityStreamsResultProperty
func NewActivityStreamsResultProperty() vocab.ActivityStreamsResultProperty {
return propertyresult.NewActivityStreamsResultProperty()
}
// NewActivityStreamsActivityStreamsSensitiveProperty creates a new
// ActivityStreamsSensitiveProperty
func NewActivityStreamsSensitiveProperty() vocab.ActivityStreamsSensitiveProperty {
return propertysensitive.NewActivityStreamsSensitiveProperty()
}
// NewActivityStreamsActivityStreamsSharedInboxProperty creates a new
// ActivityStreamsSharedInboxProperty
func NewActivityStreamsSharedInboxProperty() vocab.ActivityStreamsSharedInboxProperty {
return propertysharedinbox.NewActivityStreamsSharedInboxProperty()
}
// NewActivityStreamsActivityStreamsSharesProperty creates a new
// ActivityStreamsSharesProperty
func NewActivityStreamsSharesProperty() vocab.ActivityStreamsSharesProperty {
return propertyshares.NewActivityStreamsSharesProperty()
}
// NewActivityStreamsActivityStreamsSourceProperty creates a new
// ActivityStreamsSourceProperty
func NewActivityStreamsSourceProperty() vocab.ActivityStreamsSourceProperty {
return propertysource.NewActivityStreamsSourceProperty()
}
// NewActivityStreamsActivityStreamsStartIndexProperty creates a new
// ActivityStreamsStartIndexProperty
func NewActivityStreamsStartIndexProperty() vocab.ActivityStreamsStartIndexProperty {
return propertystartindex.NewActivityStreamsStartIndexProperty()
}
// NewActivityStreamsActivityStreamsStartTimeProperty creates a new
// ActivityStreamsStartTimeProperty
func NewActivityStreamsStartTimeProperty() vocab.ActivityStreamsStartTimeProperty {
return propertystarttime.NewActivityStreamsStartTimeProperty()
}
// NewActivityStreamsActivityStreamsStreamsProperty creates a new
// ActivityStreamsStreamsProperty
func NewActivityStreamsStreamsProperty() vocab.ActivityStreamsStreamsProperty {
return propertystreams.NewActivityStreamsStreamsProperty()
}
// NewActivityStreamsActivityStreamsSubjectProperty creates a new
// ActivityStreamsSubjectProperty
func NewActivityStreamsSubjectProperty() vocab.ActivityStreamsSubjectProperty {
return propertysubject.NewActivityStreamsSubjectProperty()
}
// NewActivityStreamsActivityStreamsSummaryProperty creates a new
// ActivityStreamsSummaryProperty
func NewActivityStreamsSummaryProperty() vocab.ActivityStreamsSummaryProperty {
return propertysummary.NewActivityStreamsSummaryProperty()
}
// NewActivityStreamsActivityStreamsTagProperty creates a new
// ActivityStreamsTagProperty
func NewActivityStreamsTagProperty() vocab.ActivityStreamsTagProperty {
return propertytag.NewActivityStreamsTagProperty()
}
// NewActivityStreamsActivityStreamsTargetProperty creates a new
// ActivityStreamsTargetProperty
func NewActivityStreamsTargetProperty() vocab.ActivityStreamsTargetProperty {
return propertytarget.NewActivityStreamsTargetProperty()
}
// NewActivityStreamsActivityStreamsToProperty creates a new
// ActivityStreamsToProperty
func NewActivityStreamsToProperty() vocab.ActivityStreamsToProperty {
return propertyto.NewActivityStreamsToProperty()
}
// NewActivityStreamsActivityStreamsTotalItemsProperty creates a new
// ActivityStreamsTotalItemsProperty
func NewActivityStreamsTotalItemsProperty() vocab.ActivityStreamsTotalItemsProperty {
return propertytotalitems.NewActivityStreamsTotalItemsProperty()
}
// NewActivityStreamsActivityStreamsUnitsProperty creates a new
// ActivityStreamsUnitsProperty
func NewActivityStreamsUnitsProperty() vocab.ActivityStreamsUnitsProperty {
return propertyunits.NewActivityStreamsUnitsProperty()
}
// NewActivityStreamsActivityStreamsUpdatedProperty creates a new
// ActivityStreamsUpdatedProperty
func NewActivityStreamsUpdatedProperty() vocab.ActivityStreamsUpdatedProperty {
return propertyupdated.NewActivityStreamsUpdatedProperty()
}
// NewActivityStreamsActivityStreamsUrlProperty creates a new
// ActivityStreamsUrlProperty
func NewActivityStreamsUrlProperty() vocab.ActivityStreamsUrlProperty {
return propertyurl.NewActivityStreamsUrlProperty()
}
// NewActivityStreamsActivityStreamsWidthProperty creates a new
// ActivityStreamsWidthProperty
func NewActivityStreamsWidthProperty() vocab.ActivityStreamsWidthProperty {
return propertywidth.NewActivityStreamsWidthProperty()
}

View File

@@ -1,340 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package streams
import (
typeaccept "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_accept"
typeactivity "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_activity"
typeadd "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_add"
typeannounce "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_announce"
typeapplication "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_application"
typearrive "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_arrive"
typearticle "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_article"
typeaudio "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_audio"
typeblock "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_block"
typecollection "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collection"
typecollectionpage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collectionpage"
typecreate "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_create"
typedelete "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_delete"
typedislike "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_dislike"
typedocument "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_document"
typeendpoints "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_endpoints"
typeevent "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_event"
typeflag "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_flag"
typefollow "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_follow"
typegroup "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_group"
typeignore "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_ignore"
typeimage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_image"
typeintransitiveactivity "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_intransitiveactivity"
typeinvite "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_invite"
typejoin "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_join"
typeleave "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_leave"
typelike "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_like"
typelink "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_link"
typelisten "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_listen"
typemention "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_mention"
typemove "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_move"
typenote "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_note"
typeobject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_object"
typeoffer "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_offer"
typeorderedcollection "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollection"
typeorderedcollectionpage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollectionpage"
typeorganization "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_organization"
typepage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_page"
typeperson "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_person"
typeplace "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_place"
typeprofile "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_profile"
typequestion "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_question"
typeread "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_read"
typereject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_reject"
typerelationship "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_relationship"
typeremove "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_remove"
typeservice "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_service"
typetentativeaccept "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativeaccept"
typetentativereject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativereject"
typetombstone "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tombstone"
typetravel "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_travel"
typeundo "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_undo"
typeupdate "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_update"
typevideo "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_video"
typeview "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_view"
vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
)
// NewActivityStreamsAccept creates a new ActivityStreamsAccept
func NewActivityStreamsAccept() vocab.ActivityStreamsAccept {
return typeaccept.NewActivityStreamsAccept()
}
// NewActivityStreamsActivity creates a new ActivityStreamsActivity
func NewActivityStreamsActivity() vocab.ActivityStreamsActivity {
return typeactivity.NewActivityStreamsActivity()
}
// NewActivityStreamsAdd creates a new ActivityStreamsAdd
func NewActivityStreamsAdd() vocab.ActivityStreamsAdd {
return typeadd.NewActivityStreamsAdd()
}
// NewActivityStreamsAnnounce creates a new ActivityStreamsAnnounce
func NewActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce {
return typeannounce.NewActivityStreamsAnnounce()
}
// NewActivityStreamsApplication creates a new ActivityStreamsApplication
func NewActivityStreamsApplication() vocab.ActivityStreamsApplication {
return typeapplication.NewActivityStreamsApplication()
}
// NewActivityStreamsArrive creates a new ActivityStreamsArrive
func NewActivityStreamsArrive() vocab.ActivityStreamsArrive {
return typearrive.NewActivityStreamsArrive()
}
// NewActivityStreamsArticle creates a new ActivityStreamsArticle
func NewActivityStreamsArticle() vocab.ActivityStreamsArticle {
return typearticle.NewActivityStreamsArticle()
}
// NewActivityStreamsAudio creates a new ActivityStreamsAudio
func NewActivityStreamsAudio() vocab.ActivityStreamsAudio {
return typeaudio.NewActivityStreamsAudio()
}
// NewActivityStreamsBlock creates a new ActivityStreamsBlock
func NewActivityStreamsBlock() vocab.ActivityStreamsBlock {
return typeblock.NewActivityStreamsBlock()
}
// NewActivityStreamsCollection creates a new ActivityStreamsCollection
func NewActivityStreamsCollection() vocab.ActivityStreamsCollection {
return typecollection.NewActivityStreamsCollection()
}
// NewActivityStreamsCollectionPage creates a new ActivityStreamsCollectionPage
func NewActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage {
return typecollectionpage.NewActivityStreamsCollectionPage()
}
// NewActivityStreamsCreate creates a new ActivityStreamsCreate
func NewActivityStreamsCreate() vocab.ActivityStreamsCreate {
return typecreate.NewActivityStreamsCreate()
}
// NewActivityStreamsDelete creates a new ActivityStreamsDelete
func NewActivityStreamsDelete() vocab.ActivityStreamsDelete {
return typedelete.NewActivityStreamsDelete()
}
// NewActivityStreamsDislike creates a new ActivityStreamsDislike
func NewActivityStreamsDislike() vocab.ActivityStreamsDislike {
return typedislike.NewActivityStreamsDislike()
}
// NewActivityStreamsDocument creates a new ActivityStreamsDocument
func NewActivityStreamsDocument() vocab.ActivityStreamsDocument {
return typedocument.NewActivityStreamsDocument()
}
// NewActivityStreamsEndpoints creates a new ActivityStreamsEndpoints
func NewActivityStreamsEndpoints() vocab.ActivityStreamsEndpoints {
return typeendpoints.NewActivityStreamsEndpoints()
}
// NewActivityStreamsEvent creates a new ActivityStreamsEvent
func NewActivityStreamsEvent() vocab.ActivityStreamsEvent {
return typeevent.NewActivityStreamsEvent()
}
// NewActivityStreamsFlag creates a new ActivityStreamsFlag
func NewActivityStreamsFlag() vocab.ActivityStreamsFlag {
return typeflag.NewActivityStreamsFlag()
}
// NewActivityStreamsFollow creates a new ActivityStreamsFollow
func NewActivityStreamsFollow() vocab.ActivityStreamsFollow {
return typefollow.NewActivityStreamsFollow()
}
// NewActivityStreamsGroup creates a new ActivityStreamsGroup
func NewActivityStreamsGroup() vocab.ActivityStreamsGroup {
return typegroup.NewActivityStreamsGroup()
}
// NewActivityStreamsIgnore creates a new ActivityStreamsIgnore
func NewActivityStreamsIgnore() vocab.ActivityStreamsIgnore {
return typeignore.NewActivityStreamsIgnore()
}
// NewActivityStreamsImage creates a new ActivityStreamsImage
func NewActivityStreamsImage() vocab.ActivityStreamsImage {
return typeimage.NewActivityStreamsImage()
}
// NewActivityStreamsIntransitiveActivity creates a new
// ActivityStreamsIntransitiveActivity
func NewActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity {
return typeintransitiveactivity.NewActivityStreamsIntransitiveActivity()
}
// NewActivityStreamsInvite creates a new ActivityStreamsInvite
func NewActivityStreamsInvite() vocab.ActivityStreamsInvite {
return typeinvite.NewActivityStreamsInvite()
}
// NewActivityStreamsJoin creates a new ActivityStreamsJoin
func NewActivityStreamsJoin() vocab.ActivityStreamsJoin {
return typejoin.NewActivityStreamsJoin()
}
// NewActivityStreamsLeave creates a new ActivityStreamsLeave
func NewActivityStreamsLeave() vocab.ActivityStreamsLeave {
return typeleave.NewActivityStreamsLeave()
}
// NewActivityStreamsLike creates a new ActivityStreamsLike
func NewActivityStreamsLike() vocab.ActivityStreamsLike {
return typelike.NewActivityStreamsLike()
}
// NewActivityStreamsLink creates a new ActivityStreamsLink
func NewActivityStreamsLink() vocab.ActivityStreamsLink {
return typelink.NewActivityStreamsLink()
}
// NewActivityStreamsListen creates a new ActivityStreamsListen
func NewActivityStreamsListen() vocab.ActivityStreamsListen {
return typelisten.NewActivityStreamsListen()
}
// NewActivityStreamsMention creates a new ActivityStreamsMention
func NewActivityStreamsMention() vocab.ActivityStreamsMention {
return typemention.NewActivityStreamsMention()
}
// NewActivityStreamsMove creates a new ActivityStreamsMove
func NewActivityStreamsMove() vocab.ActivityStreamsMove {
return typemove.NewActivityStreamsMove()
}
// NewActivityStreamsNote creates a new ActivityStreamsNote
func NewActivityStreamsNote() vocab.ActivityStreamsNote {
return typenote.NewActivityStreamsNote()
}
// NewActivityStreamsObject creates a new ActivityStreamsObject
func NewActivityStreamsObject() vocab.ActivityStreamsObject {
return typeobject.NewActivityStreamsObject()
}
// NewActivityStreamsOffer creates a new ActivityStreamsOffer
func NewActivityStreamsOffer() vocab.ActivityStreamsOffer {
return typeoffer.NewActivityStreamsOffer()
}
// NewActivityStreamsOrderedCollection creates a new
// ActivityStreamsOrderedCollection
func NewActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection {
return typeorderedcollection.NewActivityStreamsOrderedCollection()
}
// NewActivityStreamsOrderedCollectionPage creates a new
// ActivityStreamsOrderedCollectionPage
func NewActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage {
return typeorderedcollectionpage.NewActivityStreamsOrderedCollectionPage()
}
// NewActivityStreamsOrganization creates a new ActivityStreamsOrganization
func NewActivityStreamsOrganization() vocab.ActivityStreamsOrganization {
return typeorganization.NewActivityStreamsOrganization()
}
// NewActivityStreamsPage creates a new ActivityStreamsPage
func NewActivityStreamsPage() vocab.ActivityStreamsPage {
return typepage.NewActivityStreamsPage()
}
// NewActivityStreamsPerson creates a new ActivityStreamsPerson
func NewActivityStreamsPerson() vocab.ActivityStreamsPerson {
return typeperson.NewActivityStreamsPerson()
}
// NewActivityStreamsPlace creates a new ActivityStreamsPlace
func NewActivityStreamsPlace() vocab.ActivityStreamsPlace {
return typeplace.NewActivityStreamsPlace()
}
// NewActivityStreamsProfile creates a new ActivityStreamsProfile
func NewActivityStreamsProfile() vocab.ActivityStreamsProfile {
return typeprofile.NewActivityStreamsProfile()
}
// NewActivityStreamsQuestion creates a new ActivityStreamsQuestion
func NewActivityStreamsQuestion() vocab.ActivityStreamsQuestion {
return typequestion.NewActivityStreamsQuestion()
}
// NewActivityStreamsRead creates a new ActivityStreamsRead
func NewActivityStreamsRead() vocab.ActivityStreamsRead {
return typeread.NewActivityStreamsRead()
}
// NewActivityStreamsReject creates a new ActivityStreamsReject
func NewActivityStreamsReject() vocab.ActivityStreamsReject {
return typereject.NewActivityStreamsReject()
}
// NewActivityStreamsRelationship creates a new ActivityStreamsRelationship
func NewActivityStreamsRelationship() vocab.ActivityStreamsRelationship {
return typerelationship.NewActivityStreamsRelationship()
}
// NewActivityStreamsRemove creates a new ActivityStreamsRemove
func NewActivityStreamsRemove() vocab.ActivityStreamsRemove {
return typeremove.NewActivityStreamsRemove()
}
// NewActivityStreamsService creates a new ActivityStreamsService
func NewActivityStreamsService() vocab.ActivityStreamsService {
return typeservice.NewActivityStreamsService()
}
// NewActivityStreamsTentativeAccept creates a new ActivityStreamsTentativeAccept
func NewActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept {
return typetentativeaccept.NewActivityStreamsTentativeAccept()
}
// NewActivityStreamsTentativeReject creates a new ActivityStreamsTentativeReject
func NewActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject {
return typetentativereject.NewActivityStreamsTentativeReject()
}
// NewActivityStreamsTombstone creates a new ActivityStreamsTombstone
func NewActivityStreamsTombstone() vocab.ActivityStreamsTombstone {
return typetombstone.NewActivityStreamsTombstone()
}
// NewActivityStreamsTravel creates a new ActivityStreamsTravel
func NewActivityStreamsTravel() vocab.ActivityStreamsTravel {
return typetravel.NewActivityStreamsTravel()
}
// NewActivityStreamsUndo creates a new ActivityStreamsUndo
func NewActivityStreamsUndo() vocab.ActivityStreamsUndo {
return typeundo.NewActivityStreamsUndo()
}
// NewActivityStreamsUpdate creates a new ActivityStreamsUpdate
func NewActivityStreamsUpdate() vocab.ActivityStreamsUpdate {
return typeupdate.NewActivityStreamsUpdate()
}
// NewActivityStreamsVideo creates a new ActivityStreamsVideo
func NewActivityStreamsVideo() vocab.ActivityStreamsVideo {
return typevideo.NewActivityStreamsVideo()
}
// NewActivityStreamsView creates a new ActivityStreamsView
func NewActivityStreamsView() vocab.ActivityStreamsView {
return typeview.NewActivityStreamsView()
}

View File

@@ -1,35 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package streams
import (
typealbum "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album"
typeartist "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist"
typelibrary "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library"
typetrack "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track"
vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
)
// FunkwhaleAlbumIsDisjointWith returns true if Album is disjoint with the other's
// type.
func FunkwhaleAlbumIsDisjointWith(other vocab.Type) bool {
return typealbum.AlbumIsDisjointWith(other)
}
// FunkwhaleArtistIsDisjointWith returns true if Artist is disjoint with the
// other's type.
func FunkwhaleArtistIsDisjointWith(other vocab.Type) bool {
return typeartist.ArtistIsDisjointWith(other)
}
// FunkwhaleLibraryIsDisjointWith returns true if Library is disjoint with the
// other's type.
func FunkwhaleLibraryIsDisjointWith(other vocab.Type) bool {
return typelibrary.LibraryIsDisjointWith(other)
}
// FunkwhaleTrackIsDisjointWith returns true if Track is disjoint with the other's
// type.
func FunkwhaleTrackIsDisjointWith(other vocab.Type) bool {
return typetrack.TrackIsDisjointWith(other)
}

View File

@@ -1,39 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package streams
import (
typealbum "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album"
typeartist "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist"
typelibrary "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library"
typetrack "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track"
vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
)
// FunkwhaleAlbumIsExtendedBy returns true if the other's type extends from Album.
// Note that it returns false if the types are the same; see the "IsOrExtends"
// variant instead.
func FunkwhaleAlbumIsExtendedBy(other vocab.Type) bool {
return typealbum.AlbumIsExtendedBy(other)
}
// FunkwhaleArtistIsExtendedBy returns true if the other's type extends from
// Artist. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func FunkwhaleArtistIsExtendedBy(other vocab.Type) bool {
return typeartist.ArtistIsExtendedBy(other)
}
// FunkwhaleLibraryIsExtendedBy returns true if the other's type extends from
// Library. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func FunkwhaleLibraryIsExtendedBy(other vocab.Type) bool {
return typelibrary.LibraryIsExtendedBy(other)
}
// FunkwhaleTrackIsExtendedBy returns true if the other's type extends from Track.
// Note that it returns false if the types are the same; see the "IsOrExtends"
// variant instead.
func FunkwhaleTrackIsExtendedBy(other vocab.Type) bool {
return typetrack.TrackIsExtendedBy(other)
}

View File

@@ -1,35 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package streams
import (
typealbum "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album"
typeartist "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist"
typelibrary "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library"
typetrack "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track"
vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
)
// FunkwhaleFunkwhaleAlbumExtends returns true if Album extends from the other's
// type.
func FunkwhaleFunkwhaleAlbumExtends(other vocab.Type) bool {
return typealbum.FunkwhaleAlbumExtends(other)
}
// FunkwhaleFunkwhaleArtistExtends returns true if Artist extends from the other's
// type.
func FunkwhaleFunkwhaleArtistExtends(other vocab.Type) bool {
return typeartist.FunkwhaleArtistExtends(other)
}
// FunkwhaleFunkwhaleLibraryExtends returns true if Library extends from the
// other's type.
func FunkwhaleFunkwhaleLibraryExtends(other vocab.Type) bool {
return typelibrary.FunkwhaleLibraryExtends(other)
}
// FunkwhaleFunkwhaleTrackExtends returns true if Track extends from the other's
// type.
func FunkwhaleFunkwhaleTrackExtends(other vocab.Type) bool {
return typetrack.FunkwhaleTrackExtends(other)
}

View File

@@ -1,35 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package streams
import (
typealbum "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album"
typeartist "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist"
typelibrary "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library"
typetrack "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track"
vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
)
// IsOrExtendsFunkwhaleAlbum returns true if the other provided type is the Album
// type or extends from the Album type.
func IsOrExtendsFunkwhaleAlbum(other vocab.Type) bool {
return typealbum.IsOrExtendsAlbum(other)
}
// IsOrExtendsFunkwhaleArtist returns true if the other provided type is the
// Artist type or extends from the Artist type.
func IsOrExtendsFunkwhaleArtist(other vocab.Type) bool {
return typeartist.IsOrExtendsArtist(other)
}
// IsOrExtendsFunkwhaleLibrary returns true if the other provided type is the
// Library type or extends from the Library type.
func IsOrExtendsFunkwhaleLibrary(other vocab.Type) bool {
return typelibrary.IsOrExtendsLibrary(other)
}
// IsOrExtendsFunkwhaleTrack returns true if the other provided type is the Track
// type or extends from the Track type.
func IsOrExtendsFunkwhaleTrack(other vocab.Type) bool {
return typetrack.IsOrExtendsTrack(other)
}

View File

@@ -1,31 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package streams
import (
typealbum "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album"
typeartist "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist"
typelibrary "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library"
typetrack "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track"
vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
)
// NewFunkwhaleAlbum creates a new FunkwhaleAlbum
func NewFunkwhaleAlbum() vocab.FunkwhaleAlbum {
return typealbum.NewFunkwhaleAlbum()
}
// NewFunkwhaleArtist creates a new FunkwhaleArtist
func NewFunkwhaleArtist() vocab.FunkwhaleArtist {
return typeartist.NewFunkwhaleArtist()
}
// NewFunkwhaleLibrary creates a new FunkwhaleLibrary
func NewFunkwhaleLibrary() vocab.FunkwhaleLibrary {
return typelibrary.NewFunkwhaleLibrary()
}
// NewFunkwhaleTrack creates a new FunkwhaleTrack
func NewFunkwhaleTrack() vocab.FunkwhaleTrack {
return typetrack.NewFunkwhaleTrack()
}

View File

@@ -1,105 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package streams
import (
typeannounceapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceapproval"
typeannounceauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceauthorization"
typeannouncerequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announcerequest"
typecanannounce "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canannounce"
typecanlike "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canlike"
typecanquote "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canquote"
typecanreply "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canreply"
typeinteractionpolicy "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_interactionpolicy"
typelikeapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeapproval"
typelikeauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeauthorization"
typelikerequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likerequest"
typereplyapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyapproval"
typereplyauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyauthorization"
typereplyrequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyrequest"
vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
)
// GoToSocialAnnounceApprovalIsDisjointWith returns true if AnnounceApproval is
// disjoint with the other's type.
func GoToSocialAnnounceApprovalIsDisjointWith(other vocab.Type) bool {
return typeannounceapproval.AnnounceApprovalIsDisjointWith(other)
}
// GoToSocialAnnounceAuthorizationIsDisjointWith returns true if
// AnnounceAuthorization is disjoint with the other's type.
func GoToSocialAnnounceAuthorizationIsDisjointWith(other vocab.Type) bool {
return typeannounceauthorization.AnnounceAuthorizationIsDisjointWith(other)
}
// GoToSocialAnnounceRequestIsDisjointWith returns true if AnnounceRequest is
// disjoint with the other's type.
func GoToSocialAnnounceRequestIsDisjointWith(other vocab.Type) bool {
return typeannouncerequest.AnnounceRequestIsDisjointWith(other)
}
// GoToSocialCanAnnounceIsDisjointWith returns true if CanAnnounce is disjoint
// with the other's type.
func GoToSocialCanAnnounceIsDisjointWith(other vocab.Type) bool {
return typecanannounce.CanAnnounceIsDisjointWith(other)
}
// GoToSocialCanLikeIsDisjointWith returns true if CanLike is disjoint with the
// other's type.
func GoToSocialCanLikeIsDisjointWith(other vocab.Type) bool {
return typecanlike.CanLikeIsDisjointWith(other)
}
// GoToSocialCanQuoteIsDisjointWith returns true if CanQuote is disjoint with the
// other's type.
func GoToSocialCanQuoteIsDisjointWith(other vocab.Type) bool {
return typecanquote.CanQuoteIsDisjointWith(other)
}
// GoToSocialCanReplyIsDisjointWith returns true if CanReply is disjoint with the
// other's type.
func GoToSocialCanReplyIsDisjointWith(other vocab.Type) bool {
return typecanreply.CanReplyIsDisjointWith(other)
}
// GoToSocialInteractionPolicyIsDisjointWith returns true if InteractionPolicy is
// disjoint with the other's type.
func GoToSocialInteractionPolicyIsDisjointWith(other vocab.Type) bool {
return typeinteractionpolicy.InteractionPolicyIsDisjointWith(other)
}
// GoToSocialLikeApprovalIsDisjointWith returns true if LikeApproval is disjoint
// with the other's type.
func GoToSocialLikeApprovalIsDisjointWith(other vocab.Type) bool {
return typelikeapproval.LikeApprovalIsDisjointWith(other)
}
// GoToSocialLikeAuthorizationIsDisjointWith returns true if LikeAuthorization is
// disjoint with the other's type.
func GoToSocialLikeAuthorizationIsDisjointWith(other vocab.Type) bool {
return typelikeauthorization.LikeAuthorizationIsDisjointWith(other)
}
// GoToSocialLikeRequestIsDisjointWith returns true if LikeRequest is disjoint
// with the other's type.
func GoToSocialLikeRequestIsDisjointWith(other vocab.Type) bool {
return typelikerequest.LikeRequestIsDisjointWith(other)
}
// GoToSocialReplyApprovalIsDisjointWith returns true if ReplyApproval is disjoint
// with the other's type.
func GoToSocialReplyApprovalIsDisjointWith(other vocab.Type) bool {
return typereplyapproval.ReplyApprovalIsDisjointWith(other)
}
// GoToSocialReplyAuthorizationIsDisjointWith returns true if ReplyAuthorization
// is disjoint with the other's type.
func GoToSocialReplyAuthorizationIsDisjointWith(other vocab.Type) bool {
return typereplyauthorization.ReplyAuthorizationIsDisjointWith(other)
}
// GoToSocialReplyRequestIsDisjointWith returns true if ReplyRequest is disjoint
// with the other's type.
func GoToSocialReplyRequestIsDisjointWith(other vocab.Type) bool {
return typereplyrequest.ReplyRequestIsDisjointWith(other)
}

View File

@@ -1,119 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package streams
import (
typeannounceapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceapproval"
typeannounceauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceauthorization"
typeannouncerequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announcerequest"
typecanannounce "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canannounce"
typecanlike "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canlike"
typecanquote "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canquote"
typecanreply "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canreply"
typeinteractionpolicy "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_interactionpolicy"
typelikeapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeapproval"
typelikeauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeauthorization"
typelikerequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likerequest"
typereplyapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyapproval"
typereplyauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyauthorization"
typereplyrequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyrequest"
vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
)
// GoToSocialAnnounceApprovalIsExtendedBy returns true if the other's type extends
// from AnnounceApproval. Note that it returns false if the types are the
// same; see the "IsOrExtends" variant instead.
func GoToSocialAnnounceApprovalIsExtendedBy(other vocab.Type) bool {
return typeannounceapproval.AnnounceApprovalIsExtendedBy(other)
}
// GoToSocialAnnounceAuthorizationIsExtendedBy returns true if the other's type
// extends from AnnounceAuthorization. Note that it returns false if the types
// are the same; see the "IsOrExtends" variant instead.
func GoToSocialAnnounceAuthorizationIsExtendedBy(other vocab.Type) bool {
return typeannounceauthorization.AnnounceAuthorizationIsExtendedBy(other)
}
// GoToSocialAnnounceRequestIsExtendedBy returns true if the other's type extends
// from AnnounceRequest. Note that it returns false if the types are the same;
// see the "IsOrExtends" variant instead.
func GoToSocialAnnounceRequestIsExtendedBy(other vocab.Type) bool {
return typeannouncerequest.AnnounceRequestIsExtendedBy(other)
}
// GoToSocialCanAnnounceIsExtendedBy returns true if the other's type extends from
// CanAnnounce. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func GoToSocialCanAnnounceIsExtendedBy(other vocab.Type) bool {
return typecanannounce.CanAnnounceIsExtendedBy(other)
}
// GoToSocialCanLikeIsExtendedBy returns true if the other's type extends from
// CanLike. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func GoToSocialCanLikeIsExtendedBy(other vocab.Type) bool {
return typecanlike.CanLikeIsExtendedBy(other)
}
// GoToSocialCanQuoteIsExtendedBy returns true if the other's type extends from
// CanQuote. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func GoToSocialCanQuoteIsExtendedBy(other vocab.Type) bool {
return typecanquote.CanQuoteIsExtendedBy(other)
}
// GoToSocialCanReplyIsExtendedBy returns true if the other's type extends from
// CanReply. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func GoToSocialCanReplyIsExtendedBy(other vocab.Type) bool {
return typecanreply.CanReplyIsExtendedBy(other)
}
// GoToSocialInteractionPolicyIsExtendedBy returns true if the other's type
// extends from InteractionPolicy. Note that it returns false if the types are
// the same; see the "IsOrExtends" variant instead.
func GoToSocialInteractionPolicyIsExtendedBy(other vocab.Type) bool {
return typeinteractionpolicy.InteractionPolicyIsExtendedBy(other)
}
// GoToSocialLikeApprovalIsExtendedBy returns true if the other's type extends
// from LikeApproval. Note that it returns false if the types are the same;
// see the "IsOrExtends" variant instead.
func GoToSocialLikeApprovalIsExtendedBy(other vocab.Type) bool {
return typelikeapproval.LikeApprovalIsExtendedBy(other)
}
// GoToSocialLikeAuthorizationIsExtendedBy returns true if the other's type
// extends from LikeAuthorization. Note that it returns false if the types are
// the same; see the "IsOrExtends" variant instead.
func GoToSocialLikeAuthorizationIsExtendedBy(other vocab.Type) bool {
return typelikeauthorization.LikeAuthorizationIsExtendedBy(other)
}
// GoToSocialLikeRequestIsExtendedBy returns true if the other's type extends from
// LikeRequest. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func GoToSocialLikeRequestIsExtendedBy(other vocab.Type) bool {
return typelikerequest.LikeRequestIsExtendedBy(other)
}
// GoToSocialReplyApprovalIsExtendedBy returns true if the other's type extends
// from ReplyApproval. Note that it returns false if the types are the same;
// see the "IsOrExtends" variant instead.
func GoToSocialReplyApprovalIsExtendedBy(other vocab.Type) bool {
return typereplyapproval.ReplyApprovalIsExtendedBy(other)
}
// GoToSocialReplyAuthorizationIsExtendedBy returns true if the other's type
// extends from ReplyAuthorization. Note that it returns false if the types
// are the same; see the "IsOrExtends" variant instead.
func GoToSocialReplyAuthorizationIsExtendedBy(other vocab.Type) bool {
return typereplyauthorization.ReplyAuthorizationIsExtendedBy(other)
}
// GoToSocialReplyRequestIsExtendedBy returns true if the other's type extends
// from ReplyRequest. Note that it returns false if the types are the same;
// see the "IsOrExtends" variant instead.
func GoToSocialReplyRequestIsExtendedBy(other vocab.Type) bool {
return typereplyrequest.ReplyRequestIsExtendedBy(other)
}

View File

@@ -1,105 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package streams
import (
typeannounceapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceapproval"
typeannounceauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceauthorization"
typeannouncerequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announcerequest"
typecanannounce "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canannounce"
typecanlike "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canlike"
typecanquote "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canquote"
typecanreply "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canreply"
typeinteractionpolicy "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_interactionpolicy"
typelikeapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeapproval"
typelikeauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeauthorization"
typelikerequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likerequest"
typereplyapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyapproval"
typereplyauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyauthorization"
typereplyrequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyrequest"
vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
)
// GoToSocialGoToSocialAnnounceApprovalExtends returns true if AnnounceApproval
// extends from the other's type.
func GoToSocialGoToSocialAnnounceApprovalExtends(other vocab.Type) bool {
return typeannounceapproval.GoToSocialAnnounceApprovalExtends(other)
}
// GoToSocialGoToSocialAnnounceAuthorizationExtends returns true if
// AnnounceAuthorization extends from the other's type.
func GoToSocialGoToSocialAnnounceAuthorizationExtends(other vocab.Type) bool {
return typeannounceauthorization.GoToSocialAnnounceAuthorizationExtends(other)
}
// GoToSocialGoToSocialAnnounceRequestExtends returns true if AnnounceRequest
// extends from the other's type.
func GoToSocialGoToSocialAnnounceRequestExtends(other vocab.Type) bool {
return typeannouncerequest.GoToSocialAnnounceRequestExtends(other)
}
// GoToSocialGoToSocialCanAnnounceExtends returns true if CanAnnounce extends from
// the other's type.
func GoToSocialGoToSocialCanAnnounceExtends(other vocab.Type) bool {
return typecanannounce.GoToSocialCanAnnounceExtends(other)
}
// GoToSocialGoToSocialCanLikeExtends returns true if CanLike extends from the
// other's type.
func GoToSocialGoToSocialCanLikeExtends(other vocab.Type) bool {
return typecanlike.GoToSocialCanLikeExtends(other)
}
// GoToSocialGoToSocialCanQuoteExtends returns true if CanQuote extends from the
// other's type.
func GoToSocialGoToSocialCanQuoteExtends(other vocab.Type) bool {
return typecanquote.GoToSocialCanQuoteExtends(other)
}
// GoToSocialGoToSocialCanReplyExtends returns true if CanReply extends from the
// other's type.
func GoToSocialGoToSocialCanReplyExtends(other vocab.Type) bool {
return typecanreply.GoToSocialCanReplyExtends(other)
}
// GoToSocialGoToSocialInteractionPolicyExtends returns true if InteractionPolicy
// extends from the other's type.
func GoToSocialGoToSocialInteractionPolicyExtends(other vocab.Type) bool {
return typeinteractionpolicy.GoToSocialInteractionPolicyExtends(other)
}
// GoToSocialGoToSocialLikeApprovalExtends returns true if LikeApproval extends
// from the other's type.
func GoToSocialGoToSocialLikeApprovalExtends(other vocab.Type) bool {
return typelikeapproval.GoToSocialLikeApprovalExtends(other)
}
// GoToSocialGoToSocialLikeAuthorizationExtends returns true if LikeAuthorization
// extends from the other's type.
func GoToSocialGoToSocialLikeAuthorizationExtends(other vocab.Type) bool {
return typelikeauthorization.GoToSocialLikeAuthorizationExtends(other)
}
// GoToSocialGoToSocialLikeRequestExtends returns true if LikeRequest extends from
// the other's type.
func GoToSocialGoToSocialLikeRequestExtends(other vocab.Type) bool {
return typelikerequest.GoToSocialLikeRequestExtends(other)
}
// GoToSocialGoToSocialReplyApprovalExtends returns true if ReplyApproval extends
// from the other's type.
func GoToSocialGoToSocialReplyApprovalExtends(other vocab.Type) bool {
return typereplyapproval.GoToSocialReplyApprovalExtends(other)
}
// GoToSocialGoToSocialReplyAuthorizationExtends returns true if
// ReplyAuthorization extends from the other's type.
func GoToSocialGoToSocialReplyAuthorizationExtends(other vocab.Type) bool {
return typereplyauthorization.GoToSocialReplyAuthorizationExtends(other)
}
// GoToSocialGoToSocialReplyRequestExtends returns true if ReplyRequest extends
// from the other's type.
func GoToSocialGoToSocialReplyRequestExtends(other vocab.Type) bool {
return typereplyrequest.GoToSocialReplyRequestExtends(other)
}

View File

@@ -1,106 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package streams
import (
typeannounceapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceapproval"
typeannounceauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceauthorization"
typeannouncerequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announcerequest"
typecanannounce "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canannounce"
typecanlike "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canlike"
typecanquote "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canquote"
typecanreply "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canreply"
typeinteractionpolicy "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_interactionpolicy"
typelikeapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeapproval"
typelikeauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeauthorization"
typelikerequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likerequest"
typereplyapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyapproval"
typereplyauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyauthorization"
typereplyrequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyrequest"
vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
)
// IsOrExtendsGoToSocialAnnounceApproval returns true if the other provided type
// is the AnnounceApproval type or extends from the AnnounceApproval type.
func IsOrExtendsGoToSocialAnnounceApproval(other vocab.Type) bool {
return typeannounceapproval.IsOrExtendsAnnounceApproval(other)
}
// IsOrExtendsGoToSocialAnnounceAuthorization returns true if the other provided
// type is the AnnounceAuthorization type or extends from the
// AnnounceAuthorization type.
func IsOrExtendsGoToSocialAnnounceAuthorization(other vocab.Type) bool {
return typeannounceauthorization.IsOrExtendsAnnounceAuthorization(other)
}
// IsOrExtendsGoToSocialAnnounceRequest returns true if the other provided type is
// the AnnounceRequest type or extends from the AnnounceRequest type.
func IsOrExtendsGoToSocialAnnounceRequest(other vocab.Type) bool {
return typeannouncerequest.IsOrExtendsAnnounceRequest(other)
}
// IsOrExtendsGoToSocialCanAnnounce returns true if the other provided type is the
// CanAnnounce type or extends from the CanAnnounce type.
func IsOrExtendsGoToSocialCanAnnounce(other vocab.Type) bool {
return typecanannounce.IsOrExtendsCanAnnounce(other)
}
// IsOrExtendsGoToSocialCanLike returns true if the other provided type is the
// CanLike type or extends from the CanLike type.
func IsOrExtendsGoToSocialCanLike(other vocab.Type) bool {
return typecanlike.IsOrExtendsCanLike(other)
}
// IsOrExtendsGoToSocialCanQuote returns true if the other provided type is the
// CanQuote type or extends from the CanQuote type.
func IsOrExtendsGoToSocialCanQuote(other vocab.Type) bool {
return typecanquote.IsOrExtendsCanQuote(other)
}
// IsOrExtendsGoToSocialCanReply returns true if the other provided type is the
// CanReply type or extends from the CanReply type.
func IsOrExtendsGoToSocialCanReply(other vocab.Type) bool {
return typecanreply.IsOrExtendsCanReply(other)
}
// IsOrExtendsGoToSocialInteractionPolicy returns true if the other provided type
// is the InteractionPolicy type or extends from the InteractionPolicy type.
func IsOrExtendsGoToSocialInteractionPolicy(other vocab.Type) bool {
return typeinteractionpolicy.IsOrExtendsInteractionPolicy(other)
}
// IsOrExtendsGoToSocialLikeApproval returns true if the other provided type is
// the LikeApproval type or extends from the LikeApproval type.
func IsOrExtendsGoToSocialLikeApproval(other vocab.Type) bool {
return typelikeapproval.IsOrExtendsLikeApproval(other)
}
// IsOrExtendsGoToSocialLikeAuthorization returns true if the other provided type
// is the LikeAuthorization type or extends from the LikeAuthorization type.
func IsOrExtendsGoToSocialLikeAuthorization(other vocab.Type) bool {
return typelikeauthorization.IsOrExtendsLikeAuthorization(other)
}
// IsOrExtendsGoToSocialLikeRequest returns true if the other provided type is the
// LikeRequest type or extends from the LikeRequest type.
func IsOrExtendsGoToSocialLikeRequest(other vocab.Type) bool {
return typelikerequest.IsOrExtendsLikeRequest(other)
}
// IsOrExtendsGoToSocialReplyApproval returns true if the other provided type is
// the ReplyApproval type or extends from the ReplyApproval type.
func IsOrExtendsGoToSocialReplyApproval(other vocab.Type) bool {
return typereplyapproval.IsOrExtendsReplyApproval(other)
}
// IsOrExtendsGoToSocialReplyAuthorization returns true if the other provided type
// is the ReplyAuthorization type or extends from the ReplyAuthorization type.
func IsOrExtendsGoToSocialReplyAuthorization(other vocab.Type) bool {
return typereplyauthorization.IsOrExtendsReplyAuthorization(other)
}
// IsOrExtendsGoToSocialReplyRequest returns true if the other provided type is
// the ReplyRequest type or extends from the ReplyRequest type.
func IsOrExtendsGoToSocialReplyRequest(other vocab.Type) bool {
return typereplyrequest.IsOrExtendsReplyRequest(other)
}

View File

@@ -1,87 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package streams
import (
propertyalways "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_always"
propertyapprovalrequired "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvalrequired"
propertyapprovedby "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvedby"
propertyautomaticapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_automaticapproval"
propertycanannounce "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canannounce"
propertycanlike "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canlike"
propertycanquote "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canquote"
propertycanreply "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canreply"
propertyinteractingobject "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactingobject"
propertyinteractionpolicy "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactionpolicy"
propertyinteractiontarget "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactiontarget"
propertymanualapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_manualapproval"
vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
)
// NewGoToSocialGoToSocialAlwaysProperty creates a new GoToSocialAlwaysProperty
func NewGoToSocialAlwaysProperty() vocab.GoToSocialAlwaysProperty {
return propertyalways.NewGoToSocialAlwaysProperty()
}
// NewGoToSocialGoToSocialApprovalRequiredProperty creates a new
// GoToSocialApprovalRequiredProperty
func NewGoToSocialApprovalRequiredProperty() vocab.GoToSocialApprovalRequiredProperty {
return propertyapprovalrequired.NewGoToSocialApprovalRequiredProperty()
}
// NewGoToSocialGoToSocialApprovedByProperty creates a new
// GoToSocialApprovedByProperty
func NewGoToSocialApprovedByProperty() vocab.GoToSocialApprovedByProperty {
return propertyapprovedby.NewGoToSocialApprovedByProperty()
}
// NewGoToSocialGoToSocialAutomaticApprovalProperty creates a new
// GoToSocialAutomaticApprovalProperty
func NewGoToSocialAutomaticApprovalProperty() vocab.GoToSocialAutomaticApprovalProperty {
return propertyautomaticapproval.NewGoToSocialAutomaticApprovalProperty()
}
// NewGoToSocialGoToSocialCanAnnounceProperty creates a new
// GoToSocialCanAnnounceProperty
func NewGoToSocialCanAnnounceProperty() vocab.GoToSocialCanAnnounceProperty {
return propertycanannounce.NewGoToSocialCanAnnounceProperty()
}
// NewGoToSocialGoToSocialCanLikeProperty creates a new GoToSocialCanLikeProperty
func NewGoToSocialCanLikeProperty() vocab.GoToSocialCanLikeProperty {
return propertycanlike.NewGoToSocialCanLikeProperty()
}
// NewGoToSocialGoToSocialCanQuoteProperty creates a new GoToSocialCanQuoteProperty
func NewGoToSocialCanQuoteProperty() vocab.GoToSocialCanQuoteProperty {
return propertycanquote.NewGoToSocialCanQuoteProperty()
}
// NewGoToSocialGoToSocialCanReplyProperty creates a new GoToSocialCanReplyProperty
func NewGoToSocialCanReplyProperty() vocab.GoToSocialCanReplyProperty {
return propertycanreply.NewGoToSocialCanReplyProperty()
}
// NewGoToSocialGoToSocialInteractingObjectProperty creates a new
// GoToSocialInteractingObjectProperty
func NewGoToSocialInteractingObjectProperty() vocab.GoToSocialInteractingObjectProperty {
return propertyinteractingobject.NewGoToSocialInteractingObjectProperty()
}
// NewGoToSocialGoToSocialInteractionPolicyProperty creates a new
// GoToSocialInteractionPolicyProperty
func NewGoToSocialInteractionPolicyProperty() vocab.GoToSocialInteractionPolicyProperty {
return propertyinteractionpolicy.NewGoToSocialInteractionPolicyProperty()
}
// NewGoToSocialGoToSocialInteractionTargetProperty creates a new
// GoToSocialInteractionTargetProperty
func NewGoToSocialInteractionTargetProperty() vocab.GoToSocialInteractionTargetProperty {
return propertyinteractiontarget.NewGoToSocialInteractionTargetProperty()
}
// NewGoToSocialGoToSocialManualApprovalProperty creates a new
// GoToSocialManualApprovalProperty
func NewGoToSocialManualApprovalProperty() vocab.GoToSocialManualApprovalProperty {
return propertymanualapproval.NewGoToSocialManualApprovalProperty()
}

View File

@@ -1,91 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package streams
import (
typeannounceapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceapproval"
typeannounceauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceauthorization"
typeannouncerequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announcerequest"
typecanannounce "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canannounce"
typecanlike "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canlike"
typecanquote "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canquote"
typecanreply "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canreply"
typeinteractionpolicy "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_interactionpolicy"
typelikeapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeapproval"
typelikeauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeauthorization"
typelikerequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likerequest"
typereplyapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyapproval"
typereplyauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyauthorization"
typereplyrequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyrequest"
vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
)
// NewGoToSocialAnnounceApproval creates a new GoToSocialAnnounceApproval
func NewGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval {
return typeannounceapproval.NewGoToSocialAnnounceApproval()
}
// NewGoToSocialAnnounceAuthorization creates a new GoToSocialAnnounceAuthorization
func NewGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization {
return typeannounceauthorization.NewGoToSocialAnnounceAuthorization()
}
// NewGoToSocialAnnounceRequest creates a new GoToSocialAnnounceRequest
func NewGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest {
return typeannouncerequest.NewGoToSocialAnnounceRequest()
}
// NewGoToSocialCanAnnounce creates a new GoToSocialCanAnnounce
func NewGoToSocialCanAnnounce() vocab.GoToSocialCanAnnounce {
return typecanannounce.NewGoToSocialCanAnnounce()
}
// NewGoToSocialCanLike creates a new GoToSocialCanLike
func NewGoToSocialCanLike() vocab.GoToSocialCanLike {
return typecanlike.NewGoToSocialCanLike()
}
// NewGoToSocialCanQuote creates a new GoToSocialCanQuote
func NewGoToSocialCanQuote() vocab.GoToSocialCanQuote {
return typecanquote.NewGoToSocialCanQuote()
}
// NewGoToSocialCanReply creates a new GoToSocialCanReply
func NewGoToSocialCanReply() vocab.GoToSocialCanReply {
return typecanreply.NewGoToSocialCanReply()
}
// NewGoToSocialInteractionPolicy creates a new GoToSocialInteractionPolicy
func NewGoToSocialInteractionPolicy() vocab.GoToSocialInteractionPolicy {
return typeinteractionpolicy.NewGoToSocialInteractionPolicy()
}
// NewGoToSocialLikeApproval creates a new GoToSocialLikeApproval
func NewGoToSocialLikeApproval() vocab.GoToSocialLikeApproval {
return typelikeapproval.NewGoToSocialLikeApproval()
}
// NewGoToSocialLikeAuthorization creates a new GoToSocialLikeAuthorization
func NewGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization {
return typelikeauthorization.NewGoToSocialLikeAuthorization()
}
// NewGoToSocialLikeRequest creates a new GoToSocialLikeRequest
func NewGoToSocialLikeRequest() vocab.GoToSocialLikeRequest {
return typelikerequest.NewGoToSocialLikeRequest()
}
// NewGoToSocialReplyApproval creates a new GoToSocialReplyApproval
func NewGoToSocialReplyApproval() vocab.GoToSocialReplyApproval {
return typereplyapproval.NewGoToSocialReplyApproval()
}
// NewGoToSocialReplyAuthorization creates a new GoToSocialReplyAuthorization
func NewGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization {
return typereplyauthorization.NewGoToSocialReplyAuthorization()
}
// NewGoToSocialReplyRequest creates a new GoToSocialReplyRequest
func NewGoToSocialReplyRequest() vocab.GoToSocialReplyRequest {
return typereplyrequest.NewGoToSocialReplyRequest()
}

View File

@@ -1,19 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package streams
import (
propertyid "codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_id"
propertytype "codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_type"
vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
)
// NewJSONLDJSONLDTypeProperty creates a new JSONLDTypeProperty
func NewJSONLDTypeProperty() vocab.JSONLDTypeProperty {
return propertytype.NewJSONLDTypeProperty()
}
// NewJSONLDJSONLDIdProperty creates a new JSONLDIdProperty
func NewJSONLDIdProperty() vocab.JSONLDIdProperty {
return propertyid.NewJSONLDIdProperty()
}

View File

@@ -1,14 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package streams
import (
typepropertyvalue "codeberg.org/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue"
vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
)
// SchemaPropertyValueIsDisjointWith returns true if PropertyValue is disjoint
// with the other's type.
func SchemaPropertyValueIsDisjointWith(other vocab.Type) bool {
return typepropertyvalue.PropertyValueIsDisjointWith(other)
}

View File

@@ -1,15 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package streams
import (
typepropertyvalue "codeberg.org/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue"
vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
)
// SchemaPropertyValueIsExtendedBy returns true if the other's type extends from
// PropertyValue. Note that it returns false if the types are the same; see
// the "IsOrExtends" variant instead.
func SchemaPropertyValueIsExtendedBy(other vocab.Type) bool {
return typepropertyvalue.PropertyValueIsExtendedBy(other)
}

View File

@@ -1,14 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package streams
import (
typepropertyvalue "codeberg.org/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue"
vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
)
// SchemaSchemaPropertyValueExtends returns true if PropertyValue extends from the
// other's type.
func SchemaSchemaPropertyValueExtends(other vocab.Type) bool {
return typepropertyvalue.SchemaPropertyValueExtends(other)
}

View File

@@ -1,14 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package streams
import (
typepropertyvalue "codeberg.org/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue"
vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
)
// IsOrExtendsSchemaPropertyValue returns true if the other provided type is the
// PropertyValue type or extends from the PropertyValue type.
func IsOrExtendsSchemaPropertyValue(other vocab.Type) bool {
return typepropertyvalue.IsOrExtendsPropertyValue(other)
}

View File

@@ -1,13 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package streams
import (
propertyvalue "codeberg.org/superseriousbusiness/activity/streams/impl/schema/property_value"
vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
)
// NewSchemaSchemaValueProperty creates a new SchemaValueProperty
func NewSchemaValueProperty() vocab.SchemaValueProperty {
return propertyvalue.NewSchemaValueProperty()
}

View File

@@ -1,13 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package streams
import (
typepropertyvalue "codeberg.org/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue"
vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
)
// NewSchemaPropertyValue creates a new SchemaPropertyValue
func NewSchemaPropertyValue() vocab.SchemaPropertyValue {
return typepropertyvalue.NewSchemaPropertyValue()
}

View File

@@ -1,27 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package streams
import (
typeemoji "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_emoji"
typehashtag "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_hashtag"
typeidentityproof "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_identityproof"
vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
)
// TootEmojiIsDisjointWith returns true if Emoji is disjoint with the other's type.
func TootEmojiIsDisjointWith(other vocab.Type) bool {
return typeemoji.EmojiIsDisjointWith(other)
}
// TootHashtagIsDisjointWith returns true if Hashtag is disjoint with the other's
// type.
func TootHashtagIsDisjointWith(other vocab.Type) bool {
return typehashtag.HashtagIsDisjointWith(other)
}
// TootIdentityProofIsDisjointWith returns true if IdentityProof is disjoint with
// the other's type.
func TootIdentityProofIsDisjointWith(other vocab.Type) bool {
return typeidentityproof.IdentityProofIsDisjointWith(other)
}

View File

@@ -1,31 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package streams
import (
typeemoji "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_emoji"
typehashtag "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_hashtag"
typeidentityproof "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_identityproof"
vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
)
// TootEmojiIsExtendedBy returns true if the other's type extends from Emoji. Note
// that it returns false if the types are the same; see the "IsOrExtends"
// variant instead.
func TootEmojiIsExtendedBy(other vocab.Type) bool {
return typeemoji.EmojiIsExtendedBy(other)
}
// TootHashtagIsExtendedBy returns true if the other's type extends from Hashtag.
// Note that it returns false if the types are the same; see the "IsOrExtends"
// variant instead.
func TootHashtagIsExtendedBy(other vocab.Type) bool {
return typehashtag.HashtagIsExtendedBy(other)
}
// TootIdentityProofIsExtendedBy returns true if the other's type extends from
// IdentityProof. Note that it returns false if the types are the same; see
// the "IsOrExtends" variant instead.
func TootIdentityProofIsExtendedBy(other vocab.Type) bool {
return typeidentityproof.IdentityProofIsExtendedBy(other)
}

View File

@@ -1,26 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package streams
import (
typeemoji "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_emoji"
typehashtag "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_hashtag"
typeidentityproof "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_identityproof"
vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
)
// TootTootEmojiExtends returns true if Emoji extends from the other's type.
func TootTootEmojiExtends(other vocab.Type) bool {
return typeemoji.TootEmojiExtends(other)
}
// TootTootHashtagExtends returns true if Hashtag extends from the other's type.
func TootTootHashtagExtends(other vocab.Type) bool {
return typehashtag.TootHashtagExtends(other)
}
// TootTootIdentityProofExtends returns true if IdentityProof extends from the
// other's type.
func TootTootIdentityProofExtends(other vocab.Type) bool {
return typeidentityproof.TootIdentityProofExtends(other)
}

View File

@@ -1,28 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package streams
import (
typeemoji "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_emoji"
typehashtag "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_hashtag"
typeidentityproof "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_identityproof"
vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
)
// IsOrExtendsTootEmoji returns true if the other provided type is the Emoji type
// or extends from the Emoji type.
func IsOrExtendsTootEmoji(other vocab.Type) bool {
return typeemoji.IsOrExtendsEmoji(other)
}
// IsOrExtendsTootHashtag returns true if the other provided type is the Hashtag
// type or extends from the Hashtag type.
func IsOrExtendsTootHashtag(other vocab.Type) bool {
return typehashtag.IsOrExtendsHashtag(other)
}
// IsOrExtendsTootIdentityProof returns true if the other provided type is the
// IdentityProof type or extends from the IdentityProof type.
func IsOrExtendsTootIdentityProof(other vocab.Type) bool {
return typeidentityproof.IsOrExtendsIdentityProof(other)
}

View File

@@ -1,56 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package streams
import (
propertyblurhash "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_blurhash"
propertydiscoverable "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_discoverable"
propertyfeatured "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_featured"
propertyfocalpoint "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_focalpoint"
propertyindexable "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_indexable"
propertysignaturealgorithm "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturealgorithm"
propertysignaturevalue "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturevalue"
propertyvoterscount "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_voterscount"
vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
)
// NewTootTootBlurhashProperty creates a new TootBlurhashProperty
func NewTootBlurhashProperty() vocab.TootBlurhashProperty {
return propertyblurhash.NewTootBlurhashProperty()
}
// NewTootTootDiscoverableProperty creates a new TootDiscoverableProperty
func NewTootDiscoverableProperty() vocab.TootDiscoverableProperty {
return propertydiscoverable.NewTootDiscoverableProperty()
}
// NewTootTootFeaturedProperty creates a new TootFeaturedProperty
func NewTootFeaturedProperty() vocab.TootFeaturedProperty {
return propertyfeatured.NewTootFeaturedProperty()
}
// NewTootTootFocalPointProperty creates a new TootFocalPointProperty
func NewTootFocalPointProperty() vocab.TootFocalPointProperty {
return propertyfocalpoint.NewTootFocalPointProperty()
}
// NewTootTootIndexableProperty creates a new TootIndexableProperty
func NewTootIndexableProperty() vocab.TootIndexableProperty {
return propertyindexable.NewTootIndexableProperty()
}
// NewTootTootSignatureAlgorithmProperty creates a new
// TootSignatureAlgorithmProperty
func NewTootSignatureAlgorithmProperty() vocab.TootSignatureAlgorithmProperty {
return propertysignaturealgorithm.NewTootSignatureAlgorithmProperty()
}
// NewTootTootSignatureValueProperty creates a new TootSignatureValueProperty
func NewTootSignatureValueProperty() vocab.TootSignatureValueProperty {
return propertysignaturevalue.NewTootSignatureValueProperty()
}
// NewTootTootVotersCountProperty creates a new TootVotersCountProperty
func NewTootVotersCountProperty() vocab.TootVotersCountProperty {
return propertyvoterscount.NewTootVotersCountProperty()
}

View File

@@ -1,25 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package streams
import (
typeemoji "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_emoji"
typehashtag "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_hashtag"
typeidentityproof "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_identityproof"
vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
)
// NewTootEmoji creates a new TootEmoji
func NewTootEmoji() vocab.TootEmoji {
return typeemoji.NewTootEmoji()
}
// NewTootHashtag creates a new TootHashtag
func NewTootHashtag() vocab.TootHashtag {
return typehashtag.NewTootHashtag()
}
// NewTootIdentityProof creates a new TootIdentityProof
func NewTootIdentityProof() vocab.TootIdentityProof {
return typeidentityproof.NewTootIdentityProof()
}

View File

@@ -1,14 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package streams
import (
typepublickey "codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/type_publickey"
vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
)
// W3IDSecurityV1PublicKeyIsDisjointWith returns true if PublicKey is disjoint
// with the other's type.
func W3IDSecurityV1PublicKeyIsDisjointWith(other vocab.Type) bool {
return typepublickey.PublicKeyIsDisjointWith(other)
}

View File

@@ -1,15 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package streams
import (
typepublickey "codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/type_publickey"
vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
)
// W3IDSecurityV1PublicKeyIsExtendedBy returns true if the other's type extends
// from PublicKey. Note that it returns false if the types are the same; see
// the "IsOrExtends" variant instead.
func W3IDSecurityV1PublicKeyIsExtendedBy(other vocab.Type) bool {
return typepublickey.PublicKeyIsExtendedBy(other)
}

View File

@@ -1,14 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package streams
import (
typepublickey "codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/type_publickey"
vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
)
// W3IDSecurityV1W3IDSecurityV1PublicKeyExtends returns true if PublicKey extends
// from the other's type.
func W3IDSecurityV1W3IDSecurityV1PublicKeyExtends(other vocab.Type) bool {
return typepublickey.W3IDSecurityV1PublicKeyExtends(other)
}

View File

@@ -1,14 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package streams
import (
typepublickey "codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/type_publickey"
vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
)
// IsOrExtendsW3IDSecurityV1PublicKey returns true if the other provided type is
// the PublicKey type or extends from the PublicKey type.
func IsOrExtendsW3IDSecurityV1PublicKey(other vocab.Type) bool {
return typepublickey.IsOrExtendsPublicKey(other)
}

View File

@@ -1,28 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package streams
import (
propertyowner "codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_owner"
propertypublickey "codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickey"
propertypublickeypem "codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickeypem"
vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
)
// NewW3IDSecurityV1W3IDSecurityV1OwnerProperty creates a new
// W3IDSecurityV1OwnerProperty
func NewW3IDSecurityV1OwnerProperty() vocab.W3IDSecurityV1OwnerProperty {
return propertyowner.NewW3IDSecurityV1OwnerProperty()
}
// NewW3IDSecurityV1W3IDSecurityV1PublicKeyProperty creates a new
// W3IDSecurityV1PublicKeyProperty
func NewW3IDSecurityV1PublicKeyProperty() vocab.W3IDSecurityV1PublicKeyProperty {
return propertypublickey.NewW3IDSecurityV1PublicKeyProperty()
}
// NewW3IDSecurityV1W3IDSecurityV1PublicKeyPemProperty creates a new
// W3IDSecurityV1PublicKeyPemProperty
func NewW3IDSecurityV1PublicKeyPemProperty() vocab.W3IDSecurityV1PublicKeyPemProperty {
return propertypublickeypem.NewW3IDSecurityV1PublicKeyPemProperty()
}

View File

@@ -1,13 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package streams
import (
typepublickey "codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/type_publickey"
vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
)
// NewW3IDSecurityV1PublicKey creates a new W3IDSecurityV1PublicKey
func NewW3IDSecurityV1PublicKey() vocab.W3IDSecurityV1PublicKey {
return typepublickey.NewW3IDSecurityV1PublicKey()
}

View File

@@ -1,289 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package streams
import (
vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
"context"
"errors"
)
// ErrNoCallbackMatch indicates a Resolver could not match the ActivityStreams value to a callback function.
var ErrNoCallbackMatch error = errors.New("activity stream did not match the callback function")
// ErrUnhandledType indicates that an ActivityStreams value has a type that is not handled by the code that has been generated.
var ErrUnhandledType error = errors.New("activity stream did not match any known types")
// ErrPredicateUnmatched indicates that a predicate is accepting a type or interface that does not match an ActivityStreams value's type or interface.
var ErrPredicateUnmatched error = errors.New("activity stream did not match type demanded by predicate")
// errCannotTypeAssertType indicates that the 'type' property returned by the ActivityStreams value cannot be type-asserted to its interface form.
var errCannotTypeAssertType error = errors.New("activity stream type cannot be asserted to its interface")
// ActivityStreamsInterface represents any ActivityStream value code-generated by
// go-fed or compatible with the generated interfaces.
type ActivityStreamsInterface interface {
// GetTypeName returns the ActiivtyStreams value's type.
GetTypeName() string
// VocabularyURI returns the vocabulary's URI as a string.
VocabularyURI() string
}
// Resolver represents any TypeResolver.
type Resolver interface {
// Resolve will attempt to resolve an untyped ActivityStreams value into a
// Go concrete type.
Resolve(ctx context.Context, o ActivityStreamsInterface) error
}
// IsUnmatchedErr is true when the error indicates that a Resolver was
// unsuccessful due to the ActivityStreams value not matching its callbacks or
// predicates.
func IsUnmatchedErr(err error) bool {
return err == ErrPredicateUnmatched || err == ErrUnhandledType || err == ErrNoCallbackMatch
}
// ToType attempts to resolve the generic JSON map into a Type.
func ToType(c context.Context, m map[string]interface{}) (t vocab.Type, err error) {
var r *JSONResolver
r, err = NewJSONResolver(func(ctx context.Context, i vocab.ActivityStreamsAccept) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsActivity) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsAdd) error {
t = i
return nil
}, func(ctx context.Context, i vocab.FunkwhaleAlbum) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsAnnounce) error {
t = i
return nil
}, func(ctx context.Context, i vocab.GoToSocialAnnounceApproval) error {
t = i
return nil
}, func(ctx context.Context, i vocab.GoToSocialAnnounceAuthorization) error {
t = i
return nil
}, func(ctx context.Context, i vocab.GoToSocialAnnounceRequest) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsApplication) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsArrive) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsArticle) error {
t = i
return nil
}, func(ctx context.Context, i vocab.FunkwhaleArtist) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsAudio) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsBlock) error {
t = i
return nil
}, func(ctx context.Context, i vocab.GoToSocialCanAnnounce) error {
t = i
return nil
}, func(ctx context.Context, i vocab.GoToSocialCanLike) error {
t = i
return nil
}, func(ctx context.Context, i vocab.GoToSocialCanQuote) error {
t = i
return nil
}, func(ctx context.Context, i vocab.GoToSocialCanReply) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsCollection) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsCollectionPage) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsCreate) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsDelete) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsDislike) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsDocument) error {
t = i
return nil
}, func(ctx context.Context, i vocab.TootEmoji) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsEndpoints) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsEvent) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsFlag) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsFollow) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsGroup) error {
t = i
return nil
}, func(ctx context.Context, i vocab.TootHashtag) error {
t = i
return nil
}, func(ctx context.Context, i vocab.TootIdentityProof) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsIgnore) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsImage) error {
t = i
return nil
}, func(ctx context.Context, i vocab.GoToSocialInteractionPolicy) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsIntransitiveActivity) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsInvite) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsJoin) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsLeave) error {
t = i
return nil
}, func(ctx context.Context, i vocab.FunkwhaleLibrary) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsLike) error {
t = i
return nil
}, func(ctx context.Context, i vocab.GoToSocialLikeApproval) error {
t = i
return nil
}, func(ctx context.Context, i vocab.GoToSocialLikeAuthorization) error {
t = i
return nil
}, func(ctx context.Context, i vocab.GoToSocialLikeRequest) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsLink) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsListen) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsMention) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsMove) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsNote) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsObject) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsOffer) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsOrderedCollection) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsOrderedCollectionPage) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsOrganization) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsPage) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsPerson) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsPlace) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsProfile) error {
t = i
return nil
}, func(ctx context.Context, i vocab.SchemaPropertyValue) error {
t = i
return nil
}, func(ctx context.Context, i vocab.W3IDSecurityV1PublicKey) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsQuestion) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsRead) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsReject) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsRelationship) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsRemove) error {
t = i
return nil
}, func(ctx context.Context, i vocab.GoToSocialReplyApproval) error {
t = i
return nil
}, func(ctx context.Context, i vocab.GoToSocialReplyAuthorization) error {
t = i
return nil
}, func(ctx context.Context, i vocab.GoToSocialReplyRequest) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsService) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsTentativeAccept) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsTentativeReject) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsTombstone) error {
t = i
return nil
}, func(ctx context.Context, i vocab.FunkwhaleTrack) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsTravel) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsUndo) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsUpdate) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsVideo) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsView) error {
t = i
return nil
})
if err != nil {
return
}
err = r.Resolve(c, m)
return
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,909 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package streams
import (
vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
"context"
"errors"
)
// TypeResolver resolves ActivityStreams values based on their type name.
type TypeResolver struct {
callbacks []interface{}
}
// NewTypeResolver creates a new Resolver that examines the type of an
// ActivityStream value to determine what callback function to pass the
// concretely typed value. The callback is guaranteed to receive a value whose
// underlying ActivityStreams type matches the concrete interface name in its
// signature. The callback functions must be of the form:
//
// func(context.Context, <TypeInterface>) error
//
// where TypeInterface is the code-generated interface for an ActivityStream
// type. An error is returned if a callback function does not match this
// signature.
func NewTypeResolver(callbacks ...interface{}) (*TypeResolver, error) {
for _, cb := range callbacks {
// Each callback function must satisfy one known function signature, or else we will generate a runtime error instead of silently fail.
switch cb.(type) {
case func(context.Context, vocab.ActivityStreamsAccept) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsActivity) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsAdd) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.FunkwhaleAlbum) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsAnnounce) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.GoToSocialAnnounceApproval) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.GoToSocialAnnounceAuthorization) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.GoToSocialAnnounceRequest) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsApplication) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsArrive) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsArticle) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.FunkwhaleArtist) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsAudio) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsBlock) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.GoToSocialCanAnnounce) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.GoToSocialCanLike) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.GoToSocialCanQuote) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.GoToSocialCanReply) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsCollection) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsCollectionPage) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsCreate) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsDelete) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsDislike) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsDocument) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.TootEmoji) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsEndpoints) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsEvent) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsFlag) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsFollow) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsGroup) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.TootHashtag) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.TootIdentityProof) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsIgnore) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsImage) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.GoToSocialInteractionPolicy) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsIntransitiveActivity) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsInvite) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsJoin) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsLeave) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.FunkwhaleLibrary) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsLike) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.GoToSocialLikeApproval) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.GoToSocialLikeAuthorization) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.GoToSocialLikeRequest) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsLink) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsListen) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsMention) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsMove) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsNote) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsObject) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsOffer) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsOrderedCollection) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsOrderedCollectionPage) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsOrganization) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsPage) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsPerson) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsPlace) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsProfile) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.SchemaPropertyValue) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.W3IDSecurityV1PublicKey) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsQuestion) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsRead) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsReject) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsRelationship) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsRemove) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.GoToSocialReplyApproval) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.GoToSocialReplyAuthorization) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.GoToSocialReplyRequest) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsService) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsTentativeAccept) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsTentativeReject) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsTombstone) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.FunkwhaleTrack) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsTravel) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsUndo) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsUpdate) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsVideo) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsView) error:
// Do nothing, this callback has a correct signature.
default:
return nil, errors.New("a callback function is of the wrong signature and would never be called")
}
}
return &TypeResolver{callbacks: callbacks}, nil
}
// Resolve applies the first callback function whose signature accepts the
// ActivityStreams value's type. This strictly assures that the callback
// function will only be passed ActivityStream objects whose type matches its
// interface. Returns an error if the ActivityStreams type does not match
// callbackers, is not a type handled by the generated code, or the value
// passed in is not go-fed compatible.
func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface) error {
for _, i := range this.callbacks {
if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Accept" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsAccept) error); ok {
if v, ok := o.(vocab.ActivityStreamsAccept); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Activity" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsActivity) error); ok {
if v, ok := o.(vocab.ActivityStreamsActivity); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Add" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsAdd) error); ok {
if v, ok := o.(vocab.ActivityStreamsAdd); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://funkwhale.audio/ns" && o.GetTypeName() == "Album" {
if fn, ok := i.(func(context.Context, vocab.FunkwhaleAlbum) error); ok {
if v, ok := o.(vocab.FunkwhaleAlbum); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Announce" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsAnnounce) error); ok {
if v, ok := o.(vocab.ActivityStreamsAnnounce); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "AnnounceApproval" {
if fn, ok := i.(func(context.Context, vocab.GoToSocialAnnounceApproval) error); ok {
if v, ok := o.(vocab.GoToSocialAnnounceApproval); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "AnnounceAuthorization" {
if fn, ok := i.(func(context.Context, vocab.GoToSocialAnnounceAuthorization) error); ok {
if v, ok := o.(vocab.GoToSocialAnnounceAuthorization); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "AnnounceRequest" {
if fn, ok := i.(func(context.Context, vocab.GoToSocialAnnounceRequest) error); ok {
if v, ok := o.(vocab.GoToSocialAnnounceRequest); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Application" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsApplication) error); ok {
if v, ok := o.(vocab.ActivityStreamsApplication); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Arrive" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsArrive) error); ok {
if v, ok := o.(vocab.ActivityStreamsArrive); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Article" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsArticle) error); ok {
if v, ok := o.(vocab.ActivityStreamsArticle); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://funkwhale.audio/ns" && o.GetTypeName() == "Artist" {
if fn, ok := i.(func(context.Context, vocab.FunkwhaleArtist) error); ok {
if v, ok := o.(vocab.FunkwhaleArtist); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Audio" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsAudio) error); ok {
if v, ok := o.(vocab.ActivityStreamsAudio); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Block" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsBlock) error); ok {
if v, ok := o.(vocab.ActivityStreamsBlock); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "CanAnnounce" {
if fn, ok := i.(func(context.Context, vocab.GoToSocialCanAnnounce) error); ok {
if v, ok := o.(vocab.GoToSocialCanAnnounce); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "CanLike" {
if fn, ok := i.(func(context.Context, vocab.GoToSocialCanLike) error); ok {
if v, ok := o.(vocab.GoToSocialCanLike); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "CanQuote" {
if fn, ok := i.(func(context.Context, vocab.GoToSocialCanQuote) error); ok {
if v, ok := o.(vocab.GoToSocialCanQuote); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "CanReply" {
if fn, ok := i.(func(context.Context, vocab.GoToSocialCanReply) error); ok {
if v, ok := o.(vocab.GoToSocialCanReply); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Collection" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsCollection) error); ok {
if v, ok := o.(vocab.ActivityStreamsCollection); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "CollectionPage" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsCollectionPage) error); ok {
if v, ok := o.(vocab.ActivityStreamsCollectionPage); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Create" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsCreate) error); ok {
if v, ok := o.(vocab.ActivityStreamsCreate); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Delete" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsDelete) error); ok {
if v, ok := o.(vocab.ActivityStreamsDelete); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Dislike" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsDislike) error); ok {
if v, ok := o.(vocab.ActivityStreamsDislike); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Document" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsDocument) error); ok {
if v, ok := o.(vocab.ActivityStreamsDocument); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "http://joinmastodon.org/ns" && o.GetTypeName() == "Emoji" {
if fn, ok := i.(func(context.Context, vocab.TootEmoji) error); ok {
if v, ok := o.(vocab.TootEmoji); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Endpoints" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsEndpoints) error); ok {
if v, ok := o.(vocab.ActivityStreamsEndpoints); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Event" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsEvent) error); ok {
if v, ok := o.(vocab.ActivityStreamsEvent); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Flag" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsFlag) error); ok {
if v, ok := o.(vocab.ActivityStreamsFlag); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Follow" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsFollow) error); ok {
if v, ok := o.(vocab.ActivityStreamsFollow); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Group" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsGroup) error); ok {
if v, ok := o.(vocab.ActivityStreamsGroup); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "http://joinmastodon.org/ns" && o.GetTypeName() == "Hashtag" {
if fn, ok := i.(func(context.Context, vocab.TootHashtag) error); ok {
if v, ok := o.(vocab.TootHashtag); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "http://joinmastodon.org/ns" && o.GetTypeName() == "IdentityProof" {
if fn, ok := i.(func(context.Context, vocab.TootIdentityProof) error); ok {
if v, ok := o.(vocab.TootIdentityProof); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Ignore" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsIgnore) error); ok {
if v, ok := o.(vocab.ActivityStreamsIgnore); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Image" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsImage) error); ok {
if v, ok := o.(vocab.ActivityStreamsImage); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "InteractionPolicy" {
if fn, ok := i.(func(context.Context, vocab.GoToSocialInteractionPolicy) error); ok {
if v, ok := o.(vocab.GoToSocialInteractionPolicy); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "IntransitiveActivity" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsIntransitiveActivity) error); ok {
if v, ok := o.(vocab.ActivityStreamsIntransitiveActivity); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Invite" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsInvite) error); ok {
if v, ok := o.(vocab.ActivityStreamsInvite); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Join" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsJoin) error); ok {
if v, ok := o.(vocab.ActivityStreamsJoin); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Leave" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsLeave) error); ok {
if v, ok := o.(vocab.ActivityStreamsLeave); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://funkwhale.audio/ns" && o.GetTypeName() == "Library" {
if fn, ok := i.(func(context.Context, vocab.FunkwhaleLibrary) error); ok {
if v, ok := o.(vocab.FunkwhaleLibrary); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Like" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsLike) error); ok {
if v, ok := o.(vocab.ActivityStreamsLike); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "LikeApproval" {
if fn, ok := i.(func(context.Context, vocab.GoToSocialLikeApproval) error); ok {
if v, ok := o.(vocab.GoToSocialLikeApproval); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "LikeAuthorization" {
if fn, ok := i.(func(context.Context, vocab.GoToSocialLikeAuthorization) error); ok {
if v, ok := o.(vocab.GoToSocialLikeAuthorization); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "LikeRequest" {
if fn, ok := i.(func(context.Context, vocab.GoToSocialLikeRequest) error); ok {
if v, ok := o.(vocab.GoToSocialLikeRequest); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Link" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsLink) error); ok {
if v, ok := o.(vocab.ActivityStreamsLink); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Listen" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsListen) error); ok {
if v, ok := o.(vocab.ActivityStreamsListen); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Mention" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsMention) error); ok {
if v, ok := o.(vocab.ActivityStreamsMention); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Move" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsMove) error); ok {
if v, ok := o.(vocab.ActivityStreamsMove); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Note" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsNote) error); ok {
if v, ok := o.(vocab.ActivityStreamsNote); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Object" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsObject) error); ok {
if v, ok := o.(vocab.ActivityStreamsObject); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Offer" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsOffer) error); ok {
if v, ok := o.(vocab.ActivityStreamsOffer); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "OrderedCollection" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsOrderedCollection) error); ok {
if v, ok := o.(vocab.ActivityStreamsOrderedCollection); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "OrderedCollectionPage" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsOrderedCollectionPage) error); ok {
if v, ok := o.(vocab.ActivityStreamsOrderedCollectionPage); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Organization" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsOrganization) error); ok {
if v, ok := o.(vocab.ActivityStreamsOrganization); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Page" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsPage) error); ok {
if v, ok := o.(vocab.ActivityStreamsPage); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Person" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsPerson) error); ok {
if v, ok := o.(vocab.ActivityStreamsPerson); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Place" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsPlace) error); ok {
if v, ok := o.(vocab.ActivityStreamsPlace); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Profile" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsProfile) error); ok {
if v, ok := o.(vocab.ActivityStreamsProfile); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "http://schema.org" && o.GetTypeName() == "PropertyValue" {
if fn, ok := i.(func(context.Context, vocab.SchemaPropertyValue) error); ok {
if v, ok := o.(vocab.SchemaPropertyValue); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://w3id.org/security/v1" && o.GetTypeName() == "PublicKey" {
if fn, ok := i.(func(context.Context, vocab.W3IDSecurityV1PublicKey) error); ok {
if v, ok := o.(vocab.W3IDSecurityV1PublicKey); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Question" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsQuestion) error); ok {
if v, ok := o.(vocab.ActivityStreamsQuestion); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Read" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsRead) error); ok {
if v, ok := o.(vocab.ActivityStreamsRead); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Reject" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsReject) error); ok {
if v, ok := o.(vocab.ActivityStreamsReject); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Relationship" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsRelationship) error); ok {
if v, ok := o.(vocab.ActivityStreamsRelationship); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Remove" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsRemove) error); ok {
if v, ok := o.(vocab.ActivityStreamsRemove); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "ReplyApproval" {
if fn, ok := i.(func(context.Context, vocab.GoToSocialReplyApproval) error); ok {
if v, ok := o.(vocab.GoToSocialReplyApproval); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "ReplyAuthorization" {
if fn, ok := i.(func(context.Context, vocab.GoToSocialReplyAuthorization) error); ok {
if v, ok := o.(vocab.GoToSocialReplyAuthorization); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "ReplyRequest" {
if fn, ok := i.(func(context.Context, vocab.GoToSocialReplyRequest) error); ok {
if v, ok := o.(vocab.GoToSocialReplyRequest); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Service" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsService) error); ok {
if v, ok := o.(vocab.ActivityStreamsService); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "TentativeAccept" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsTentativeAccept) error); ok {
if v, ok := o.(vocab.ActivityStreamsTentativeAccept); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "TentativeReject" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsTentativeReject) error); ok {
if v, ok := o.(vocab.ActivityStreamsTentativeReject); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Tombstone" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsTombstone) error); ok {
if v, ok := o.(vocab.ActivityStreamsTombstone); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://funkwhale.audio/ns" && o.GetTypeName() == "Track" {
if fn, ok := i.(func(context.Context, vocab.FunkwhaleTrack) error); ok {
if v, ok := o.(vocab.FunkwhaleTrack); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Travel" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsTravel) error); ok {
if v, ok := o.(vocab.ActivityStreamsTravel); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Undo" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsUndo) error); ok {
if v, ok := o.(vocab.ActivityStreamsUndo); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Update" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsUpdate) error); ok {
if v, ok := o.(vocab.ActivityStreamsUpdate); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Video" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsVideo) error); ok {
if v, ok := o.(vocab.ActivityStreamsVideo); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "View" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsView) error); ok {
if v, ok := o.(vocab.ActivityStreamsView); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else {
return ErrUnhandledType
}
}
return ErrNoCallbackMatch
}

View File

@@ -1,17 +0,0 @@
// Code generated by astool. DO NOT EDIT.
// Package propertyaccuracy contains the implementation for the accuracy property.
// All applications are strongly encouraged to use the interface instead of
// this concrete definition. The interfaces allow applications to consume only
// the types and properties needed and be independent of the go-fed
// implementation if another alternative implementation is created. This
// package is code-generated and subject to the same license as the go-fed
// tool used to generate it.
//
// This package is independent of other types' and properties' implementations
// by having a Manager injected into it to act as a factory for the concrete
// implementations. The implementations have been generated into their own
// separate subpackages for each vocabulary.
//
// Strongly consider using the interfaces instead of this package.
package propertyaccuracy

View File

@@ -1,15 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package propertyaccuracy
var mgr privateManager
// privateManager abstracts the code-generated manager that provides access to
// concrete implementations.
type privateManager interface{}
// SetManager sets the manager package-global variable. For internal use only, do
// not use as part of Application behavior. Must be called at golang init time.
func SetManager(m privateManager) {
mgr = m
}

View File

@@ -1,203 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package propertyaccuracy
import (
float "codeberg.org/superseriousbusiness/activity/streams/values/float"
vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
"fmt"
"net/url"
)
// ActivityStreamsAccuracyProperty is the functional property "accuracy". It is
// permitted to be a single default-valued value type.
type ActivityStreamsAccuracyProperty struct {
xmlschemaFloatMember float64
hasFloatMember bool
unknown interface{}
iri *url.URL
alias string
}
// DeserializeAccuracyProperty creates a "accuracy" property from an interface
// representation that has been unmarshalled from a text or binary format.
func DeserializeAccuracyProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsAccuracyProperty, error) {
alias := ""
if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
alias = a
}
propName := "accuracy"
if len(alias) > 0 {
// Use alias both to find the property, and set within the property.
propName = fmt.Sprintf("%s:%s", alias, "accuracy")
}
i, ok := m[propName]
if ok {
if s, ok := i.(string); ok {
u, err := url.Parse(s)
// If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
// Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
if err == nil && len(u.Scheme) > 0 {
this := &ActivityStreamsAccuracyProperty{
alias: alias,
iri: u,
}
return this, nil
}
}
if v, err := float.DeserializeFloat(i); err == nil {
this := &ActivityStreamsAccuracyProperty{
alias: alias,
hasFloatMember: true,
xmlschemaFloatMember: v,
}
return this, nil
}
this := &ActivityStreamsAccuracyProperty{
alias: alias,
unknown: i,
}
return this, nil
}
return nil, nil
}
// NewActivityStreamsAccuracyProperty creates a new accuracy property.
func NewActivityStreamsAccuracyProperty() *ActivityStreamsAccuracyProperty {
return &ActivityStreamsAccuracyProperty{alias: ""}
}
// Clear ensures no value of this property is set. Calling IsXMLSchemaFloat
// afterwards will return false.
func (this *ActivityStreamsAccuracyProperty) Clear() {
this.unknown = nil
this.iri = nil
this.hasFloatMember = false
}
// Get returns the value of this property. When IsXMLSchemaFloat returns false,
// Get will return any arbitrary value.
func (this ActivityStreamsAccuracyProperty) Get() float64 {
return this.xmlschemaFloatMember
}
// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
// return any arbitrary value.
func (this ActivityStreamsAccuracyProperty) GetIRI() *url.URL {
return this.iri
}
// HasAny returns true if the value or IRI is set.
func (this ActivityStreamsAccuracyProperty) HasAny() bool {
return this.IsXMLSchemaFloat() || this.iri != nil
}
// IsIRI returns true if this property is an IRI.
func (this ActivityStreamsAccuracyProperty) IsIRI() bool {
return this.iri != nil
}
// IsXMLSchemaFloat returns true if this property is set and not an IRI.
func (this ActivityStreamsAccuracyProperty) IsXMLSchemaFloat() bool {
return this.hasFloatMember
}
// JSONLDContext returns the JSONLD URIs required in the context string for this
// property and the specific values that are set. The value in the map is the
// alias used to import the property's value or values.
func (this ActivityStreamsAccuracyProperty) JSONLDContext() map[string]string {
m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
var child map[string]string
/*
Since the literal maps in this function are determined at
code-generation time, this loop should not overwrite an existing key with a
new value.
*/
for k, v := range child {
m[k] = v
}
return m
}
// KindIndex computes an arbitrary value for indexing this kind of value. This is
// a leaky API detail only for folks looking to replace the go-fed
// implementation. Applications should not use this method.
func (this ActivityStreamsAccuracyProperty) KindIndex() int {
if this.IsXMLSchemaFloat() {
return 0
}
if this.IsIRI() {
return -2
}
return -1
}
// LessThan compares two instances of this property with an arbitrary but stable
// comparison. Applications should not use this because it is only meant to
// help alternative implementations to go-fed to be able to normalize
// nonfunctional properties.
func (this ActivityStreamsAccuracyProperty) LessThan(o vocab.ActivityStreamsAccuracyProperty) bool {
// LessThan comparison for if either or both are IRIs.
if this.IsIRI() && o.IsIRI() {
return this.iri.String() < o.GetIRI().String()
} else if this.IsIRI() {
// IRIs are always less than other values, none, or unknowns
return true
} else if o.IsIRI() {
// This other, none, or unknown value is always greater than IRIs
return false
}
// LessThan comparison for the single value or unknown value.
if !this.IsXMLSchemaFloat() && !o.IsXMLSchemaFloat() {
// Both are unknowns.
return false
} else if this.IsXMLSchemaFloat() && !o.IsXMLSchemaFloat() {
// Values are always greater than unknown values.
return false
} else if !this.IsXMLSchemaFloat() && o.IsXMLSchemaFloat() {
// Unknowns are always less than known values.
return true
} else {
// Actual comparison.
return float.LessFloat(this.Get(), o.Get())
}
}
// Name returns the name of this property: "accuracy".
func (this ActivityStreamsAccuracyProperty) Name() string {
if len(this.alias) > 0 {
return this.alias + ":" + "accuracy"
} else {
return "accuracy"
}
}
// Serialize converts this into an interface representation suitable for
// marshalling into a text or binary format. Applications should not need this
// function as most typical use cases serialize types instead of individual
// properties. It is exposed for alternatives to go-fed implementations to use.
func (this ActivityStreamsAccuracyProperty) Serialize() (interface{}, error) {
if this.IsXMLSchemaFloat() {
return float.SerializeFloat(this.Get())
} else if this.IsIRI() {
return this.iri.String(), nil
}
return this.unknown, nil
}
// Set sets the value of this property. Calling IsXMLSchemaFloat afterwards will
// return true.
func (this *ActivityStreamsAccuracyProperty) Set(v float64) {
this.Clear()
this.xmlschemaFloatMember = v
this.hasFloatMember = true
}
// SetIRI sets the value of this property. Calling IsIRI afterwards will return
// true.
func (this *ActivityStreamsAccuracyProperty) SetIRI(v *url.URL) {
this.Clear()
this.iri = v
}

View File

@@ -1,17 +0,0 @@
// Code generated by astool. DO NOT EDIT.
// Package propertyactor contains the implementation for the actor property. All
// applications are strongly encouraged to use the interface instead of this
// concrete definition. The interfaces allow applications to consume only the
// types and properties needed and be independent of the go-fed implementation
// if another alternative implementation is created. This package is
// code-generated and subject to the same license as the go-fed tool used to
// generate it.
//
// This package is independent of other types' and properties' implementations
// by having a Manager injected into it to act as a factory for the concrete
// implementations. The implementations have been generated into their own
// separate subpackages for each vocabulary.
//
// Strongly consider using the interfaces instead of this package.
package propertyactor

View File

@@ -1,301 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package propertyactor
import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
var mgr privateManager
// privateManager abstracts the code-generated manager that provides access to
// concrete implementations.
type privateManager interface {
// DeserializeAcceptActivityStreams returns the deserialization method for
// the "ActivityStreamsAccept" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error)
// DeserializeActivityActivityStreams returns the deserialization method
// for the "ActivityStreamsActivity" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error)
// DeserializeAddActivityStreams returns the deserialization method for
// the "ActivityStreamsAdd" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error)
// DeserializeAlbumFunkwhale returns the deserialization method for the
// "FunkwhaleAlbum" non-functional property in the vocabulary
// "Funkwhale"
DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, error)
// DeserializeAnnounceActivityStreams returns the deserialization method
// for the "ActivityStreamsAnnounce" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error)
// DeserializeAnnounceApprovalGoToSocial returns the deserialization
// method for the "GoToSocialAnnounceApproval" non-functional property
// in the vocabulary "GoToSocial"
DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error)
// DeserializeAnnounceAuthorizationGoToSocial returns the deserialization
// method for the "GoToSocialAnnounceAuthorization" non-functional
// property in the vocabulary "GoToSocial"
DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error)
// DeserializeAnnounceRequestGoToSocial returns the deserialization method
// for the "GoToSocialAnnounceRequest" non-functional property in the
// vocabulary "GoToSocial"
DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error)
// DeserializeApplicationActivityStreams returns the deserialization
// method for the "ActivityStreamsApplication" non-functional property
// in the vocabulary "ActivityStreams"
DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error)
// DeserializeArriveActivityStreams returns the deserialization method for
// the "ActivityStreamsArrive" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error)
// DeserializeArticleActivityStreams returns the deserialization method
// for the "ActivityStreamsArticle" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error)
// DeserializeArtistFunkwhale returns the deserialization method for the
// "FunkwhaleArtist" non-functional property in the vocabulary
// "Funkwhale"
DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, error)
// DeserializeAudioActivityStreams returns the deserialization method for
// the "ActivityStreamsAudio" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error)
// DeserializeBlockActivityStreams returns the deserialization method for
// the "ActivityStreamsBlock" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error)
// DeserializeCollectionActivityStreams returns the deserialization method
// for the "ActivityStreamsCollection" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error)
// DeserializeCollectionPageActivityStreams returns the deserialization
// method for the "ActivityStreamsCollectionPage" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
// DeserializeCreateActivityStreams returns the deserialization method for
// the "ActivityStreamsCreate" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error)
// DeserializeDeleteActivityStreams returns the deserialization method for
// the "ActivityStreamsDelete" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error)
// DeserializeDislikeActivityStreams returns the deserialization method
// for the "ActivityStreamsDislike" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error)
// DeserializeDocumentActivityStreams returns the deserialization method
// for the "ActivityStreamsDocument" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
// DeserializeEmojiToot returns the deserialization method for the
// "TootEmoji" non-functional property in the vocabulary "Toot"
DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)
// DeserializeEventActivityStreams returns the deserialization method for
// the "ActivityStreamsEvent" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error)
// DeserializeFlagActivityStreams returns the deserialization method for
// the "ActivityStreamsFlag" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error)
// DeserializeFollowActivityStreams returns the deserialization method for
// the "ActivityStreamsFollow" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error)
// DeserializeGroupActivityStreams returns the deserialization method for
// the "ActivityStreamsGroup" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error)
// DeserializeHashtagToot returns the deserialization method for the
// "TootHashtag" non-functional property in the vocabulary "Toot"
DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, error)
// DeserializeIdentityProofToot returns the deserialization method for the
// "TootIdentityProof" non-functional property in the vocabulary "Toot"
DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error)
// DeserializeIgnoreActivityStreams returns the deserialization method for
// the "ActivityStreamsIgnore" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error)
// DeserializeImageActivityStreams returns the deserialization method for
// the "ActivityStreamsImage" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error)
// DeserializeIntransitiveActivityActivityStreams returns the
// deserialization method for the
// "ActivityStreamsIntransitiveActivity" non-functional property in
// the vocabulary "ActivityStreams"
DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error)
// DeserializeInviteActivityStreams returns the deserialization method for
// the "ActivityStreamsInvite" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error)
// DeserializeJoinActivityStreams returns the deserialization method for
// the "ActivityStreamsJoin" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error)
// DeserializeLeaveActivityStreams returns the deserialization method for
// the "ActivityStreamsLeave" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error)
// DeserializeLibraryFunkwhale returns the deserialization method for the
// "FunkwhaleLibrary" non-functional property in the vocabulary
// "Funkwhale"
DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, error)
// DeserializeLikeActivityStreams returns the deserialization method for
// the "ActivityStreamsLike" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error)
// DeserializeLikeApprovalGoToSocial returns the deserialization method
// for the "GoToSocialLikeApproval" non-functional property in the
// vocabulary "GoToSocial"
DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error)
// DeserializeLikeAuthorizationGoToSocial returns the deserialization
// method for the "GoToSocialLikeAuthorization" non-functional
// property in the vocabulary "GoToSocial"
DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error)
// DeserializeLikeRequestGoToSocial returns the deserialization method for
// the "GoToSocialLikeRequest" non-functional property in the
// vocabulary "GoToSocial"
DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error)
// DeserializeLinkActivityStreams returns the deserialization method for
// the "ActivityStreamsLink" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error)
// DeserializeListenActivityStreams returns the deserialization method for
// the "ActivityStreamsListen" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error)
// DeserializeMentionActivityStreams returns the deserialization method
// for the "ActivityStreamsMention" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error)
// DeserializeMoveActivityStreams returns the deserialization method for
// the "ActivityStreamsMove" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error)
// DeserializeNoteActivityStreams returns the deserialization method for
// the "ActivityStreamsNote" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error)
// DeserializeObjectActivityStreams returns the deserialization method for
// the "ActivityStreamsObject" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error)
// DeserializeOfferActivityStreams returns the deserialization method for
// the "ActivityStreamsOffer" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error)
// DeserializeOrderedCollectionActivityStreams returns the deserialization
// method for the "ActivityStreamsOrderedCollection" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error)
// DeserializeOrderedCollectionPageActivityStreams returns the
// deserialization method for the
// "ActivityStreamsOrderedCollectionPage" non-functional property in
// the vocabulary "ActivityStreams"
DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
// DeserializeOrganizationActivityStreams returns the deserialization
// method for the "ActivityStreamsOrganization" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error)
// DeserializePageActivityStreams returns the deserialization method for
// the "ActivityStreamsPage" non-functional property in the vocabulary
// "ActivityStreams"
DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error)
// DeserializePersonActivityStreams returns the deserialization method for
// the "ActivityStreamsPerson" non-functional property in the
// vocabulary "ActivityStreams"
DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error)
// DeserializePlaceActivityStreams returns the deserialization method for
// the "ActivityStreamsPlace" non-functional property in the
// vocabulary "ActivityStreams"
DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error)
// DeserializeProfileActivityStreams returns the deserialization method
// for the "ActivityStreamsProfile" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
// DeserializePropertyValueSchema returns the deserialization method for
// the "SchemaPropertyValue" non-functional property in the vocabulary
// "Schema"
DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, error)
// DeserializeQuestionActivityStreams returns the deserialization method
// for the "ActivityStreamsQuestion" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error)
// DeserializeReadActivityStreams returns the deserialization method for
// the "ActivityStreamsRead" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error)
// DeserializeRejectActivityStreams returns the deserialization method for
// the "ActivityStreamsReject" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error)
// DeserializeRelationshipActivityStreams returns the deserialization
// method for the "ActivityStreamsRelationship" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error)
// DeserializeRemoveActivityStreams returns the deserialization method for
// the "ActivityStreamsRemove" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error)
// DeserializeReplyApprovalGoToSocial returns the deserialization method
// for the "GoToSocialReplyApproval" non-functional property in the
// vocabulary "GoToSocial"
DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error)
// DeserializeReplyAuthorizationGoToSocial returns the deserialization
// method for the "GoToSocialReplyAuthorization" non-functional
// property in the vocabulary "GoToSocial"
DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error)
// DeserializeReplyRequestGoToSocial returns the deserialization method
// for the "GoToSocialReplyRequest" non-functional property in the
// vocabulary "GoToSocial"
DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error)
// DeserializeServiceActivityStreams returns the deserialization method
// for the "ActivityStreamsService" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error)
// DeserializeTentativeAcceptActivityStreams returns the deserialization
// method for the "ActivityStreamsTentativeAccept" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error)
// DeserializeTentativeRejectActivityStreams returns the deserialization
// method for the "ActivityStreamsTentativeReject" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error)
// DeserializeTombstoneActivityStreams returns the deserialization method
// for the "ActivityStreamsTombstone" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error)
// DeserializeTrackFunkwhale returns the deserialization method for the
// "FunkwhaleTrack" non-functional property in the vocabulary
// "Funkwhale"
DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, error)
// DeserializeTravelActivityStreams returns the deserialization method for
// the "ActivityStreamsTravel" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error)
// DeserializeUndoActivityStreams returns the deserialization method for
// the "ActivityStreamsUndo" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error)
// DeserializeUpdateActivityStreams returns the deserialization method for
// the "ActivityStreamsUpdate" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error)
// DeserializeVideoActivityStreams returns the deserialization method for
// the "ActivityStreamsVideo" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error)
// DeserializeViewActivityStreams returns the deserialization method for
// the "ActivityStreamsView" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error)
}
// SetManager sets the manager package-global variable. For internal use only, do
// not use as part of Application behavior. Must be called at golang init time.
func SetManager(m privateManager) {
mgr = m
}

View File

@@ -1,17 +0,0 @@
// Code generated by astool. DO NOT EDIT.
// Package propertyalsoknownas contains the implementation for the alsoKnownAs
// property. All applications are strongly encouraged to use the interface
// instead of this concrete definition. The interfaces allow applications to
// consume only the types and properties needed and be independent of the
// go-fed implementation if another alternative implementation is created.
// This package is code-generated and subject to the same license as the
// go-fed tool used to generate it.
//
// This package is independent of other types' and properties' implementations
// by having a Manager injected into it to act as a factory for the concrete
// implementations. The implementations have been generated into their own
// separate subpackages for each vocabulary.
//
// Strongly consider using the interfaces instead of this package.
package propertyalsoknownas

View File

@@ -1,15 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package propertyalsoknownas
var mgr privateManager
// privateManager abstracts the code-generated manager that provides access to
// concrete implementations.
type privateManager interface{}
// SetManager sets the manager package-global variable. For internal use only, do
// not use as part of Application behavior. Must be called at golang init time.
func SetManager(m privateManager) {
mgr = m
}

View File

@@ -1,509 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package propertyalsoknownas
import (
anyuri "codeberg.org/superseriousbusiness/activity/streams/values/anyURI"
vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
"fmt"
"net/url"
)
// ActivityStreamsAlsoKnownAsPropertyIterator is an iterator for a property. It is
// permitted to be a single nilable value type.
type ActivityStreamsAlsoKnownAsPropertyIterator struct {
xmlschemaAnyURIMember *url.URL
unknown interface{}
alias string
myIdx int
parent vocab.ActivityStreamsAlsoKnownAsProperty
}
// NewActivityStreamsAlsoKnownAsPropertyIterator creates a new
// ActivityStreamsAlsoKnownAs property.
func NewActivityStreamsAlsoKnownAsPropertyIterator() *ActivityStreamsAlsoKnownAsPropertyIterator {
return &ActivityStreamsAlsoKnownAsPropertyIterator{alias: ""}
}
// deserializeActivityStreamsAlsoKnownAsPropertyIterator creates an iterator from
// an element that has been unmarshalled from a text or binary format.
func deserializeActivityStreamsAlsoKnownAsPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsAlsoKnownAsPropertyIterator, error) {
alias := ""
if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
alias = a
}
if v, err := anyuri.DeserializeAnyURI(i); err == nil {
this := &ActivityStreamsAlsoKnownAsPropertyIterator{
alias: alias,
xmlschemaAnyURIMember: v,
}
return this, nil
}
this := &ActivityStreamsAlsoKnownAsPropertyIterator{
alias: alias,
unknown: i,
}
return this, nil
}
// Get returns the value of this property. When IsXMLSchemaAnyURI returns false,
// Get will return any arbitrary value.
func (this ActivityStreamsAlsoKnownAsPropertyIterator) Get() *url.URL {
return this.xmlschemaAnyURIMember
}
// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
// return any arbitrary value.
func (this ActivityStreamsAlsoKnownAsPropertyIterator) GetIRI() *url.URL {
return this.xmlschemaAnyURIMember
}
// HasAny returns true if the value or IRI is set.
func (this ActivityStreamsAlsoKnownAsPropertyIterator) HasAny() bool {
return this.IsXMLSchemaAnyURI()
}
// IsIRI returns true if this property is an IRI.
func (this ActivityStreamsAlsoKnownAsPropertyIterator) IsIRI() bool {
return this.xmlschemaAnyURIMember != nil
}
// IsXMLSchemaAnyURI returns true if this property is set and not an IRI.
func (this ActivityStreamsAlsoKnownAsPropertyIterator) IsXMLSchemaAnyURI() bool {
return this.xmlschemaAnyURIMember != nil
}
// JSONLDContext returns the JSONLD URIs required in the context string for this
// property and the specific values that are set. The value in the map is the
// alias used to import the property's value or values.
func (this ActivityStreamsAlsoKnownAsPropertyIterator) JSONLDContext() map[string]string {
m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
var child map[string]string
/*
Since the literal maps in this function are determined at
code-generation time, this loop should not overwrite an existing key with a
new value.
*/
for k, v := range child {
m[k] = v
}
return m
}
// KindIndex computes an arbitrary value for indexing this kind of value. This is
// a leaky API detail only for folks looking to replace the go-fed
// implementation. Applications should not use this method.
func (this ActivityStreamsAlsoKnownAsPropertyIterator) KindIndex() int {
if this.IsXMLSchemaAnyURI() {
return 0
}
if this.IsIRI() {
return -2
}
return -1
}
// LessThan compares two instances of this property with an arbitrary but stable
// comparison. Applications should not use this because it is only meant to
// help alternative implementations to go-fed to be able to normalize
// nonfunctional properties.
func (this ActivityStreamsAlsoKnownAsPropertyIterator) LessThan(o vocab.ActivityStreamsAlsoKnownAsPropertyIterator) bool {
if this.IsIRI() {
// IRIs are always less than other values, none, or unknowns
return true
} else if o.IsIRI() {
// This other, none, or unknown value is always greater than IRIs
return false
}
// LessThan comparison for the single value or unknown value.
if !this.IsXMLSchemaAnyURI() && !o.IsXMLSchemaAnyURI() {
// Both are unknowns.
return false
} else if this.IsXMLSchemaAnyURI() && !o.IsXMLSchemaAnyURI() {
// Values are always greater than unknown values.
return false
} else if !this.IsXMLSchemaAnyURI() && o.IsXMLSchemaAnyURI() {
// Unknowns are always less than known values.
return true
} else {
// Actual comparison.
return anyuri.LessAnyURI(this.Get(), o.Get())
}
}
// Name returns the name of this property: "ActivityStreamsAlsoKnownAs".
func (this ActivityStreamsAlsoKnownAsPropertyIterator) Name() string {
if len(this.alias) > 0 {
return this.alias + ":" + "ActivityStreamsAlsoKnownAs"
} else {
return "ActivityStreamsAlsoKnownAs"
}
}
// Next returns the next iterator, or nil if there is no next iterator.
func (this ActivityStreamsAlsoKnownAsPropertyIterator) Next() vocab.ActivityStreamsAlsoKnownAsPropertyIterator {
if this.myIdx+1 >= this.parent.Len() {
return nil
} else {
return this.parent.At(this.myIdx + 1)
}
}
// Prev returns the previous iterator, or nil if there is no previous iterator.
func (this ActivityStreamsAlsoKnownAsPropertyIterator) Prev() vocab.ActivityStreamsAlsoKnownAsPropertyIterator {
if this.myIdx-1 < 0 {
return nil
} else {
return this.parent.At(this.myIdx - 1)
}
}
// Set sets the value of this property. Calling IsXMLSchemaAnyURI afterwards will
// return true.
func (this *ActivityStreamsAlsoKnownAsPropertyIterator) Set(v *url.URL) {
this.clear()
this.xmlschemaAnyURIMember = v
}
// SetIRI sets the value of this property. Calling IsIRI afterwards will return
// true.
func (this *ActivityStreamsAlsoKnownAsPropertyIterator) SetIRI(v *url.URL) {
this.clear()
this.Set(v)
}
// clear ensures no value of this property is set. Calling IsXMLSchemaAnyURI
// afterwards will return false.
func (this *ActivityStreamsAlsoKnownAsPropertyIterator) clear() {
this.unknown = nil
this.xmlschemaAnyURIMember = nil
}
// serialize converts this into an interface representation suitable for
// marshalling into a text or binary format. Applications should not need this
// function as most typical use cases serialize types instead of individual
// properties. It is exposed for alternatives to go-fed implementations to use.
func (this ActivityStreamsAlsoKnownAsPropertyIterator) serialize() (interface{}, error) {
if this.IsXMLSchemaAnyURI() {
return anyuri.SerializeAnyURI(this.Get())
}
return this.unknown, nil
}
// ActivityStreamsAlsoKnownAsProperty is the non-functional property
// "alsoKnownAs". It is permitted to have one or more values, and of different
// value types.
type ActivityStreamsAlsoKnownAsProperty struct {
properties []*ActivityStreamsAlsoKnownAsPropertyIterator
alias string
}
// DeserializeAlsoKnownAsProperty creates a "alsoKnownAs" property from an
// interface representation that has been unmarshalled from a text or binary
// format.
func DeserializeAlsoKnownAsProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAlsoKnownAsProperty, error) {
alias := ""
if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
alias = a
}
propName := "alsoKnownAs"
if len(alias) > 0 {
propName = fmt.Sprintf("%s:%s", alias, "alsoKnownAs")
}
i, ok := m[propName]
if ok {
this := &ActivityStreamsAlsoKnownAsProperty{
alias: alias,
properties: []*ActivityStreamsAlsoKnownAsPropertyIterator{},
}
if list, ok := i.([]interface{}); ok {
for _, iterator := range list {
if p, err := deserializeActivityStreamsAlsoKnownAsPropertyIterator(iterator, aliasMap); err != nil {
return this, err
} else if p != nil {
this.properties = append(this.properties, p)
}
}
} else {
if p, err := deserializeActivityStreamsAlsoKnownAsPropertyIterator(i, aliasMap); err != nil {
return this, err
} else if p != nil {
this.properties = append(this.properties, p)
}
}
// Set up the properties for iteration.
for idx, ele := range this.properties {
ele.parent = this
ele.myIdx = idx
}
return this, nil
}
return nil, nil
}
// NewActivityStreamsAlsoKnownAsProperty creates a new alsoKnownAs property.
func NewActivityStreamsAlsoKnownAsProperty() *ActivityStreamsAlsoKnownAsProperty {
return &ActivityStreamsAlsoKnownAsProperty{alias: ""}
}
// AppendIRI appends an IRI value to the back of a list of the property
// "alsoKnownAs"
func (this *ActivityStreamsAlsoKnownAsProperty) AppendIRI(v *url.URL) {
this.properties = append(this.properties, &ActivityStreamsAlsoKnownAsPropertyIterator{
alias: this.alias,
myIdx: this.Len(),
parent: this,
xmlschemaAnyURIMember: v,
})
}
// AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of the
// property "alsoKnownAs". Invalidates iterators that are traversing using
// Prev.
func (this *ActivityStreamsAlsoKnownAsProperty) AppendXMLSchemaAnyURI(v *url.URL) {
this.properties = append(this.properties, &ActivityStreamsAlsoKnownAsPropertyIterator{
alias: this.alias,
myIdx: this.Len(),
parent: this,
xmlschemaAnyURIMember: v,
})
}
// At returns the property value for the specified index. Panics if the index is
// out of bounds.
func (this ActivityStreamsAlsoKnownAsProperty) At(index int) vocab.ActivityStreamsAlsoKnownAsPropertyIterator {
return this.properties[index]
}
// Begin returns the first iterator, or nil if empty. Can be used with the
// iterator's Next method and this property's End method to iterate from front
// to back through all values.
func (this ActivityStreamsAlsoKnownAsProperty) Begin() vocab.ActivityStreamsAlsoKnownAsPropertyIterator {
if this.Empty() {
return nil
} else {
return this.properties[0]
}
}
// Empty returns returns true if there are no elements.
func (this ActivityStreamsAlsoKnownAsProperty) Empty() bool {
return this.Len() == 0
}
// End returns beyond-the-last iterator, which is nil. Can be used with the
// iterator's Next method and this property's Begin method to iterate from
// front to back through all values.
func (this ActivityStreamsAlsoKnownAsProperty) End() vocab.ActivityStreamsAlsoKnownAsPropertyIterator {
return nil
}
// Insert inserts an IRI value at the specified index for a property
// "alsoKnownAs". Existing elements at that index and higher are shifted back
// once. Invalidates all iterators.
func (this *ActivityStreamsAlsoKnownAsProperty) InsertIRI(idx int, v *url.URL) {
this.properties = append(this.properties, nil)
copy(this.properties[idx+1:], this.properties[idx:])
this.properties[idx] = &ActivityStreamsAlsoKnownAsPropertyIterator{
alias: this.alias,
myIdx: idx,
parent: this,
xmlschemaAnyURIMember: v,
}
for i := idx; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for a
// property "alsoKnownAs". Existing elements at that index and higher are
// shifted back once. Invalidates all iterators.
func (this *ActivityStreamsAlsoKnownAsProperty) InsertXMLSchemaAnyURI(idx int, v *url.URL) {
this.properties = append(this.properties, nil)
copy(this.properties[idx+1:], this.properties[idx:])
this.properties[idx] = &ActivityStreamsAlsoKnownAsPropertyIterator{
alias: this.alias,
myIdx: idx,
parent: this,
xmlschemaAnyURIMember: v,
}
for i := idx; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// JSONLDContext returns the JSONLD URIs required in the context string for this
// property and the specific values that are set. The value in the map is the
// alias used to import the property's value or values.
func (this ActivityStreamsAlsoKnownAsProperty) JSONLDContext() map[string]string {
m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
for _, elem := range this.properties {
child := elem.JSONLDContext()
/*
Since the literal maps in this function are determined at
code-generation time, this loop should not overwrite an existing key with a
new value.
*/
for k, v := range child {
m[k] = v
}
}
return m
}
// KindIndex computes an arbitrary value for indexing this kind of value. This is
// a leaky API method specifically needed only for alternate implementations
// for go-fed. Applications should not use this method. Panics if the index is
// out of bounds.
func (this ActivityStreamsAlsoKnownAsProperty) KindIndex(idx int) int {
return this.properties[idx].KindIndex()
}
// Len returns the number of values that exist for the "alsoKnownAs" property.
func (this ActivityStreamsAlsoKnownAsProperty) Len() (length int) {
return len(this.properties)
}
// Less computes whether another property is less than this one. Mixing types
// results in a consistent but arbitrary ordering
func (this ActivityStreamsAlsoKnownAsProperty) Less(i, j int) bool {
idx1 := this.KindIndex(i)
idx2 := this.KindIndex(j)
if idx1 < idx2 {
return true
} else if idx1 == idx2 {
if idx1 == 0 {
lhs := this.properties[i].Get()
rhs := this.properties[j].Get()
return anyuri.LessAnyURI(lhs, rhs)
} else if idx1 == -2 {
lhs := this.properties[i].GetIRI()
rhs := this.properties[j].GetIRI()
return lhs.String() < rhs.String()
}
}
return false
}
// LessThan compares two instances of this property with an arbitrary but stable
// comparison. Applications should not use this because it is only meant to
// help alternative implementations to go-fed to be able to normalize
// nonfunctional properties.
func (this ActivityStreamsAlsoKnownAsProperty) LessThan(o vocab.ActivityStreamsAlsoKnownAsProperty) bool {
l1 := this.Len()
l2 := o.Len()
l := l1
if l2 < l1 {
l = l2
}
for i := 0; i < l; i++ {
if this.properties[i].LessThan(o.At(i)) {
return true
} else if o.At(i).LessThan(this.properties[i]) {
return false
}
}
return l1 < l2
}
// Name returns the name of this property ("alsoKnownAs") with any alias.
func (this ActivityStreamsAlsoKnownAsProperty) Name() string {
if len(this.alias) > 0 {
return this.alias + ":" + "alsoKnownAs"
} else {
return "alsoKnownAs"
}
}
// PrependIRI prepends an IRI value to the front of a list of the property
// "alsoKnownAs".
func (this *ActivityStreamsAlsoKnownAsProperty) PrependIRI(v *url.URL) {
this.properties = append([]*ActivityStreamsAlsoKnownAsPropertyIterator{{
alias: this.alias,
myIdx: 0,
parent: this,
xmlschemaAnyURIMember: v,
}}, this.properties...)
for i := 1; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list of the
// property "alsoKnownAs". Invalidates all iterators.
func (this *ActivityStreamsAlsoKnownAsProperty) PrependXMLSchemaAnyURI(v *url.URL) {
this.properties = append([]*ActivityStreamsAlsoKnownAsPropertyIterator{{
alias: this.alias,
myIdx: 0,
parent: this,
xmlschemaAnyURIMember: v,
}}, this.properties...)
for i := 1; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// Remove deletes an element at the specified index from a list of the property
// "alsoKnownAs", regardless of its type. Panics if the index is out of
// bounds. Invalidates all iterators.
func (this *ActivityStreamsAlsoKnownAsProperty) Remove(idx int) {
(this.properties)[idx].parent = nil
copy((this.properties)[idx:], (this.properties)[idx+1:])
(this.properties)[len(this.properties)-1] = &ActivityStreamsAlsoKnownAsPropertyIterator{}
this.properties = (this.properties)[:len(this.properties)-1]
for i := idx; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// Serialize converts this into an interface representation suitable for
// marshalling into a text or binary format. Applications should not need this
// function as most typical use cases serialize types instead of individual
// properties. It is exposed for alternatives to go-fed implementations to use.
func (this ActivityStreamsAlsoKnownAsProperty) Serialize() (interface{}, error) {
s := make([]interface{}, 0, len(this.properties))
for _, iterator := range this.properties {
if b, err := iterator.serialize(); err != nil {
return s, err
} else {
s = append(s, b)
}
}
// Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example.
if len(s) == 1 {
return s[0], nil
}
return s, nil
}
// Set sets a anyURI value to be at the specified index for the property
// "alsoKnownAs". Panics if the index is out of bounds. Invalidates all
// iterators.
func (this *ActivityStreamsAlsoKnownAsProperty) Set(idx int, v *url.URL) {
(this.properties)[idx].parent = nil
(this.properties)[idx] = &ActivityStreamsAlsoKnownAsPropertyIterator{
alias: this.alias,
myIdx: idx,
parent: this,
xmlschemaAnyURIMember: v,
}
}
// SetIRI sets an IRI value to be at the specified index for the property
// "alsoKnownAs". Panics if the index is out of bounds.
func (this *ActivityStreamsAlsoKnownAsProperty) SetIRI(idx int, v *url.URL) {
(this.properties)[idx].parent = nil
(this.properties)[idx] = &ActivityStreamsAlsoKnownAsPropertyIterator{
alias: this.alias,
myIdx: idx,
parent: this,
xmlschemaAnyURIMember: v,
}
}
// Swap swaps the location of values at two indices for the "alsoKnownAs" property.
func (this ActivityStreamsAlsoKnownAsProperty) Swap(i, j int) {
this.properties[i], this.properties[j] = this.properties[j], this.properties[i]
}

View File

@@ -1,17 +0,0 @@
// Code generated by astool. DO NOT EDIT.
// Package propertyaltitude contains the implementation for the altitude property.
// All applications are strongly encouraged to use the interface instead of
// this concrete definition. The interfaces allow applications to consume only
// the types and properties needed and be independent of the go-fed
// implementation if another alternative implementation is created. This
// package is code-generated and subject to the same license as the go-fed
// tool used to generate it.
//
// This package is independent of other types' and properties' implementations
// by having a Manager injected into it to act as a factory for the concrete
// implementations. The implementations have been generated into their own
// separate subpackages for each vocabulary.
//
// Strongly consider using the interfaces instead of this package.
package propertyaltitude

View File

@@ -1,15 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package propertyaltitude
var mgr privateManager
// privateManager abstracts the code-generated manager that provides access to
// concrete implementations.
type privateManager interface{}
// SetManager sets the manager package-global variable. For internal use only, do
// not use as part of Application behavior. Must be called at golang init time.
func SetManager(m privateManager) {
mgr = m
}

View File

@@ -1,203 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package propertyaltitude
import (
float "codeberg.org/superseriousbusiness/activity/streams/values/float"
vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
"fmt"
"net/url"
)
// ActivityStreamsAltitudeProperty is the functional property "altitude". It is
// permitted to be a single default-valued value type.
type ActivityStreamsAltitudeProperty struct {
xmlschemaFloatMember float64
hasFloatMember bool
unknown interface{}
iri *url.URL
alias string
}
// DeserializeAltitudeProperty creates a "altitude" property from an interface
// representation that has been unmarshalled from a text or binary format.
func DeserializeAltitudeProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsAltitudeProperty, error) {
alias := ""
if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
alias = a
}
propName := "altitude"
if len(alias) > 0 {
// Use alias both to find the property, and set within the property.
propName = fmt.Sprintf("%s:%s", alias, "altitude")
}
i, ok := m[propName]
if ok {
if s, ok := i.(string); ok {
u, err := url.Parse(s)
// If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
// Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
if err == nil && len(u.Scheme) > 0 {
this := &ActivityStreamsAltitudeProperty{
alias: alias,
iri: u,
}
return this, nil
}
}
if v, err := float.DeserializeFloat(i); err == nil {
this := &ActivityStreamsAltitudeProperty{
alias: alias,
hasFloatMember: true,
xmlschemaFloatMember: v,
}
return this, nil
}
this := &ActivityStreamsAltitudeProperty{
alias: alias,
unknown: i,
}
return this, nil
}
return nil, nil
}
// NewActivityStreamsAltitudeProperty creates a new altitude property.
func NewActivityStreamsAltitudeProperty() *ActivityStreamsAltitudeProperty {
return &ActivityStreamsAltitudeProperty{alias: ""}
}
// Clear ensures no value of this property is set. Calling IsXMLSchemaFloat
// afterwards will return false.
func (this *ActivityStreamsAltitudeProperty) Clear() {
this.unknown = nil
this.iri = nil
this.hasFloatMember = false
}
// Get returns the value of this property. When IsXMLSchemaFloat returns false,
// Get will return any arbitrary value.
func (this ActivityStreamsAltitudeProperty) Get() float64 {
return this.xmlschemaFloatMember
}
// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
// return any arbitrary value.
func (this ActivityStreamsAltitudeProperty) GetIRI() *url.URL {
return this.iri
}
// HasAny returns true if the value or IRI is set.
func (this ActivityStreamsAltitudeProperty) HasAny() bool {
return this.IsXMLSchemaFloat() || this.iri != nil
}
// IsIRI returns true if this property is an IRI.
func (this ActivityStreamsAltitudeProperty) IsIRI() bool {
return this.iri != nil
}
// IsXMLSchemaFloat returns true if this property is set and not an IRI.
func (this ActivityStreamsAltitudeProperty) IsXMLSchemaFloat() bool {
return this.hasFloatMember
}
// JSONLDContext returns the JSONLD URIs required in the context string for this
// property and the specific values that are set. The value in the map is the
// alias used to import the property's value or values.
func (this ActivityStreamsAltitudeProperty) JSONLDContext() map[string]string {
m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
var child map[string]string
/*
Since the literal maps in this function are determined at
code-generation time, this loop should not overwrite an existing key with a
new value.
*/
for k, v := range child {
m[k] = v
}
return m
}
// KindIndex computes an arbitrary value for indexing this kind of value. This is
// a leaky API detail only for folks looking to replace the go-fed
// implementation. Applications should not use this method.
func (this ActivityStreamsAltitudeProperty) KindIndex() int {
if this.IsXMLSchemaFloat() {
return 0
}
if this.IsIRI() {
return -2
}
return -1
}
// LessThan compares two instances of this property with an arbitrary but stable
// comparison. Applications should not use this because it is only meant to
// help alternative implementations to go-fed to be able to normalize
// nonfunctional properties.
func (this ActivityStreamsAltitudeProperty) LessThan(o vocab.ActivityStreamsAltitudeProperty) bool {
// LessThan comparison for if either or both are IRIs.
if this.IsIRI() && o.IsIRI() {
return this.iri.String() < o.GetIRI().String()
} else if this.IsIRI() {
// IRIs are always less than other values, none, or unknowns
return true
} else if o.IsIRI() {
// This other, none, or unknown value is always greater than IRIs
return false
}
// LessThan comparison for the single value or unknown value.
if !this.IsXMLSchemaFloat() && !o.IsXMLSchemaFloat() {
// Both are unknowns.
return false
} else if this.IsXMLSchemaFloat() && !o.IsXMLSchemaFloat() {
// Values are always greater than unknown values.
return false
} else if !this.IsXMLSchemaFloat() && o.IsXMLSchemaFloat() {
// Unknowns are always less than known values.
return true
} else {
// Actual comparison.
return float.LessFloat(this.Get(), o.Get())
}
}
// Name returns the name of this property: "altitude".
func (this ActivityStreamsAltitudeProperty) Name() string {
if len(this.alias) > 0 {
return this.alias + ":" + "altitude"
} else {
return "altitude"
}
}
// Serialize converts this into an interface representation suitable for
// marshalling into a text or binary format. Applications should not need this
// function as most typical use cases serialize types instead of individual
// properties. It is exposed for alternatives to go-fed implementations to use.
func (this ActivityStreamsAltitudeProperty) Serialize() (interface{}, error) {
if this.IsXMLSchemaFloat() {
return float.SerializeFloat(this.Get())
} else if this.IsIRI() {
return this.iri.String(), nil
}
return this.unknown, nil
}
// Set sets the value of this property. Calling IsXMLSchemaFloat afterwards will
// return true.
func (this *ActivityStreamsAltitudeProperty) Set(v float64) {
this.Clear()
this.xmlschemaFloatMember = v
this.hasFloatMember = true
}
// SetIRI sets the value of this property. Calling IsIRI afterwards will return
// true.
func (this *ActivityStreamsAltitudeProperty) SetIRI(v *url.URL) {
this.Clear()
this.iri = v
}

View File

@@ -1,17 +0,0 @@
// Code generated by astool. DO NOT EDIT.
// Package propertyanyof contains the implementation for the anyOf property. All
// applications are strongly encouraged to use the interface instead of this
// concrete definition. The interfaces allow applications to consume only the
// types and properties needed and be independent of the go-fed implementation
// if another alternative implementation is created. This package is
// code-generated and subject to the same license as the go-fed tool used to
// generate it.
//
// This package is independent of other types' and properties' implementations
// by having a Manager injected into it to act as a factory for the concrete
// implementations. The implementations have been generated into their own
// separate subpackages for each vocabulary.
//
// Strongly consider using the interfaces instead of this package.
package propertyanyof

View File

@@ -1,301 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package propertyanyof
import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
var mgr privateManager
// privateManager abstracts the code-generated manager that provides access to
// concrete implementations.
type privateManager interface {
// DeserializeAcceptActivityStreams returns the deserialization method for
// the "ActivityStreamsAccept" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error)
// DeserializeActivityActivityStreams returns the deserialization method
// for the "ActivityStreamsActivity" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error)
// DeserializeAddActivityStreams returns the deserialization method for
// the "ActivityStreamsAdd" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error)
// DeserializeAlbumFunkwhale returns the deserialization method for the
// "FunkwhaleAlbum" non-functional property in the vocabulary
// "Funkwhale"
DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, error)
// DeserializeAnnounceActivityStreams returns the deserialization method
// for the "ActivityStreamsAnnounce" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error)
// DeserializeAnnounceApprovalGoToSocial returns the deserialization
// method for the "GoToSocialAnnounceApproval" non-functional property
// in the vocabulary "GoToSocial"
DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error)
// DeserializeAnnounceAuthorizationGoToSocial returns the deserialization
// method for the "GoToSocialAnnounceAuthorization" non-functional
// property in the vocabulary "GoToSocial"
DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error)
// DeserializeAnnounceRequestGoToSocial returns the deserialization method
// for the "GoToSocialAnnounceRequest" non-functional property in the
// vocabulary "GoToSocial"
DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error)
// DeserializeApplicationActivityStreams returns the deserialization
// method for the "ActivityStreamsApplication" non-functional property
// in the vocabulary "ActivityStreams"
DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error)
// DeserializeArriveActivityStreams returns the deserialization method for
// the "ActivityStreamsArrive" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error)
// DeserializeArticleActivityStreams returns the deserialization method
// for the "ActivityStreamsArticle" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error)
// DeserializeArtistFunkwhale returns the deserialization method for the
// "FunkwhaleArtist" non-functional property in the vocabulary
// "Funkwhale"
DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, error)
// DeserializeAudioActivityStreams returns the deserialization method for
// the "ActivityStreamsAudio" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error)
// DeserializeBlockActivityStreams returns the deserialization method for
// the "ActivityStreamsBlock" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error)
// DeserializeCollectionActivityStreams returns the deserialization method
// for the "ActivityStreamsCollection" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error)
// DeserializeCollectionPageActivityStreams returns the deserialization
// method for the "ActivityStreamsCollectionPage" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
// DeserializeCreateActivityStreams returns the deserialization method for
// the "ActivityStreamsCreate" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error)
// DeserializeDeleteActivityStreams returns the deserialization method for
// the "ActivityStreamsDelete" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error)
// DeserializeDislikeActivityStreams returns the deserialization method
// for the "ActivityStreamsDislike" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error)
// DeserializeDocumentActivityStreams returns the deserialization method
// for the "ActivityStreamsDocument" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
// DeserializeEmojiToot returns the deserialization method for the
// "TootEmoji" non-functional property in the vocabulary "Toot"
DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)
// DeserializeEventActivityStreams returns the deserialization method for
// the "ActivityStreamsEvent" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error)
// DeserializeFlagActivityStreams returns the deserialization method for
// the "ActivityStreamsFlag" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error)
// DeserializeFollowActivityStreams returns the deserialization method for
// the "ActivityStreamsFollow" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error)
// DeserializeGroupActivityStreams returns the deserialization method for
// the "ActivityStreamsGroup" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error)
// DeserializeHashtagToot returns the deserialization method for the
// "TootHashtag" non-functional property in the vocabulary "Toot"
DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, error)
// DeserializeIdentityProofToot returns the deserialization method for the
// "TootIdentityProof" non-functional property in the vocabulary "Toot"
DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error)
// DeserializeIgnoreActivityStreams returns the deserialization method for
// the "ActivityStreamsIgnore" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error)
// DeserializeImageActivityStreams returns the deserialization method for
// the "ActivityStreamsImage" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error)
// DeserializeIntransitiveActivityActivityStreams returns the
// deserialization method for the
// "ActivityStreamsIntransitiveActivity" non-functional property in
// the vocabulary "ActivityStreams"
DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error)
// DeserializeInviteActivityStreams returns the deserialization method for
// the "ActivityStreamsInvite" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error)
// DeserializeJoinActivityStreams returns the deserialization method for
// the "ActivityStreamsJoin" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error)
// DeserializeLeaveActivityStreams returns the deserialization method for
// the "ActivityStreamsLeave" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error)
// DeserializeLibraryFunkwhale returns the deserialization method for the
// "FunkwhaleLibrary" non-functional property in the vocabulary
// "Funkwhale"
DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, error)
// DeserializeLikeActivityStreams returns the deserialization method for
// the "ActivityStreamsLike" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error)
// DeserializeLikeApprovalGoToSocial returns the deserialization method
// for the "GoToSocialLikeApproval" non-functional property in the
// vocabulary "GoToSocial"
DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error)
// DeserializeLikeAuthorizationGoToSocial returns the deserialization
// method for the "GoToSocialLikeAuthorization" non-functional
// property in the vocabulary "GoToSocial"
DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error)
// DeserializeLikeRequestGoToSocial returns the deserialization method for
// the "GoToSocialLikeRequest" non-functional property in the
// vocabulary "GoToSocial"
DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error)
// DeserializeLinkActivityStreams returns the deserialization method for
// the "ActivityStreamsLink" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error)
// DeserializeListenActivityStreams returns the deserialization method for
// the "ActivityStreamsListen" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error)
// DeserializeMentionActivityStreams returns the deserialization method
// for the "ActivityStreamsMention" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error)
// DeserializeMoveActivityStreams returns the deserialization method for
// the "ActivityStreamsMove" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error)
// DeserializeNoteActivityStreams returns the deserialization method for
// the "ActivityStreamsNote" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error)
// DeserializeObjectActivityStreams returns the deserialization method for
// the "ActivityStreamsObject" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error)
// DeserializeOfferActivityStreams returns the deserialization method for
// the "ActivityStreamsOffer" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error)
// DeserializeOrderedCollectionActivityStreams returns the deserialization
// method for the "ActivityStreamsOrderedCollection" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error)
// DeserializeOrderedCollectionPageActivityStreams returns the
// deserialization method for the
// "ActivityStreamsOrderedCollectionPage" non-functional property in
// the vocabulary "ActivityStreams"
DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
// DeserializeOrganizationActivityStreams returns the deserialization
// method for the "ActivityStreamsOrganization" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error)
// DeserializePageActivityStreams returns the deserialization method for
// the "ActivityStreamsPage" non-functional property in the vocabulary
// "ActivityStreams"
DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error)
// DeserializePersonActivityStreams returns the deserialization method for
// the "ActivityStreamsPerson" non-functional property in the
// vocabulary "ActivityStreams"
DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error)
// DeserializePlaceActivityStreams returns the deserialization method for
// the "ActivityStreamsPlace" non-functional property in the
// vocabulary "ActivityStreams"
DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error)
// DeserializeProfileActivityStreams returns the deserialization method
// for the "ActivityStreamsProfile" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
// DeserializePropertyValueSchema returns the deserialization method for
// the "SchemaPropertyValue" non-functional property in the vocabulary
// "Schema"
DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, error)
// DeserializeQuestionActivityStreams returns the deserialization method
// for the "ActivityStreamsQuestion" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error)
// DeserializeReadActivityStreams returns the deserialization method for
// the "ActivityStreamsRead" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error)
// DeserializeRejectActivityStreams returns the deserialization method for
// the "ActivityStreamsReject" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error)
// DeserializeRelationshipActivityStreams returns the deserialization
// method for the "ActivityStreamsRelationship" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error)
// DeserializeRemoveActivityStreams returns the deserialization method for
// the "ActivityStreamsRemove" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error)
// DeserializeReplyApprovalGoToSocial returns the deserialization method
// for the "GoToSocialReplyApproval" non-functional property in the
// vocabulary "GoToSocial"
DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error)
// DeserializeReplyAuthorizationGoToSocial returns the deserialization
// method for the "GoToSocialReplyAuthorization" non-functional
// property in the vocabulary "GoToSocial"
DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error)
// DeserializeReplyRequestGoToSocial returns the deserialization method
// for the "GoToSocialReplyRequest" non-functional property in the
// vocabulary "GoToSocial"
DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error)
// DeserializeServiceActivityStreams returns the deserialization method
// for the "ActivityStreamsService" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error)
// DeserializeTentativeAcceptActivityStreams returns the deserialization
// method for the "ActivityStreamsTentativeAccept" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error)
// DeserializeTentativeRejectActivityStreams returns the deserialization
// method for the "ActivityStreamsTentativeReject" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error)
// DeserializeTombstoneActivityStreams returns the deserialization method
// for the "ActivityStreamsTombstone" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error)
// DeserializeTrackFunkwhale returns the deserialization method for the
// "FunkwhaleTrack" non-functional property in the vocabulary
// "Funkwhale"
DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, error)
// DeserializeTravelActivityStreams returns the deserialization method for
// the "ActivityStreamsTravel" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error)
// DeserializeUndoActivityStreams returns the deserialization method for
// the "ActivityStreamsUndo" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error)
// DeserializeUpdateActivityStreams returns the deserialization method for
// the "ActivityStreamsUpdate" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error)
// DeserializeVideoActivityStreams returns the deserialization method for
// the "ActivityStreamsVideo" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error)
// DeserializeViewActivityStreams returns the deserialization method for
// the "ActivityStreamsView" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error)
}
// SetManager sets the manager package-global variable. For internal use only, do
// not use as part of Application behavior. Must be called at golang init time.
func SetManager(m privateManager) {
mgr = m
}

View File

@@ -1,17 +0,0 @@
// Code generated by astool. DO NOT EDIT.
// Package propertyattachment contains the implementation for the attachment
// property. All applications are strongly encouraged to use the interface
// instead of this concrete definition. The interfaces allow applications to
// consume only the types and properties needed and be independent of the
// go-fed implementation if another alternative implementation is created.
// This package is code-generated and subject to the same license as the
// go-fed tool used to generate it.
//
// This package is independent of other types' and properties' implementations
// by having a Manager injected into it to act as a factory for the concrete
// implementations. The implementations have been generated into their own
// separate subpackages for each vocabulary.
//
// Strongly consider using the interfaces instead of this package.
package propertyattachment

View File

@@ -1,301 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package propertyattachment
import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
var mgr privateManager
// privateManager abstracts the code-generated manager that provides access to
// concrete implementations.
type privateManager interface {
// DeserializeAcceptActivityStreams returns the deserialization method for
// the "ActivityStreamsAccept" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error)
// DeserializeActivityActivityStreams returns the deserialization method
// for the "ActivityStreamsActivity" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error)
// DeserializeAddActivityStreams returns the deserialization method for
// the "ActivityStreamsAdd" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error)
// DeserializeAlbumFunkwhale returns the deserialization method for the
// "FunkwhaleAlbum" non-functional property in the vocabulary
// "Funkwhale"
DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, error)
// DeserializeAnnounceActivityStreams returns the deserialization method
// for the "ActivityStreamsAnnounce" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error)
// DeserializeAnnounceApprovalGoToSocial returns the deserialization
// method for the "GoToSocialAnnounceApproval" non-functional property
// in the vocabulary "GoToSocial"
DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error)
// DeserializeAnnounceAuthorizationGoToSocial returns the deserialization
// method for the "GoToSocialAnnounceAuthorization" non-functional
// property in the vocabulary "GoToSocial"
DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error)
// DeserializeAnnounceRequestGoToSocial returns the deserialization method
// for the "GoToSocialAnnounceRequest" non-functional property in the
// vocabulary "GoToSocial"
DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error)
// DeserializeApplicationActivityStreams returns the deserialization
// method for the "ActivityStreamsApplication" non-functional property
// in the vocabulary "ActivityStreams"
DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error)
// DeserializeArriveActivityStreams returns the deserialization method for
// the "ActivityStreamsArrive" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error)
// DeserializeArticleActivityStreams returns the deserialization method
// for the "ActivityStreamsArticle" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error)
// DeserializeArtistFunkwhale returns the deserialization method for the
// "FunkwhaleArtist" non-functional property in the vocabulary
// "Funkwhale"
DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, error)
// DeserializeAudioActivityStreams returns the deserialization method for
// the "ActivityStreamsAudio" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error)
// DeserializeBlockActivityStreams returns the deserialization method for
// the "ActivityStreamsBlock" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error)
// DeserializeCollectionActivityStreams returns the deserialization method
// for the "ActivityStreamsCollection" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error)
// DeserializeCollectionPageActivityStreams returns the deserialization
// method for the "ActivityStreamsCollectionPage" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
// DeserializeCreateActivityStreams returns the deserialization method for
// the "ActivityStreamsCreate" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error)
// DeserializeDeleteActivityStreams returns the deserialization method for
// the "ActivityStreamsDelete" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error)
// DeserializeDislikeActivityStreams returns the deserialization method
// for the "ActivityStreamsDislike" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error)
// DeserializeDocumentActivityStreams returns the deserialization method
// for the "ActivityStreamsDocument" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
// DeserializeEmojiToot returns the deserialization method for the
// "TootEmoji" non-functional property in the vocabulary "Toot"
DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)
// DeserializeEventActivityStreams returns the deserialization method for
// the "ActivityStreamsEvent" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error)
// DeserializeFlagActivityStreams returns the deserialization method for
// the "ActivityStreamsFlag" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error)
// DeserializeFollowActivityStreams returns the deserialization method for
// the "ActivityStreamsFollow" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error)
// DeserializeGroupActivityStreams returns the deserialization method for
// the "ActivityStreamsGroup" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error)
// DeserializeHashtagToot returns the deserialization method for the
// "TootHashtag" non-functional property in the vocabulary "Toot"
DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, error)
// DeserializeIdentityProofToot returns the deserialization method for the
// "TootIdentityProof" non-functional property in the vocabulary "Toot"
DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error)
// DeserializeIgnoreActivityStreams returns the deserialization method for
// the "ActivityStreamsIgnore" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error)
// DeserializeImageActivityStreams returns the deserialization method for
// the "ActivityStreamsImage" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error)
// DeserializeIntransitiveActivityActivityStreams returns the
// deserialization method for the
// "ActivityStreamsIntransitiveActivity" non-functional property in
// the vocabulary "ActivityStreams"
DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error)
// DeserializeInviteActivityStreams returns the deserialization method for
// the "ActivityStreamsInvite" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error)
// DeserializeJoinActivityStreams returns the deserialization method for
// the "ActivityStreamsJoin" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error)
// DeserializeLeaveActivityStreams returns the deserialization method for
// the "ActivityStreamsLeave" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error)
// DeserializeLibraryFunkwhale returns the deserialization method for the
// "FunkwhaleLibrary" non-functional property in the vocabulary
// "Funkwhale"
DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, error)
// DeserializeLikeActivityStreams returns the deserialization method for
// the "ActivityStreamsLike" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error)
// DeserializeLikeApprovalGoToSocial returns the deserialization method
// for the "GoToSocialLikeApproval" non-functional property in the
// vocabulary "GoToSocial"
DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error)
// DeserializeLikeAuthorizationGoToSocial returns the deserialization
// method for the "GoToSocialLikeAuthorization" non-functional
// property in the vocabulary "GoToSocial"
DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error)
// DeserializeLikeRequestGoToSocial returns the deserialization method for
// the "GoToSocialLikeRequest" non-functional property in the
// vocabulary "GoToSocial"
DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error)
// DeserializeLinkActivityStreams returns the deserialization method for
// the "ActivityStreamsLink" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error)
// DeserializeListenActivityStreams returns the deserialization method for
// the "ActivityStreamsListen" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error)
// DeserializeMentionActivityStreams returns the deserialization method
// for the "ActivityStreamsMention" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error)
// DeserializeMoveActivityStreams returns the deserialization method for
// the "ActivityStreamsMove" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error)
// DeserializeNoteActivityStreams returns the deserialization method for
// the "ActivityStreamsNote" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error)
// DeserializeObjectActivityStreams returns the deserialization method for
// the "ActivityStreamsObject" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error)
// DeserializeOfferActivityStreams returns the deserialization method for
// the "ActivityStreamsOffer" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error)
// DeserializeOrderedCollectionActivityStreams returns the deserialization
// method for the "ActivityStreamsOrderedCollection" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error)
// DeserializeOrderedCollectionPageActivityStreams returns the
// deserialization method for the
// "ActivityStreamsOrderedCollectionPage" non-functional property in
// the vocabulary "ActivityStreams"
DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
// DeserializeOrganizationActivityStreams returns the deserialization
// method for the "ActivityStreamsOrganization" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error)
// DeserializePageActivityStreams returns the deserialization method for
// the "ActivityStreamsPage" non-functional property in the vocabulary
// "ActivityStreams"
DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error)
// DeserializePersonActivityStreams returns the deserialization method for
// the "ActivityStreamsPerson" non-functional property in the
// vocabulary "ActivityStreams"
DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error)
// DeserializePlaceActivityStreams returns the deserialization method for
// the "ActivityStreamsPlace" non-functional property in the
// vocabulary "ActivityStreams"
DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error)
// DeserializeProfileActivityStreams returns the deserialization method
// for the "ActivityStreamsProfile" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
// DeserializePropertyValueSchema returns the deserialization method for
// the "SchemaPropertyValue" non-functional property in the vocabulary
// "Schema"
DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, error)
// DeserializeQuestionActivityStreams returns the deserialization method
// for the "ActivityStreamsQuestion" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error)
// DeserializeReadActivityStreams returns the deserialization method for
// the "ActivityStreamsRead" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error)
// DeserializeRejectActivityStreams returns the deserialization method for
// the "ActivityStreamsReject" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error)
// DeserializeRelationshipActivityStreams returns the deserialization
// method for the "ActivityStreamsRelationship" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error)
// DeserializeRemoveActivityStreams returns the deserialization method for
// the "ActivityStreamsRemove" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error)
// DeserializeReplyApprovalGoToSocial returns the deserialization method
// for the "GoToSocialReplyApproval" non-functional property in the
// vocabulary "GoToSocial"
DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error)
// DeserializeReplyAuthorizationGoToSocial returns the deserialization
// method for the "GoToSocialReplyAuthorization" non-functional
// property in the vocabulary "GoToSocial"
DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error)
// DeserializeReplyRequestGoToSocial returns the deserialization method
// for the "GoToSocialReplyRequest" non-functional property in the
// vocabulary "GoToSocial"
DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error)
// DeserializeServiceActivityStreams returns the deserialization method
// for the "ActivityStreamsService" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error)
// DeserializeTentativeAcceptActivityStreams returns the deserialization
// method for the "ActivityStreamsTentativeAccept" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error)
// DeserializeTentativeRejectActivityStreams returns the deserialization
// method for the "ActivityStreamsTentativeReject" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error)
// DeserializeTombstoneActivityStreams returns the deserialization method
// for the "ActivityStreamsTombstone" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error)
// DeserializeTrackFunkwhale returns the deserialization method for the
// "FunkwhaleTrack" non-functional property in the vocabulary
// "Funkwhale"
DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, error)
// DeserializeTravelActivityStreams returns the deserialization method for
// the "ActivityStreamsTravel" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error)
// DeserializeUndoActivityStreams returns the deserialization method for
// the "ActivityStreamsUndo" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error)
// DeserializeUpdateActivityStreams returns the deserialization method for
// the "ActivityStreamsUpdate" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error)
// DeserializeVideoActivityStreams returns the deserialization method for
// the "ActivityStreamsVideo" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error)
// DeserializeViewActivityStreams returns the deserialization method for
// the "ActivityStreamsView" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error)
}
// SetManager sets the manager package-global variable. For internal use only, do
// not use as part of Application behavior. Must be called at golang init time.
func SetManager(m privateManager) {
mgr = m
}

View File

@@ -1,17 +0,0 @@
// Code generated by astool. DO NOT EDIT.
// Package propertyattributedto contains the implementation for the attributedTo
// property. All applications are strongly encouraged to use the interface
// instead of this concrete definition. The interfaces allow applications to
// consume only the types and properties needed and be independent of the
// go-fed implementation if another alternative implementation is created.
// This package is code-generated and subject to the same license as the
// go-fed tool used to generate it.
//
// This package is independent of other types' and properties' implementations
// by having a Manager injected into it to act as a factory for the concrete
// implementations. The implementations have been generated into their own
// separate subpackages for each vocabulary.
//
// Strongly consider using the interfaces instead of this package.
package propertyattributedto

View File

@@ -1,301 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package propertyattributedto
import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
var mgr privateManager
// privateManager abstracts the code-generated manager that provides access to
// concrete implementations.
type privateManager interface {
// DeserializeAcceptActivityStreams returns the deserialization method for
// the "ActivityStreamsAccept" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error)
// DeserializeActivityActivityStreams returns the deserialization method
// for the "ActivityStreamsActivity" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error)
// DeserializeAddActivityStreams returns the deserialization method for
// the "ActivityStreamsAdd" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error)
// DeserializeAlbumFunkwhale returns the deserialization method for the
// "FunkwhaleAlbum" non-functional property in the vocabulary
// "Funkwhale"
DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, error)
// DeserializeAnnounceActivityStreams returns the deserialization method
// for the "ActivityStreamsAnnounce" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error)
// DeserializeAnnounceApprovalGoToSocial returns the deserialization
// method for the "GoToSocialAnnounceApproval" non-functional property
// in the vocabulary "GoToSocial"
DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error)
// DeserializeAnnounceAuthorizationGoToSocial returns the deserialization
// method for the "GoToSocialAnnounceAuthorization" non-functional
// property in the vocabulary "GoToSocial"
DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error)
// DeserializeAnnounceRequestGoToSocial returns the deserialization method
// for the "GoToSocialAnnounceRequest" non-functional property in the
// vocabulary "GoToSocial"
DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error)
// DeserializeApplicationActivityStreams returns the deserialization
// method for the "ActivityStreamsApplication" non-functional property
// in the vocabulary "ActivityStreams"
DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error)
// DeserializeArriveActivityStreams returns the deserialization method for
// the "ActivityStreamsArrive" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error)
// DeserializeArticleActivityStreams returns the deserialization method
// for the "ActivityStreamsArticle" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error)
// DeserializeArtistFunkwhale returns the deserialization method for the
// "FunkwhaleArtist" non-functional property in the vocabulary
// "Funkwhale"
DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, error)
// DeserializeAudioActivityStreams returns the deserialization method for
// the "ActivityStreamsAudio" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error)
// DeserializeBlockActivityStreams returns the deserialization method for
// the "ActivityStreamsBlock" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error)
// DeserializeCollectionActivityStreams returns the deserialization method
// for the "ActivityStreamsCollection" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error)
// DeserializeCollectionPageActivityStreams returns the deserialization
// method for the "ActivityStreamsCollectionPage" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
// DeserializeCreateActivityStreams returns the deserialization method for
// the "ActivityStreamsCreate" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error)
// DeserializeDeleteActivityStreams returns the deserialization method for
// the "ActivityStreamsDelete" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error)
// DeserializeDislikeActivityStreams returns the deserialization method
// for the "ActivityStreamsDislike" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error)
// DeserializeDocumentActivityStreams returns the deserialization method
// for the "ActivityStreamsDocument" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
// DeserializeEmojiToot returns the deserialization method for the
// "TootEmoji" non-functional property in the vocabulary "Toot"
DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)
// DeserializeEventActivityStreams returns the deserialization method for
// the "ActivityStreamsEvent" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error)
// DeserializeFlagActivityStreams returns the deserialization method for
// the "ActivityStreamsFlag" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error)
// DeserializeFollowActivityStreams returns the deserialization method for
// the "ActivityStreamsFollow" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error)
// DeserializeGroupActivityStreams returns the deserialization method for
// the "ActivityStreamsGroup" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error)
// DeserializeHashtagToot returns the deserialization method for the
// "TootHashtag" non-functional property in the vocabulary "Toot"
DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, error)
// DeserializeIdentityProofToot returns the deserialization method for the
// "TootIdentityProof" non-functional property in the vocabulary "Toot"
DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error)
// DeserializeIgnoreActivityStreams returns the deserialization method for
// the "ActivityStreamsIgnore" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error)
// DeserializeImageActivityStreams returns the deserialization method for
// the "ActivityStreamsImage" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error)
// DeserializeIntransitiveActivityActivityStreams returns the
// deserialization method for the
// "ActivityStreamsIntransitiveActivity" non-functional property in
// the vocabulary "ActivityStreams"
DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error)
// DeserializeInviteActivityStreams returns the deserialization method for
// the "ActivityStreamsInvite" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error)
// DeserializeJoinActivityStreams returns the deserialization method for
// the "ActivityStreamsJoin" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error)
// DeserializeLeaveActivityStreams returns the deserialization method for
// the "ActivityStreamsLeave" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error)
// DeserializeLibraryFunkwhale returns the deserialization method for the
// "FunkwhaleLibrary" non-functional property in the vocabulary
// "Funkwhale"
DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, error)
// DeserializeLikeActivityStreams returns the deserialization method for
// the "ActivityStreamsLike" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error)
// DeserializeLikeApprovalGoToSocial returns the deserialization method
// for the "GoToSocialLikeApproval" non-functional property in the
// vocabulary "GoToSocial"
DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error)
// DeserializeLikeAuthorizationGoToSocial returns the deserialization
// method for the "GoToSocialLikeAuthorization" non-functional
// property in the vocabulary "GoToSocial"
DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error)
// DeserializeLikeRequestGoToSocial returns the deserialization method for
// the "GoToSocialLikeRequest" non-functional property in the
// vocabulary "GoToSocial"
DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error)
// DeserializeLinkActivityStreams returns the deserialization method for
// the "ActivityStreamsLink" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error)
// DeserializeListenActivityStreams returns the deserialization method for
// the "ActivityStreamsListen" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error)
// DeserializeMentionActivityStreams returns the deserialization method
// for the "ActivityStreamsMention" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error)
// DeserializeMoveActivityStreams returns the deserialization method for
// the "ActivityStreamsMove" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error)
// DeserializeNoteActivityStreams returns the deserialization method for
// the "ActivityStreamsNote" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error)
// DeserializeObjectActivityStreams returns the deserialization method for
// the "ActivityStreamsObject" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error)
// DeserializeOfferActivityStreams returns the deserialization method for
// the "ActivityStreamsOffer" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error)
// DeserializeOrderedCollectionActivityStreams returns the deserialization
// method for the "ActivityStreamsOrderedCollection" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error)
// DeserializeOrderedCollectionPageActivityStreams returns the
// deserialization method for the
// "ActivityStreamsOrderedCollectionPage" non-functional property in
// the vocabulary "ActivityStreams"
DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
// DeserializeOrganizationActivityStreams returns the deserialization
// method for the "ActivityStreamsOrganization" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error)
// DeserializePageActivityStreams returns the deserialization method for
// the "ActivityStreamsPage" non-functional property in the vocabulary
// "ActivityStreams"
DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error)
// DeserializePersonActivityStreams returns the deserialization method for
// the "ActivityStreamsPerson" non-functional property in the
// vocabulary "ActivityStreams"
DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error)
// DeserializePlaceActivityStreams returns the deserialization method for
// the "ActivityStreamsPlace" non-functional property in the
// vocabulary "ActivityStreams"
DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error)
// DeserializeProfileActivityStreams returns the deserialization method
// for the "ActivityStreamsProfile" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
// DeserializePropertyValueSchema returns the deserialization method for
// the "SchemaPropertyValue" non-functional property in the vocabulary
// "Schema"
DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, error)
// DeserializeQuestionActivityStreams returns the deserialization method
// for the "ActivityStreamsQuestion" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error)
// DeserializeReadActivityStreams returns the deserialization method for
// the "ActivityStreamsRead" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error)
// DeserializeRejectActivityStreams returns the deserialization method for
// the "ActivityStreamsReject" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error)
// DeserializeRelationshipActivityStreams returns the deserialization
// method for the "ActivityStreamsRelationship" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error)
// DeserializeRemoveActivityStreams returns the deserialization method for
// the "ActivityStreamsRemove" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error)
// DeserializeReplyApprovalGoToSocial returns the deserialization method
// for the "GoToSocialReplyApproval" non-functional property in the
// vocabulary "GoToSocial"
DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error)
// DeserializeReplyAuthorizationGoToSocial returns the deserialization
// method for the "GoToSocialReplyAuthorization" non-functional
// property in the vocabulary "GoToSocial"
DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error)
// DeserializeReplyRequestGoToSocial returns the deserialization method
// for the "GoToSocialReplyRequest" non-functional property in the
// vocabulary "GoToSocial"
DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error)
// DeserializeServiceActivityStreams returns the deserialization method
// for the "ActivityStreamsService" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error)
// DeserializeTentativeAcceptActivityStreams returns the deserialization
// method for the "ActivityStreamsTentativeAccept" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error)
// DeserializeTentativeRejectActivityStreams returns the deserialization
// method for the "ActivityStreamsTentativeReject" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error)
// DeserializeTombstoneActivityStreams returns the deserialization method
// for the "ActivityStreamsTombstone" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error)
// DeserializeTrackFunkwhale returns the deserialization method for the
// "FunkwhaleTrack" non-functional property in the vocabulary
// "Funkwhale"
DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, error)
// DeserializeTravelActivityStreams returns the deserialization method for
// the "ActivityStreamsTravel" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error)
// DeserializeUndoActivityStreams returns the deserialization method for
// the "ActivityStreamsUndo" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error)
// DeserializeUpdateActivityStreams returns the deserialization method for
// the "ActivityStreamsUpdate" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error)
// DeserializeVideoActivityStreams returns the deserialization method for
// the "ActivityStreamsVideo" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error)
// DeserializeViewActivityStreams returns the deserialization method for
// the "ActivityStreamsView" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error)
}
// SetManager sets the manager package-global variable. For internal use only, do
// not use as part of Application behavior. Must be called at golang init time.
func SetManager(m privateManager) {
mgr = m
}

View File

@@ -1,17 +0,0 @@
// Code generated by astool. DO NOT EDIT.
// Package propertyaudience contains the implementation for the audience property.
// All applications are strongly encouraged to use the interface instead of
// this concrete definition. The interfaces allow applications to consume only
// the types and properties needed and be independent of the go-fed
// implementation if another alternative implementation is created. This
// package is code-generated and subject to the same license as the go-fed
// tool used to generate it.
//
// This package is independent of other types' and properties' implementations
// by having a Manager injected into it to act as a factory for the concrete
// implementations. The implementations have been generated into their own
// separate subpackages for each vocabulary.
//
// Strongly consider using the interfaces instead of this package.
package propertyaudience

View File

@@ -1,301 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package propertyaudience
import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
var mgr privateManager
// privateManager abstracts the code-generated manager that provides access to
// concrete implementations.
type privateManager interface {
// DeserializeAcceptActivityStreams returns the deserialization method for
// the "ActivityStreamsAccept" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error)
// DeserializeActivityActivityStreams returns the deserialization method
// for the "ActivityStreamsActivity" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error)
// DeserializeAddActivityStreams returns the deserialization method for
// the "ActivityStreamsAdd" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error)
// DeserializeAlbumFunkwhale returns the deserialization method for the
// "FunkwhaleAlbum" non-functional property in the vocabulary
// "Funkwhale"
DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, error)
// DeserializeAnnounceActivityStreams returns the deserialization method
// for the "ActivityStreamsAnnounce" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error)
// DeserializeAnnounceApprovalGoToSocial returns the deserialization
// method for the "GoToSocialAnnounceApproval" non-functional property
// in the vocabulary "GoToSocial"
DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error)
// DeserializeAnnounceAuthorizationGoToSocial returns the deserialization
// method for the "GoToSocialAnnounceAuthorization" non-functional
// property in the vocabulary "GoToSocial"
DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error)
// DeserializeAnnounceRequestGoToSocial returns the deserialization method
// for the "GoToSocialAnnounceRequest" non-functional property in the
// vocabulary "GoToSocial"
DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error)
// DeserializeApplicationActivityStreams returns the deserialization
// method for the "ActivityStreamsApplication" non-functional property
// in the vocabulary "ActivityStreams"
DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error)
// DeserializeArriveActivityStreams returns the deserialization method for
// the "ActivityStreamsArrive" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error)
// DeserializeArticleActivityStreams returns the deserialization method
// for the "ActivityStreamsArticle" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error)
// DeserializeArtistFunkwhale returns the deserialization method for the
// "FunkwhaleArtist" non-functional property in the vocabulary
// "Funkwhale"
DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, error)
// DeserializeAudioActivityStreams returns the deserialization method for
// the "ActivityStreamsAudio" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error)
// DeserializeBlockActivityStreams returns the deserialization method for
// the "ActivityStreamsBlock" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error)
// DeserializeCollectionActivityStreams returns the deserialization method
// for the "ActivityStreamsCollection" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error)
// DeserializeCollectionPageActivityStreams returns the deserialization
// method for the "ActivityStreamsCollectionPage" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
// DeserializeCreateActivityStreams returns the deserialization method for
// the "ActivityStreamsCreate" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error)
// DeserializeDeleteActivityStreams returns the deserialization method for
// the "ActivityStreamsDelete" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error)
// DeserializeDislikeActivityStreams returns the deserialization method
// for the "ActivityStreamsDislike" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error)
// DeserializeDocumentActivityStreams returns the deserialization method
// for the "ActivityStreamsDocument" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
// DeserializeEmojiToot returns the deserialization method for the
// "TootEmoji" non-functional property in the vocabulary "Toot"
DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)
// DeserializeEventActivityStreams returns the deserialization method for
// the "ActivityStreamsEvent" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error)
// DeserializeFlagActivityStreams returns the deserialization method for
// the "ActivityStreamsFlag" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error)
// DeserializeFollowActivityStreams returns the deserialization method for
// the "ActivityStreamsFollow" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error)
// DeserializeGroupActivityStreams returns the deserialization method for
// the "ActivityStreamsGroup" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error)
// DeserializeHashtagToot returns the deserialization method for the
// "TootHashtag" non-functional property in the vocabulary "Toot"
DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, error)
// DeserializeIdentityProofToot returns the deserialization method for the
// "TootIdentityProof" non-functional property in the vocabulary "Toot"
DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error)
// DeserializeIgnoreActivityStreams returns the deserialization method for
// the "ActivityStreamsIgnore" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error)
// DeserializeImageActivityStreams returns the deserialization method for
// the "ActivityStreamsImage" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error)
// DeserializeIntransitiveActivityActivityStreams returns the
// deserialization method for the
// "ActivityStreamsIntransitiveActivity" non-functional property in
// the vocabulary "ActivityStreams"
DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error)
// DeserializeInviteActivityStreams returns the deserialization method for
// the "ActivityStreamsInvite" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error)
// DeserializeJoinActivityStreams returns the deserialization method for
// the "ActivityStreamsJoin" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error)
// DeserializeLeaveActivityStreams returns the deserialization method for
// the "ActivityStreamsLeave" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error)
// DeserializeLibraryFunkwhale returns the deserialization method for the
// "FunkwhaleLibrary" non-functional property in the vocabulary
// "Funkwhale"
DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, error)
// DeserializeLikeActivityStreams returns the deserialization method for
// the "ActivityStreamsLike" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error)
// DeserializeLikeApprovalGoToSocial returns the deserialization method
// for the "GoToSocialLikeApproval" non-functional property in the
// vocabulary "GoToSocial"
DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error)
// DeserializeLikeAuthorizationGoToSocial returns the deserialization
// method for the "GoToSocialLikeAuthorization" non-functional
// property in the vocabulary "GoToSocial"
DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error)
// DeserializeLikeRequestGoToSocial returns the deserialization method for
// the "GoToSocialLikeRequest" non-functional property in the
// vocabulary "GoToSocial"
DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error)
// DeserializeLinkActivityStreams returns the deserialization method for
// the "ActivityStreamsLink" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error)
// DeserializeListenActivityStreams returns the deserialization method for
// the "ActivityStreamsListen" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error)
// DeserializeMentionActivityStreams returns the deserialization method
// for the "ActivityStreamsMention" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error)
// DeserializeMoveActivityStreams returns the deserialization method for
// the "ActivityStreamsMove" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error)
// DeserializeNoteActivityStreams returns the deserialization method for
// the "ActivityStreamsNote" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error)
// DeserializeObjectActivityStreams returns the deserialization method for
// the "ActivityStreamsObject" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error)
// DeserializeOfferActivityStreams returns the deserialization method for
// the "ActivityStreamsOffer" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error)
// DeserializeOrderedCollectionActivityStreams returns the deserialization
// method for the "ActivityStreamsOrderedCollection" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error)
// DeserializeOrderedCollectionPageActivityStreams returns the
// deserialization method for the
// "ActivityStreamsOrderedCollectionPage" non-functional property in
// the vocabulary "ActivityStreams"
DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
// DeserializeOrganizationActivityStreams returns the deserialization
// method for the "ActivityStreamsOrganization" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error)
// DeserializePageActivityStreams returns the deserialization method for
// the "ActivityStreamsPage" non-functional property in the vocabulary
// "ActivityStreams"
DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error)
// DeserializePersonActivityStreams returns the deserialization method for
// the "ActivityStreamsPerson" non-functional property in the
// vocabulary "ActivityStreams"
DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error)
// DeserializePlaceActivityStreams returns the deserialization method for
// the "ActivityStreamsPlace" non-functional property in the
// vocabulary "ActivityStreams"
DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error)
// DeserializeProfileActivityStreams returns the deserialization method
// for the "ActivityStreamsProfile" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
// DeserializePropertyValueSchema returns the deserialization method for
// the "SchemaPropertyValue" non-functional property in the vocabulary
// "Schema"
DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, error)
// DeserializeQuestionActivityStreams returns the deserialization method
// for the "ActivityStreamsQuestion" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error)
// DeserializeReadActivityStreams returns the deserialization method for
// the "ActivityStreamsRead" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error)
// DeserializeRejectActivityStreams returns the deserialization method for
// the "ActivityStreamsReject" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error)
// DeserializeRelationshipActivityStreams returns the deserialization
// method for the "ActivityStreamsRelationship" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error)
// DeserializeRemoveActivityStreams returns the deserialization method for
// the "ActivityStreamsRemove" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error)
// DeserializeReplyApprovalGoToSocial returns the deserialization method
// for the "GoToSocialReplyApproval" non-functional property in the
// vocabulary "GoToSocial"
DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error)
// DeserializeReplyAuthorizationGoToSocial returns the deserialization
// method for the "GoToSocialReplyAuthorization" non-functional
// property in the vocabulary "GoToSocial"
DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error)
// DeserializeReplyRequestGoToSocial returns the deserialization method
// for the "GoToSocialReplyRequest" non-functional property in the
// vocabulary "GoToSocial"
DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error)
// DeserializeServiceActivityStreams returns the deserialization method
// for the "ActivityStreamsService" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error)
// DeserializeTentativeAcceptActivityStreams returns the deserialization
// method for the "ActivityStreamsTentativeAccept" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error)
// DeserializeTentativeRejectActivityStreams returns the deserialization
// method for the "ActivityStreamsTentativeReject" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error)
// DeserializeTombstoneActivityStreams returns the deserialization method
// for the "ActivityStreamsTombstone" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error)
// DeserializeTrackFunkwhale returns the deserialization method for the
// "FunkwhaleTrack" non-functional property in the vocabulary
// "Funkwhale"
DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, error)
// DeserializeTravelActivityStreams returns the deserialization method for
// the "ActivityStreamsTravel" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error)
// DeserializeUndoActivityStreams returns the deserialization method for
// the "ActivityStreamsUndo" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error)
// DeserializeUpdateActivityStreams returns the deserialization method for
// the "ActivityStreamsUpdate" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error)
// DeserializeVideoActivityStreams returns the deserialization method for
// the "ActivityStreamsVideo" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error)
// DeserializeViewActivityStreams returns the deserialization method for
// the "ActivityStreamsView" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error)
}
// SetManager sets the manager package-global variable. For internal use only, do
// not use as part of Application behavior. Must be called at golang init time.
func SetManager(m privateManager) {
mgr = m
}

View File

@@ -1,17 +0,0 @@
// Code generated by astool. DO NOT EDIT.
// Package propertybcc contains the implementation for the bcc property. All
// applications are strongly encouraged to use the interface instead of this
// concrete definition. The interfaces allow applications to consume only the
// types and properties needed and be independent of the go-fed implementation
// if another alternative implementation is created. This package is
// code-generated and subject to the same license as the go-fed tool used to
// generate it.
//
// This package is independent of other types' and properties' implementations
// by having a Manager injected into it to act as a factory for the concrete
// implementations. The implementations have been generated into their own
// separate subpackages for each vocabulary.
//
// Strongly consider using the interfaces instead of this package.
package propertybcc

View File

@@ -1,301 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package propertybcc
import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
var mgr privateManager
// privateManager abstracts the code-generated manager that provides access to
// concrete implementations.
type privateManager interface {
// DeserializeAcceptActivityStreams returns the deserialization method for
// the "ActivityStreamsAccept" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error)
// DeserializeActivityActivityStreams returns the deserialization method
// for the "ActivityStreamsActivity" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error)
// DeserializeAddActivityStreams returns the deserialization method for
// the "ActivityStreamsAdd" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error)
// DeserializeAlbumFunkwhale returns the deserialization method for the
// "FunkwhaleAlbum" non-functional property in the vocabulary
// "Funkwhale"
DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, error)
// DeserializeAnnounceActivityStreams returns the deserialization method
// for the "ActivityStreamsAnnounce" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error)
// DeserializeAnnounceApprovalGoToSocial returns the deserialization
// method for the "GoToSocialAnnounceApproval" non-functional property
// in the vocabulary "GoToSocial"
DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error)
// DeserializeAnnounceAuthorizationGoToSocial returns the deserialization
// method for the "GoToSocialAnnounceAuthorization" non-functional
// property in the vocabulary "GoToSocial"
DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error)
// DeserializeAnnounceRequestGoToSocial returns the deserialization method
// for the "GoToSocialAnnounceRequest" non-functional property in the
// vocabulary "GoToSocial"
DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error)
// DeserializeApplicationActivityStreams returns the deserialization
// method for the "ActivityStreamsApplication" non-functional property
// in the vocabulary "ActivityStreams"
DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error)
// DeserializeArriveActivityStreams returns the deserialization method for
// the "ActivityStreamsArrive" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error)
// DeserializeArticleActivityStreams returns the deserialization method
// for the "ActivityStreamsArticle" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error)
// DeserializeArtistFunkwhale returns the deserialization method for the
// "FunkwhaleArtist" non-functional property in the vocabulary
// "Funkwhale"
DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, error)
// DeserializeAudioActivityStreams returns the deserialization method for
// the "ActivityStreamsAudio" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error)
// DeserializeBlockActivityStreams returns the deserialization method for
// the "ActivityStreamsBlock" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error)
// DeserializeCollectionActivityStreams returns the deserialization method
// for the "ActivityStreamsCollection" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error)
// DeserializeCollectionPageActivityStreams returns the deserialization
// method for the "ActivityStreamsCollectionPage" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
// DeserializeCreateActivityStreams returns the deserialization method for
// the "ActivityStreamsCreate" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error)
// DeserializeDeleteActivityStreams returns the deserialization method for
// the "ActivityStreamsDelete" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error)
// DeserializeDislikeActivityStreams returns the deserialization method
// for the "ActivityStreamsDislike" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error)
// DeserializeDocumentActivityStreams returns the deserialization method
// for the "ActivityStreamsDocument" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
// DeserializeEmojiToot returns the deserialization method for the
// "TootEmoji" non-functional property in the vocabulary "Toot"
DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)
// DeserializeEventActivityStreams returns the deserialization method for
// the "ActivityStreamsEvent" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error)
// DeserializeFlagActivityStreams returns the deserialization method for
// the "ActivityStreamsFlag" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error)
// DeserializeFollowActivityStreams returns the deserialization method for
// the "ActivityStreamsFollow" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error)
// DeserializeGroupActivityStreams returns the deserialization method for
// the "ActivityStreamsGroup" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error)
// DeserializeHashtagToot returns the deserialization method for the
// "TootHashtag" non-functional property in the vocabulary "Toot"
DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, error)
// DeserializeIdentityProofToot returns the deserialization method for the
// "TootIdentityProof" non-functional property in the vocabulary "Toot"
DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error)
// DeserializeIgnoreActivityStreams returns the deserialization method for
// the "ActivityStreamsIgnore" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error)
// DeserializeImageActivityStreams returns the deserialization method for
// the "ActivityStreamsImage" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error)
// DeserializeIntransitiveActivityActivityStreams returns the
// deserialization method for the
// "ActivityStreamsIntransitiveActivity" non-functional property in
// the vocabulary "ActivityStreams"
DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error)
// DeserializeInviteActivityStreams returns the deserialization method for
// the "ActivityStreamsInvite" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error)
// DeserializeJoinActivityStreams returns the deserialization method for
// the "ActivityStreamsJoin" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error)
// DeserializeLeaveActivityStreams returns the deserialization method for
// the "ActivityStreamsLeave" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error)
// DeserializeLibraryFunkwhale returns the deserialization method for the
// "FunkwhaleLibrary" non-functional property in the vocabulary
// "Funkwhale"
DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, error)
// DeserializeLikeActivityStreams returns the deserialization method for
// the "ActivityStreamsLike" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error)
// DeserializeLikeApprovalGoToSocial returns the deserialization method
// for the "GoToSocialLikeApproval" non-functional property in the
// vocabulary "GoToSocial"
DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error)
// DeserializeLikeAuthorizationGoToSocial returns the deserialization
// method for the "GoToSocialLikeAuthorization" non-functional
// property in the vocabulary "GoToSocial"
DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error)
// DeserializeLikeRequestGoToSocial returns the deserialization method for
// the "GoToSocialLikeRequest" non-functional property in the
// vocabulary "GoToSocial"
DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error)
// DeserializeLinkActivityStreams returns the deserialization method for
// the "ActivityStreamsLink" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error)
// DeserializeListenActivityStreams returns the deserialization method for
// the "ActivityStreamsListen" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error)
// DeserializeMentionActivityStreams returns the deserialization method
// for the "ActivityStreamsMention" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error)
// DeserializeMoveActivityStreams returns the deserialization method for
// the "ActivityStreamsMove" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error)
// DeserializeNoteActivityStreams returns the deserialization method for
// the "ActivityStreamsNote" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error)
// DeserializeObjectActivityStreams returns the deserialization method for
// the "ActivityStreamsObject" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error)
// DeserializeOfferActivityStreams returns the deserialization method for
// the "ActivityStreamsOffer" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error)
// DeserializeOrderedCollectionActivityStreams returns the deserialization
// method for the "ActivityStreamsOrderedCollection" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error)
// DeserializeOrderedCollectionPageActivityStreams returns the
// deserialization method for the
// "ActivityStreamsOrderedCollectionPage" non-functional property in
// the vocabulary "ActivityStreams"
DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
// DeserializeOrganizationActivityStreams returns the deserialization
// method for the "ActivityStreamsOrganization" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error)
// DeserializePageActivityStreams returns the deserialization method for
// the "ActivityStreamsPage" non-functional property in the vocabulary
// "ActivityStreams"
DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error)
// DeserializePersonActivityStreams returns the deserialization method for
// the "ActivityStreamsPerson" non-functional property in the
// vocabulary "ActivityStreams"
DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error)
// DeserializePlaceActivityStreams returns the deserialization method for
// the "ActivityStreamsPlace" non-functional property in the
// vocabulary "ActivityStreams"
DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error)
// DeserializeProfileActivityStreams returns the deserialization method
// for the "ActivityStreamsProfile" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
// DeserializePropertyValueSchema returns the deserialization method for
// the "SchemaPropertyValue" non-functional property in the vocabulary
// "Schema"
DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, error)
// DeserializeQuestionActivityStreams returns the deserialization method
// for the "ActivityStreamsQuestion" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error)
// DeserializeReadActivityStreams returns the deserialization method for
// the "ActivityStreamsRead" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error)
// DeserializeRejectActivityStreams returns the deserialization method for
// the "ActivityStreamsReject" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error)
// DeserializeRelationshipActivityStreams returns the deserialization
// method for the "ActivityStreamsRelationship" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error)
// DeserializeRemoveActivityStreams returns the deserialization method for
// the "ActivityStreamsRemove" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error)
// DeserializeReplyApprovalGoToSocial returns the deserialization method
// for the "GoToSocialReplyApproval" non-functional property in the
// vocabulary "GoToSocial"
DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error)
// DeserializeReplyAuthorizationGoToSocial returns the deserialization
// method for the "GoToSocialReplyAuthorization" non-functional
// property in the vocabulary "GoToSocial"
DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error)
// DeserializeReplyRequestGoToSocial returns the deserialization method
// for the "GoToSocialReplyRequest" non-functional property in the
// vocabulary "GoToSocial"
DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error)
// DeserializeServiceActivityStreams returns the deserialization method
// for the "ActivityStreamsService" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error)
// DeserializeTentativeAcceptActivityStreams returns the deserialization
// method for the "ActivityStreamsTentativeAccept" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error)
// DeserializeTentativeRejectActivityStreams returns the deserialization
// method for the "ActivityStreamsTentativeReject" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error)
// DeserializeTombstoneActivityStreams returns the deserialization method
// for the "ActivityStreamsTombstone" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error)
// DeserializeTrackFunkwhale returns the deserialization method for the
// "FunkwhaleTrack" non-functional property in the vocabulary
// "Funkwhale"
DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, error)
// DeserializeTravelActivityStreams returns the deserialization method for
// the "ActivityStreamsTravel" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error)
// DeserializeUndoActivityStreams returns the deserialization method for
// the "ActivityStreamsUndo" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error)
// DeserializeUpdateActivityStreams returns the deserialization method for
// the "ActivityStreamsUpdate" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error)
// DeserializeVideoActivityStreams returns the deserialization method for
// the "ActivityStreamsVideo" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error)
// DeserializeViewActivityStreams returns the deserialization method for
// the "ActivityStreamsView" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error)
}
// SetManager sets the manager package-global variable. For internal use only, do
// not use as part of Application behavior. Must be called at golang init time.
func SetManager(m privateManager) {
mgr = m
}

View File

@@ -1,17 +0,0 @@
// Code generated by astool. DO NOT EDIT.
// Package propertybto contains the implementation for the bto property. All
// applications are strongly encouraged to use the interface instead of this
// concrete definition. The interfaces allow applications to consume only the
// types and properties needed and be independent of the go-fed implementation
// if another alternative implementation is created. This package is
// code-generated and subject to the same license as the go-fed tool used to
// generate it.
//
// This package is independent of other types' and properties' implementations
// by having a Manager injected into it to act as a factory for the concrete
// implementations. The implementations have been generated into their own
// separate subpackages for each vocabulary.
//
// Strongly consider using the interfaces instead of this package.
package propertybto

View File

@@ -1,301 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package propertybto
import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
var mgr privateManager
// privateManager abstracts the code-generated manager that provides access to
// concrete implementations.
type privateManager interface {
// DeserializeAcceptActivityStreams returns the deserialization method for
// the "ActivityStreamsAccept" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error)
// DeserializeActivityActivityStreams returns the deserialization method
// for the "ActivityStreamsActivity" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error)
// DeserializeAddActivityStreams returns the deserialization method for
// the "ActivityStreamsAdd" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error)
// DeserializeAlbumFunkwhale returns the deserialization method for the
// "FunkwhaleAlbum" non-functional property in the vocabulary
// "Funkwhale"
DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, error)
// DeserializeAnnounceActivityStreams returns the deserialization method
// for the "ActivityStreamsAnnounce" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error)
// DeserializeAnnounceApprovalGoToSocial returns the deserialization
// method for the "GoToSocialAnnounceApproval" non-functional property
// in the vocabulary "GoToSocial"
DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error)
// DeserializeAnnounceAuthorizationGoToSocial returns the deserialization
// method for the "GoToSocialAnnounceAuthorization" non-functional
// property in the vocabulary "GoToSocial"
DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error)
// DeserializeAnnounceRequestGoToSocial returns the deserialization method
// for the "GoToSocialAnnounceRequest" non-functional property in the
// vocabulary "GoToSocial"
DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error)
// DeserializeApplicationActivityStreams returns the deserialization
// method for the "ActivityStreamsApplication" non-functional property
// in the vocabulary "ActivityStreams"
DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error)
// DeserializeArriveActivityStreams returns the deserialization method for
// the "ActivityStreamsArrive" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error)
// DeserializeArticleActivityStreams returns the deserialization method
// for the "ActivityStreamsArticle" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error)
// DeserializeArtistFunkwhale returns the deserialization method for the
// "FunkwhaleArtist" non-functional property in the vocabulary
// "Funkwhale"
DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, error)
// DeserializeAudioActivityStreams returns the deserialization method for
// the "ActivityStreamsAudio" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error)
// DeserializeBlockActivityStreams returns the deserialization method for
// the "ActivityStreamsBlock" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error)
// DeserializeCollectionActivityStreams returns the deserialization method
// for the "ActivityStreamsCollection" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error)
// DeserializeCollectionPageActivityStreams returns the deserialization
// method for the "ActivityStreamsCollectionPage" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
// DeserializeCreateActivityStreams returns the deserialization method for
// the "ActivityStreamsCreate" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error)
// DeserializeDeleteActivityStreams returns the deserialization method for
// the "ActivityStreamsDelete" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error)
// DeserializeDislikeActivityStreams returns the deserialization method
// for the "ActivityStreamsDislike" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error)
// DeserializeDocumentActivityStreams returns the deserialization method
// for the "ActivityStreamsDocument" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
// DeserializeEmojiToot returns the deserialization method for the
// "TootEmoji" non-functional property in the vocabulary "Toot"
DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)
// DeserializeEventActivityStreams returns the deserialization method for
// the "ActivityStreamsEvent" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error)
// DeserializeFlagActivityStreams returns the deserialization method for
// the "ActivityStreamsFlag" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error)
// DeserializeFollowActivityStreams returns the deserialization method for
// the "ActivityStreamsFollow" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error)
// DeserializeGroupActivityStreams returns the deserialization method for
// the "ActivityStreamsGroup" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error)
// DeserializeHashtagToot returns the deserialization method for the
// "TootHashtag" non-functional property in the vocabulary "Toot"
DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, error)
// DeserializeIdentityProofToot returns the deserialization method for the
// "TootIdentityProof" non-functional property in the vocabulary "Toot"
DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error)
// DeserializeIgnoreActivityStreams returns the deserialization method for
// the "ActivityStreamsIgnore" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error)
// DeserializeImageActivityStreams returns the deserialization method for
// the "ActivityStreamsImage" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error)
// DeserializeIntransitiveActivityActivityStreams returns the
// deserialization method for the
// "ActivityStreamsIntransitiveActivity" non-functional property in
// the vocabulary "ActivityStreams"
DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error)
// DeserializeInviteActivityStreams returns the deserialization method for
// the "ActivityStreamsInvite" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error)
// DeserializeJoinActivityStreams returns the deserialization method for
// the "ActivityStreamsJoin" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error)
// DeserializeLeaveActivityStreams returns the deserialization method for
// the "ActivityStreamsLeave" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error)
// DeserializeLibraryFunkwhale returns the deserialization method for the
// "FunkwhaleLibrary" non-functional property in the vocabulary
// "Funkwhale"
DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, error)
// DeserializeLikeActivityStreams returns the deserialization method for
// the "ActivityStreamsLike" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error)
// DeserializeLikeApprovalGoToSocial returns the deserialization method
// for the "GoToSocialLikeApproval" non-functional property in the
// vocabulary "GoToSocial"
DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error)
// DeserializeLikeAuthorizationGoToSocial returns the deserialization
// method for the "GoToSocialLikeAuthorization" non-functional
// property in the vocabulary "GoToSocial"
DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error)
// DeserializeLikeRequestGoToSocial returns the deserialization method for
// the "GoToSocialLikeRequest" non-functional property in the
// vocabulary "GoToSocial"
DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error)
// DeserializeLinkActivityStreams returns the deserialization method for
// the "ActivityStreamsLink" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error)
// DeserializeListenActivityStreams returns the deserialization method for
// the "ActivityStreamsListen" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error)
// DeserializeMentionActivityStreams returns the deserialization method
// for the "ActivityStreamsMention" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error)
// DeserializeMoveActivityStreams returns the deserialization method for
// the "ActivityStreamsMove" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error)
// DeserializeNoteActivityStreams returns the deserialization method for
// the "ActivityStreamsNote" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error)
// DeserializeObjectActivityStreams returns the deserialization method for
// the "ActivityStreamsObject" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error)
// DeserializeOfferActivityStreams returns the deserialization method for
// the "ActivityStreamsOffer" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error)
// DeserializeOrderedCollectionActivityStreams returns the deserialization
// method for the "ActivityStreamsOrderedCollection" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error)
// DeserializeOrderedCollectionPageActivityStreams returns the
// deserialization method for the
// "ActivityStreamsOrderedCollectionPage" non-functional property in
// the vocabulary "ActivityStreams"
DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
// DeserializeOrganizationActivityStreams returns the deserialization
// method for the "ActivityStreamsOrganization" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error)
// DeserializePageActivityStreams returns the deserialization method for
// the "ActivityStreamsPage" non-functional property in the vocabulary
// "ActivityStreams"
DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error)
// DeserializePersonActivityStreams returns the deserialization method for
// the "ActivityStreamsPerson" non-functional property in the
// vocabulary "ActivityStreams"
DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error)
// DeserializePlaceActivityStreams returns the deserialization method for
// the "ActivityStreamsPlace" non-functional property in the
// vocabulary "ActivityStreams"
DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error)
// DeserializeProfileActivityStreams returns the deserialization method
// for the "ActivityStreamsProfile" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
// DeserializePropertyValueSchema returns the deserialization method for
// the "SchemaPropertyValue" non-functional property in the vocabulary
// "Schema"
DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, error)
// DeserializeQuestionActivityStreams returns the deserialization method
// for the "ActivityStreamsQuestion" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error)
// DeserializeReadActivityStreams returns the deserialization method for
// the "ActivityStreamsRead" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error)
// DeserializeRejectActivityStreams returns the deserialization method for
// the "ActivityStreamsReject" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error)
// DeserializeRelationshipActivityStreams returns the deserialization
// method for the "ActivityStreamsRelationship" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error)
// DeserializeRemoveActivityStreams returns the deserialization method for
// the "ActivityStreamsRemove" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error)
// DeserializeReplyApprovalGoToSocial returns the deserialization method
// for the "GoToSocialReplyApproval" non-functional property in the
// vocabulary "GoToSocial"
DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error)
// DeserializeReplyAuthorizationGoToSocial returns the deserialization
// method for the "GoToSocialReplyAuthorization" non-functional
// property in the vocabulary "GoToSocial"
DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error)
// DeserializeReplyRequestGoToSocial returns the deserialization method
// for the "GoToSocialReplyRequest" non-functional property in the
// vocabulary "GoToSocial"
DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error)
// DeserializeServiceActivityStreams returns the deserialization method
// for the "ActivityStreamsService" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error)
// DeserializeTentativeAcceptActivityStreams returns the deserialization
// method for the "ActivityStreamsTentativeAccept" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error)
// DeserializeTentativeRejectActivityStreams returns the deserialization
// method for the "ActivityStreamsTentativeReject" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error)
// DeserializeTombstoneActivityStreams returns the deserialization method
// for the "ActivityStreamsTombstone" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error)
// DeserializeTrackFunkwhale returns the deserialization method for the
// "FunkwhaleTrack" non-functional property in the vocabulary
// "Funkwhale"
DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, error)
// DeserializeTravelActivityStreams returns the deserialization method for
// the "ActivityStreamsTravel" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error)
// DeserializeUndoActivityStreams returns the deserialization method for
// the "ActivityStreamsUndo" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error)
// DeserializeUpdateActivityStreams returns the deserialization method for
// the "ActivityStreamsUpdate" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error)
// DeserializeVideoActivityStreams returns the deserialization method for
// the "ActivityStreamsVideo" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error)
// DeserializeViewActivityStreams returns the deserialization method for
// the "ActivityStreamsView" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error)
}
// SetManager sets the manager package-global variable. For internal use only, do
// not use as part of Application behavior. Must be called at golang init time.
func SetManager(m privateManager) {
mgr = m
}

View File

@@ -1,17 +0,0 @@
// Code generated by astool. DO NOT EDIT.
// Package propertycc contains the implementation for the cc property. All
// applications are strongly encouraged to use the interface instead of this
// concrete definition. The interfaces allow applications to consume only the
// types and properties needed and be independent of the go-fed implementation
// if another alternative implementation is created. This package is
// code-generated and subject to the same license as the go-fed tool used to
// generate it.
//
// This package is independent of other types' and properties' implementations
// by having a Manager injected into it to act as a factory for the concrete
// implementations. The implementations have been generated into their own
// separate subpackages for each vocabulary.
//
// Strongly consider using the interfaces instead of this package.
package propertycc

View File

@@ -1,301 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package propertycc
import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
var mgr privateManager
// privateManager abstracts the code-generated manager that provides access to
// concrete implementations.
type privateManager interface {
// DeserializeAcceptActivityStreams returns the deserialization method for
// the "ActivityStreamsAccept" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error)
// DeserializeActivityActivityStreams returns the deserialization method
// for the "ActivityStreamsActivity" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error)
// DeserializeAddActivityStreams returns the deserialization method for
// the "ActivityStreamsAdd" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error)
// DeserializeAlbumFunkwhale returns the deserialization method for the
// "FunkwhaleAlbum" non-functional property in the vocabulary
// "Funkwhale"
DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, error)
// DeserializeAnnounceActivityStreams returns the deserialization method
// for the "ActivityStreamsAnnounce" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error)
// DeserializeAnnounceApprovalGoToSocial returns the deserialization
// method for the "GoToSocialAnnounceApproval" non-functional property
// in the vocabulary "GoToSocial"
DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error)
// DeserializeAnnounceAuthorizationGoToSocial returns the deserialization
// method for the "GoToSocialAnnounceAuthorization" non-functional
// property in the vocabulary "GoToSocial"
DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error)
// DeserializeAnnounceRequestGoToSocial returns the deserialization method
// for the "GoToSocialAnnounceRequest" non-functional property in the
// vocabulary "GoToSocial"
DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error)
// DeserializeApplicationActivityStreams returns the deserialization
// method for the "ActivityStreamsApplication" non-functional property
// in the vocabulary "ActivityStreams"
DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error)
// DeserializeArriveActivityStreams returns the deserialization method for
// the "ActivityStreamsArrive" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error)
// DeserializeArticleActivityStreams returns the deserialization method
// for the "ActivityStreamsArticle" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error)
// DeserializeArtistFunkwhale returns the deserialization method for the
// "FunkwhaleArtist" non-functional property in the vocabulary
// "Funkwhale"
DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, error)
// DeserializeAudioActivityStreams returns the deserialization method for
// the "ActivityStreamsAudio" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error)
// DeserializeBlockActivityStreams returns the deserialization method for
// the "ActivityStreamsBlock" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error)
// DeserializeCollectionActivityStreams returns the deserialization method
// for the "ActivityStreamsCollection" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error)
// DeserializeCollectionPageActivityStreams returns the deserialization
// method for the "ActivityStreamsCollectionPage" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
// DeserializeCreateActivityStreams returns the deserialization method for
// the "ActivityStreamsCreate" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error)
// DeserializeDeleteActivityStreams returns the deserialization method for
// the "ActivityStreamsDelete" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error)
// DeserializeDislikeActivityStreams returns the deserialization method
// for the "ActivityStreamsDislike" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error)
// DeserializeDocumentActivityStreams returns the deserialization method
// for the "ActivityStreamsDocument" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
// DeserializeEmojiToot returns the deserialization method for the
// "TootEmoji" non-functional property in the vocabulary "Toot"
DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)
// DeserializeEventActivityStreams returns the deserialization method for
// the "ActivityStreamsEvent" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error)
// DeserializeFlagActivityStreams returns the deserialization method for
// the "ActivityStreamsFlag" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error)
// DeserializeFollowActivityStreams returns the deserialization method for
// the "ActivityStreamsFollow" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error)
// DeserializeGroupActivityStreams returns the deserialization method for
// the "ActivityStreamsGroup" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error)
// DeserializeHashtagToot returns the deserialization method for the
// "TootHashtag" non-functional property in the vocabulary "Toot"
DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, error)
// DeserializeIdentityProofToot returns the deserialization method for the
// "TootIdentityProof" non-functional property in the vocabulary "Toot"
DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error)
// DeserializeIgnoreActivityStreams returns the deserialization method for
// the "ActivityStreamsIgnore" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error)
// DeserializeImageActivityStreams returns the deserialization method for
// the "ActivityStreamsImage" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error)
// DeserializeIntransitiveActivityActivityStreams returns the
// deserialization method for the
// "ActivityStreamsIntransitiveActivity" non-functional property in
// the vocabulary "ActivityStreams"
DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error)
// DeserializeInviteActivityStreams returns the deserialization method for
// the "ActivityStreamsInvite" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error)
// DeserializeJoinActivityStreams returns the deserialization method for
// the "ActivityStreamsJoin" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error)
// DeserializeLeaveActivityStreams returns the deserialization method for
// the "ActivityStreamsLeave" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error)
// DeserializeLibraryFunkwhale returns the deserialization method for the
// "FunkwhaleLibrary" non-functional property in the vocabulary
// "Funkwhale"
DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, error)
// DeserializeLikeActivityStreams returns the deserialization method for
// the "ActivityStreamsLike" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error)
// DeserializeLikeApprovalGoToSocial returns the deserialization method
// for the "GoToSocialLikeApproval" non-functional property in the
// vocabulary "GoToSocial"
DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error)
// DeserializeLikeAuthorizationGoToSocial returns the deserialization
// method for the "GoToSocialLikeAuthorization" non-functional
// property in the vocabulary "GoToSocial"
DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error)
// DeserializeLikeRequestGoToSocial returns the deserialization method for
// the "GoToSocialLikeRequest" non-functional property in the
// vocabulary "GoToSocial"
DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error)
// DeserializeLinkActivityStreams returns the deserialization method for
// the "ActivityStreamsLink" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error)
// DeserializeListenActivityStreams returns the deserialization method for
// the "ActivityStreamsListen" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error)
// DeserializeMentionActivityStreams returns the deserialization method
// for the "ActivityStreamsMention" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error)
// DeserializeMoveActivityStreams returns the deserialization method for
// the "ActivityStreamsMove" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error)
// DeserializeNoteActivityStreams returns the deserialization method for
// the "ActivityStreamsNote" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error)
// DeserializeObjectActivityStreams returns the deserialization method for
// the "ActivityStreamsObject" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error)
// DeserializeOfferActivityStreams returns the deserialization method for
// the "ActivityStreamsOffer" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error)
// DeserializeOrderedCollectionActivityStreams returns the deserialization
// method for the "ActivityStreamsOrderedCollection" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error)
// DeserializeOrderedCollectionPageActivityStreams returns the
// deserialization method for the
// "ActivityStreamsOrderedCollectionPage" non-functional property in
// the vocabulary "ActivityStreams"
DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
// DeserializeOrganizationActivityStreams returns the deserialization
// method for the "ActivityStreamsOrganization" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error)
// DeserializePageActivityStreams returns the deserialization method for
// the "ActivityStreamsPage" non-functional property in the vocabulary
// "ActivityStreams"
DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error)
// DeserializePersonActivityStreams returns the deserialization method for
// the "ActivityStreamsPerson" non-functional property in the
// vocabulary "ActivityStreams"
DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error)
// DeserializePlaceActivityStreams returns the deserialization method for
// the "ActivityStreamsPlace" non-functional property in the
// vocabulary "ActivityStreams"
DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error)
// DeserializeProfileActivityStreams returns the deserialization method
// for the "ActivityStreamsProfile" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
// DeserializePropertyValueSchema returns the deserialization method for
// the "SchemaPropertyValue" non-functional property in the vocabulary
// "Schema"
DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, error)
// DeserializeQuestionActivityStreams returns the deserialization method
// for the "ActivityStreamsQuestion" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error)
// DeserializeReadActivityStreams returns the deserialization method for
// the "ActivityStreamsRead" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error)
// DeserializeRejectActivityStreams returns the deserialization method for
// the "ActivityStreamsReject" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error)
// DeserializeRelationshipActivityStreams returns the deserialization
// method for the "ActivityStreamsRelationship" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error)
// DeserializeRemoveActivityStreams returns the deserialization method for
// the "ActivityStreamsRemove" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error)
// DeserializeReplyApprovalGoToSocial returns the deserialization method
// for the "GoToSocialReplyApproval" non-functional property in the
// vocabulary "GoToSocial"
DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error)
// DeserializeReplyAuthorizationGoToSocial returns the deserialization
// method for the "GoToSocialReplyAuthorization" non-functional
// property in the vocabulary "GoToSocial"
DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error)
// DeserializeReplyRequestGoToSocial returns the deserialization method
// for the "GoToSocialReplyRequest" non-functional property in the
// vocabulary "GoToSocial"
DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error)
// DeserializeServiceActivityStreams returns the deserialization method
// for the "ActivityStreamsService" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error)
// DeserializeTentativeAcceptActivityStreams returns the deserialization
// method for the "ActivityStreamsTentativeAccept" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error)
// DeserializeTentativeRejectActivityStreams returns the deserialization
// method for the "ActivityStreamsTentativeReject" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error)
// DeserializeTombstoneActivityStreams returns the deserialization method
// for the "ActivityStreamsTombstone" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error)
// DeserializeTrackFunkwhale returns the deserialization method for the
// "FunkwhaleTrack" non-functional property in the vocabulary
// "Funkwhale"
DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, error)
// DeserializeTravelActivityStreams returns the deserialization method for
// the "ActivityStreamsTravel" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error)
// DeserializeUndoActivityStreams returns the deserialization method for
// the "ActivityStreamsUndo" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error)
// DeserializeUpdateActivityStreams returns the deserialization method for
// the "ActivityStreamsUpdate" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error)
// DeserializeVideoActivityStreams returns the deserialization method for
// the "ActivityStreamsVideo" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error)
// DeserializeViewActivityStreams returns the deserialization method for
// the "ActivityStreamsView" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error)
}
// SetManager sets the manager package-global variable. For internal use only, do
// not use as part of Application behavior. Must be called at golang init time.
func SetManager(m privateManager) {
mgr = m
}

View File

@@ -1,17 +0,0 @@
// Code generated by astool. DO NOT EDIT.
// Package propertyclosed contains the implementation for the closed property. All
// applications are strongly encouraged to use the interface instead of this
// concrete definition. The interfaces allow applications to consume only the
// types and properties needed and be independent of the go-fed implementation
// if another alternative implementation is created. This package is
// code-generated and subject to the same license as the go-fed tool used to
// generate it.
//
// This package is independent of other types' and properties' implementations
// by having a Manager injected into it to act as a factory for the concrete
// implementations. The implementations have been generated into their own
// separate subpackages for each vocabulary.
//
// Strongly consider using the interfaces instead of this package.
package propertyclosed

View File

@@ -1,301 +0,0 @@
// Code generated by astool. DO NOT EDIT.
package propertyclosed
import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab"
var mgr privateManager
// privateManager abstracts the code-generated manager that provides access to
// concrete implementations.
type privateManager interface {
// DeserializeAcceptActivityStreams returns the deserialization method for
// the "ActivityStreamsAccept" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error)
// DeserializeActivityActivityStreams returns the deserialization method
// for the "ActivityStreamsActivity" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error)
// DeserializeAddActivityStreams returns the deserialization method for
// the "ActivityStreamsAdd" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error)
// DeserializeAlbumFunkwhale returns the deserialization method for the
// "FunkwhaleAlbum" non-functional property in the vocabulary
// "Funkwhale"
DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, error)
// DeserializeAnnounceActivityStreams returns the deserialization method
// for the "ActivityStreamsAnnounce" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error)
// DeserializeAnnounceApprovalGoToSocial returns the deserialization
// method for the "GoToSocialAnnounceApproval" non-functional property
// in the vocabulary "GoToSocial"
DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error)
// DeserializeAnnounceAuthorizationGoToSocial returns the deserialization
// method for the "GoToSocialAnnounceAuthorization" non-functional
// property in the vocabulary "GoToSocial"
DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error)
// DeserializeAnnounceRequestGoToSocial returns the deserialization method
// for the "GoToSocialAnnounceRequest" non-functional property in the
// vocabulary "GoToSocial"
DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error)
// DeserializeApplicationActivityStreams returns the deserialization
// method for the "ActivityStreamsApplication" non-functional property
// in the vocabulary "ActivityStreams"
DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error)
// DeserializeArriveActivityStreams returns the deserialization method for
// the "ActivityStreamsArrive" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error)
// DeserializeArticleActivityStreams returns the deserialization method
// for the "ActivityStreamsArticle" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error)
// DeserializeArtistFunkwhale returns the deserialization method for the
// "FunkwhaleArtist" non-functional property in the vocabulary
// "Funkwhale"
DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, error)
// DeserializeAudioActivityStreams returns the deserialization method for
// the "ActivityStreamsAudio" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error)
// DeserializeBlockActivityStreams returns the deserialization method for
// the "ActivityStreamsBlock" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error)
// DeserializeCollectionActivityStreams returns the deserialization method
// for the "ActivityStreamsCollection" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error)
// DeserializeCollectionPageActivityStreams returns the deserialization
// method for the "ActivityStreamsCollectionPage" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
// DeserializeCreateActivityStreams returns the deserialization method for
// the "ActivityStreamsCreate" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error)
// DeserializeDeleteActivityStreams returns the deserialization method for
// the "ActivityStreamsDelete" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error)
// DeserializeDislikeActivityStreams returns the deserialization method
// for the "ActivityStreamsDislike" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error)
// DeserializeDocumentActivityStreams returns the deserialization method
// for the "ActivityStreamsDocument" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
// DeserializeEmojiToot returns the deserialization method for the
// "TootEmoji" non-functional property in the vocabulary "Toot"
DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)
// DeserializeEventActivityStreams returns the deserialization method for
// the "ActivityStreamsEvent" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error)
// DeserializeFlagActivityStreams returns the deserialization method for
// the "ActivityStreamsFlag" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error)
// DeserializeFollowActivityStreams returns the deserialization method for
// the "ActivityStreamsFollow" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error)
// DeserializeGroupActivityStreams returns the deserialization method for
// the "ActivityStreamsGroup" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error)
// DeserializeHashtagToot returns the deserialization method for the
// "TootHashtag" non-functional property in the vocabulary "Toot"
DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, error)
// DeserializeIdentityProofToot returns the deserialization method for the
// "TootIdentityProof" non-functional property in the vocabulary "Toot"
DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error)
// DeserializeIgnoreActivityStreams returns the deserialization method for
// the "ActivityStreamsIgnore" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error)
// DeserializeImageActivityStreams returns the deserialization method for
// the "ActivityStreamsImage" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error)
// DeserializeIntransitiveActivityActivityStreams returns the
// deserialization method for the
// "ActivityStreamsIntransitiveActivity" non-functional property in
// the vocabulary "ActivityStreams"
DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error)
// DeserializeInviteActivityStreams returns the deserialization method for
// the "ActivityStreamsInvite" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error)
// DeserializeJoinActivityStreams returns the deserialization method for
// the "ActivityStreamsJoin" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error)
// DeserializeLeaveActivityStreams returns the deserialization method for
// the "ActivityStreamsLeave" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error)
// DeserializeLibraryFunkwhale returns the deserialization method for the
// "FunkwhaleLibrary" non-functional property in the vocabulary
// "Funkwhale"
DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, error)
// DeserializeLikeActivityStreams returns the deserialization method for
// the "ActivityStreamsLike" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error)
// DeserializeLikeApprovalGoToSocial returns the deserialization method
// for the "GoToSocialLikeApproval" non-functional property in the
// vocabulary "GoToSocial"
DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error)
// DeserializeLikeAuthorizationGoToSocial returns the deserialization
// method for the "GoToSocialLikeAuthorization" non-functional
// property in the vocabulary "GoToSocial"
DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error)
// DeserializeLikeRequestGoToSocial returns the deserialization method for
// the "GoToSocialLikeRequest" non-functional property in the
// vocabulary "GoToSocial"
DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error)
// DeserializeLinkActivityStreams returns the deserialization method for
// the "ActivityStreamsLink" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error)
// DeserializeListenActivityStreams returns the deserialization method for
// the "ActivityStreamsListen" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error)
// DeserializeMentionActivityStreams returns the deserialization method
// for the "ActivityStreamsMention" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error)
// DeserializeMoveActivityStreams returns the deserialization method for
// the "ActivityStreamsMove" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error)
// DeserializeNoteActivityStreams returns the deserialization method for
// the "ActivityStreamsNote" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error)
// DeserializeObjectActivityStreams returns the deserialization method for
// the "ActivityStreamsObject" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error)
// DeserializeOfferActivityStreams returns the deserialization method for
// the "ActivityStreamsOffer" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error)
// DeserializeOrderedCollectionActivityStreams returns the deserialization
// method for the "ActivityStreamsOrderedCollection" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error)
// DeserializeOrderedCollectionPageActivityStreams returns the
// deserialization method for the
// "ActivityStreamsOrderedCollectionPage" non-functional property in
// the vocabulary "ActivityStreams"
DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
// DeserializeOrganizationActivityStreams returns the deserialization
// method for the "ActivityStreamsOrganization" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error)
// DeserializePageActivityStreams returns the deserialization method for
// the "ActivityStreamsPage" non-functional property in the vocabulary
// "ActivityStreams"
DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error)
// DeserializePersonActivityStreams returns the deserialization method for
// the "ActivityStreamsPerson" non-functional property in the
// vocabulary "ActivityStreams"
DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error)
// DeserializePlaceActivityStreams returns the deserialization method for
// the "ActivityStreamsPlace" non-functional property in the
// vocabulary "ActivityStreams"
DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error)
// DeserializeProfileActivityStreams returns the deserialization method
// for the "ActivityStreamsProfile" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
// DeserializePropertyValueSchema returns the deserialization method for
// the "SchemaPropertyValue" non-functional property in the vocabulary
// "Schema"
DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, error)
// DeserializeQuestionActivityStreams returns the deserialization method
// for the "ActivityStreamsQuestion" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error)
// DeserializeReadActivityStreams returns the deserialization method for
// the "ActivityStreamsRead" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error)
// DeserializeRejectActivityStreams returns the deserialization method for
// the "ActivityStreamsReject" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error)
// DeserializeRelationshipActivityStreams returns the deserialization
// method for the "ActivityStreamsRelationship" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error)
// DeserializeRemoveActivityStreams returns the deserialization method for
// the "ActivityStreamsRemove" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error)
// DeserializeReplyApprovalGoToSocial returns the deserialization method
// for the "GoToSocialReplyApproval" non-functional property in the
// vocabulary "GoToSocial"
DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error)
// DeserializeReplyAuthorizationGoToSocial returns the deserialization
// method for the "GoToSocialReplyAuthorization" non-functional
// property in the vocabulary "GoToSocial"
DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error)
// DeserializeReplyRequestGoToSocial returns the deserialization method
// for the "GoToSocialReplyRequest" non-functional property in the
// vocabulary "GoToSocial"
DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error)
// DeserializeServiceActivityStreams returns the deserialization method
// for the "ActivityStreamsService" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error)
// DeserializeTentativeAcceptActivityStreams returns the deserialization
// method for the "ActivityStreamsTentativeAccept" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error)
// DeserializeTentativeRejectActivityStreams returns the deserialization
// method for the "ActivityStreamsTentativeReject" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error)
// DeserializeTombstoneActivityStreams returns the deserialization method
// for the "ActivityStreamsTombstone" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error)
// DeserializeTrackFunkwhale returns the deserialization method for the
// "FunkwhaleTrack" non-functional property in the vocabulary
// "Funkwhale"
DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, error)
// DeserializeTravelActivityStreams returns the deserialization method for
// the "ActivityStreamsTravel" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error)
// DeserializeUndoActivityStreams returns the deserialization method for
// the "ActivityStreamsUndo" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error)
// DeserializeUpdateActivityStreams returns the deserialization method for
// the "ActivityStreamsUpdate" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error)
// DeserializeVideoActivityStreams returns the deserialization method for
// the "ActivityStreamsVideo" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error)
// DeserializeViewActivityStreams returns the deserialization method for
// the "ActivityStreamsView" non-functional property in the vocabulary
// "ActivityStreams"
DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error)
}
// SetManager sets the manager package-global variable. For internal use only, do
// not use as part of Application behavior. Must be called at golang init time.
func SetManager(m privateManager) {
mgr = m
}

Some files were not shown because too many files have changed in this diff Show More