mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
Grand test fixup (#138)
* start fixing up tests * fix up tests + automate with drone * fiddle with linting * messing about with drone.yml * some more fiddling * hmmm * add cache * add vendor directory * verbose * ci updates * update some little things * update sig
This commit is contained in:
17
vendor/github.com/go-fed/activity/streams/impl/toot/property_blurhash/gen_doc.go
generated
vendored
Normal file
17
vendor/github.com/go-fed/activity/streams/impl/toot/property_blurhash/gen_doc.go
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
// Code generated by astool. DO NOT EDIT.
|
||||
|
||||
// Package propertyblurhash contains the implementation for the blurhash 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 propertyblurhash
|
15
vendor/github.com/go-fed/activity/streams/impl/toot/property_blurhash/gen_pkg.go
generated
vendored
Normal file
15
vendor/github.com/go-fed/activity/streams/impl/toot/property_blurhash/gen_pkg.go
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
// Code generated by astool. DO NOT EDIT.
|
||||
|
||||
package propertyblurhash
|
||||
|
||||
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
|
||||
}
|
203
vendor/github.com/go-fed/activity/streams/impl/toot/property_blurhash/gen_property_toot_blurhash.go
generated
vendored
Normal file
203
vendor/github.com/go-fed/activity/streams/impl/toot/property_blurhash/gen_property_toot_blurhash.go
generated
vendored
Normal file
@ -0,0 +1,203 @@
|
||||
// Code generated by astool. DO NOT EDIT.
|
||||
|
||||
package propertyblurhash
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
string1 "github.com/go-fed/activity/streams/values/string"
|
||||
vocab "github.com/go-fed/activity/streams/vocab"
|
||||
"net/url"
|
||||
)
|
||||
|
||||
// TootBlurhashProperty is the functional property "blurhash". It is permitted to
|
||||
// be a single default-valued value type.
|
||||
type TootBlurhashProperty struct {
|
||||
xmlschemaStringMember string
|
||||
hasStringMember bool
|
||||
unknown interface{}
|
||||
iri *url.URL
|
||||
alias string
|
||||
}
|
||||
|
||||
// DeserializeBlurhashProperty creates a "blurhash" property from an interface
|
||||
// representation that has been unmarshalled from a text or binary format.
|
||||
func DeserializeBlurhashProperty(m map[string]interface{}, aliasMap map[string]string) (*TootBlurhashProperty, error) {
|
||||
alias := ""
|
||||
if a, ok := aliasMap["http://joinmastodon.org/ns"]; ok {
|
||||
alias = a
|
||||
}
|
||||
propName := "blurhash"
|
||||
if len(alias) > 0 {
|
||||
// Use alias both to find the property, and set within the property.
|
||||
propName = fmt.Sprintf("%s:%s", alias, "blurhash")
|
||||
}
|
||||
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 := &TootBlurhashProperty{
|
||||
alias: alias,
|
||||
iri: u,
|
||||
}
|
||||
return this, nil
|
||||
}
|
||||
}
|
||||
if v, err := string1.DeserializeString(i); err == nil {
|
||||
this := &TootBlurhashProperty{
|
||||
alias: alias,
|
||||
hasStringMember: true,
|
||||
xmlschemaStringMember: v,
|
||||
}
|
||||
return this, nil
|
||||
}
|
||||
this := &TootBlurhashProperty{
|
||||
alias: alias,
|
||||
unknown: i,
|
||||
}
|
||||
return this, nil
|
||||
}
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
// NewTootBlurhashProperty creates a new blurhash property.
|
||||
func NewTootBlurhashProperty() *TootBlurhashProperty {
|
||||
return &TootBlurhashProperty{alias: ""}
|
||||
}
|
||||
|
||||
// Clear ensures no value of this property is set. Calling IsXMLSchemaString
|
||||
// afterwards will return false.
|
||||
func (this *TootBlurhashProperty) Clear() {
|
||||
this.unknown = nil
|
||||
this.iri = nil
|
||||
this.hasStringMember = false
|
||||
}
|
||||
|
||||
// Get returns the value of this property. When IsXMLSchemaString returns false,
|
||||
// Get will return any arbitrary value.
|
||||
func (this TootBlurhashProperty) Get() string {
|
||||
return this.xmlschemaStringMember
|
||||
}
|
||||
|
||||
// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
|
||||
// return any arbitrary value.
|
||||
func (this TootBlurhashProperty) GetIRI() *url.URL {
|
||||
return this.iri
|
||||
}
|
||||
|
||||
// HasAny returns true if the value or IRI is set.
|
||||
func (this TootBlurhashProperty) HasAny() bool {
|
||||
return this.IsXMLSchemaString() || this.iri != nil
|
||||
}
|
||||
|
||||
// IsIRI returns true if this property is an IRI.
|
||||
func (this TootBlurhashProperty) IsIRI() bool {
|
||||
return this.iri != nil
|
||||
}
|
||||
|
||||
// IsXMLSchemaString returns true if this property is set and not an IRI.
|
||||
func (this TootBlurhashProperty) IsXMLSchemaString() bool {
|
||||
return this.hasStringMember
|
||||
}
|
||||
|
||||
// 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 TootBlurhashProperty) JSONLDContext() map[string]string {
|
||||
m := map[string]string{"http://joinmastodon.org/ns": 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 TootBlurhashProperty) KindIndex() int {
|
||||
if this.IsXMLSchemaString() {
|
||||
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 TootBlurhashProperty) LessThan(o vocab.TootBlurhashProperty) 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.IsXMLSchemaString() && !o.IsXMLSchemaString() {
|
||||
// Both are unknowns.
|
||||
return false
|
||||
} else if this.IsXMLSchemaString() && !o.IsXMLSchemaString() {
|
||||
// Values are always greater than unknown values.
|
||||
return false
|
||||
} else if !this.IsXMLSchemaString() && o.IsXMLSchemaString() {
|
||||
// Unknowns are always less than known values.
|
||||
return true
|
||||
} else {
|
||||
// Actual comparison.
|
||||
return string1.LessString(this.Get(), o.Get())
|
||||
}
|
||||
}
|
||||
|
||||
// Name returns the name of this property: "blurhash".
|
||||
func (this TootBlurhashProperty) Name() string {
|
||||
if len(this.alias) > 0 {
|
||||
return this.alias + ":" + "blurhash"
|
||||
} else {
|
||||
return "blurhash"
|
||||
}
|
||||
}
|
||||
|
||||
// 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 TootBlurhashProperty) Serialize() (interface{}, error) {
|
||||
if this.IsXMLSchemaString() {
|
||||
return string1.SerializeString(this.Get())
|
||||
} else if this.IsIRI() {
|
||||
return this.iri.String(), nil
|
||||
}
|
||||
return this.unknown, nil
|
||||
}
|
||||
|
||||
// Set sets the value of this property. Calling IsXMLSchemaString afterwards will
|
||||
// return true.
|
||||
func (this *TootBlurhashProperty) Set(v string) {
|
||||
this.Clear()
|
||||
this.xmlschemaStringMember = v
|
||||
this.hasStringMember = true
|
||||
}
|
||||
|
||||
// SetIRI sets the value of this property. Calling IsIRI afterwards will return
|
||||
// true.
|
||||
func (this *TootBlurhashProperty) SetIRI(v *url.URL) {
|
||||
this.Clear()
|
||||
this.iri = v
|
||||
}
|
17
vendor/github.com/go-fed/activity/streams/impl/toot/property_discoverable/gen_doc.go
generated
vendored
Normal file
17
vendor/github.com/go-fed/activity/streams/impl/toot/property_discoverable/gen_doc.go
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
// Code generated by astool. DO NOT EDIT.
|
||||
|
||||
// Package propertydiscoverable contains the implementation for the discoverable
|
||||
// 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 propertydiscoverable
|
15
vendor/github.com/go-fed/activity/streams/impl/toot/property_discoverable/gen_pkg.go
generated
vendored
Normal file
15
vendor/github.com/go-fed/activity/streams/impl/toot/property_discoverable/gen_pkg.go
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
// Code generated by astool. DO NOT EDIT.
|
||||
|
||||
package propertydiscoverable
|
||||
|
||||
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
|
||||
}
|
204
vendor/github.com/go-fed/activity/streams/impl/toot/property_discoverable/gen_property_toot_discoverable.go
generated
vendored
Normal file
204
vendor/github.com/go-fed/activity/streams/impl/toot/property_discoverable/gen_property_toot_discoverable.go
generated
vendored
Normal file
@ -0,0 +1,204 @@
|
||||
// Code generated by astool. DO NOT EDIT.
|
||||
|
||||
package propertydiscoverable
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
boolean "github.com/go-fed/activity/streams/values/boolean"
|
||||
vocab "github.com/go-fed/activity/streams/vocab"
|
||||
"net/url"
|
||||
)
|
||||
|
||||
// TootDiscoverableProperty is the functional property "discoverable". It is
|
||||
// permitted to be a single default-valued value type.
|
||||
type TootDiscoverableProperty struct {
|
||||
xmlschemaBooleanMember bool
|
||||
hasBooleanMember bool
|
||||
unknown interface{}
|
||||
iri *url.URL
|
||||
alias string
|
||||
}
|
||||
|
||||
// DeserializeDiscoverableProperty creates a "discoverable" property from an
|
||||
// interface representation that has been unmarshalled from a text or binary
|
||||
// format.
|
||||
func DeserializeDiscoverableProperty(m map[string]interface{}, aliasMap map[string]string) (*TootDiscoverableProperty, error) {
|
||||
alias := ""
|
||||
if a, ok := aliasMap["http://joinmastodon.org/ns"]; ok {
|
||||
alias = a
|
||||
}
|
||||
propName := "discoverable"
|
||||
if len(alias) > 0 {
|
||||
// Use alias both to find the property, and set within the property.
|
||||
propName = fmt.Sprintf("%s:%s", alias, "discoverable")
|
||||
}
|
||||
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 := &TootDiscoverableProperty{
|
||||
alias: alias,
|
||||
iri: u,
|
||||
}
|
||||
return this, nil
|
||||
}
|
||||
}
|
||||
if v, err := boolean.DeserializeBoolean(i); err == nil {
|
||||
this := &TootDiscoverableProperty{
|
||||
alias: alias,
|
||||
hasBooleanMember: true,
|
||||
xmlschemaBooleanMember: v,
|
||||
}
|
||||
return this, nil
|
||||
}
|
||||
this := &TootDiscoverableProperty{
|
||||
alias: alias,
|
||||
unknown: i,
|
||||
}
|
||||
return this, nil
|
||||
}
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
// NewTootDiscoverableProperty creates a new discoverable property.
|
||||
func NewTootDiscoverableProperty() *TootDiscoverableProperty {
|
||||
return &TootDiscoverableProperty{alias: ""}
|
||||
}
|
||||
|
||||
// Clear ensures no value of this property is set. Calling IsXMLSchemaBoolean
|
||||
// afterwards will return false.
|
||||
func (this *TootDiscoverableProperty) Clear() {
|
||||
this.unknown = nil
|
||||
this.iri = nil
|
||||
this.hasBooleanMember = false
|
||||
}
|
||||
|
||||
// Get returns the value of this property. When IsXMLSchemaBoolean returns false,
|
||||
// Get will return any arbitrary value.
|
||||
func (this TootDiscoverableProperty) Get() bool {
|
||||
return this.xmlschemaBooleanMember
|
||||
}
|
||||
|
||||
// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
|
||||
// return any arbitrary value.
|
||||
func (this TootDiscoverableProperty) GetIRI() *url.URL {
|
||||
return this.iri
|
||||
}
|
||||
|
||||
// HasAny returns true if the value or IRI is set.
|
||||
func (this TootDiscoverableProperty) HasAny() bool {
|
||||
return this.IsXMLSchemaBoolean() || this.iri != nil
|
||||
}
|
||||
|
||||
// IsIRI returns true if this property is an IRI.
|
||||
func (this TootDiscoverableProperty) IsIRI() bool {
|
||||
return this.iri != nil
|
||||
}
|
||||
|
||||
// IsXMLSchemaBoolean returns true if this property is set and not an IRI.
|
||||
func (this TootDiscoverableProperty) IsXMLSchemaBoolean() bool {
|
||||
return this.hasBooleanMember
|
||||
}
|
||||
|
||||
// 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 TootDiscoverableProperty) JSONLDContext() map[string]string {
|
||||
m := map[string]string{"http://joinmastodon.org/ns": 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 TootDiscoverableProperty) KindIndex() int {
|
||||
if this.IsXMLSchemaBoolean() {
|
||||
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 TootDiscoverableProperty) LessThan(o vocab.TootDiscoverableProperty) 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.IsXMLSchemaBoolean() && !o.IsXMLSchemaBoolean() {
|
||||
// Both are unknowns.
|
||||
return false
|
||||
} else if this.IsXMLSchemaBoolean() && !o.IsXMLSchemaBoolean() {
|
||||
// Values are always greater than unknown values.
|
||||
return false
|
||||
} else if !this.IsXMLSchemaBoolean() && o.IsXMLSchemaBoolean() {
|
||||
// Unknowns are always less than known values.
|
||||
return true
|
||||
} else {
|
||||
// Actual comparison.
|
||||
return boolean.LessBoolean(this.Get(), o.Get())
|
||||
}
|
||||
}
|
||||
|
||||
// Name returns the name of this property: "discoverable".
|
||||
func (this TootDiscoverableProperty) Name() string {
|
||||
if len(this.alias) > 0 {
|
||||
return this.alias + ":" + "discoverable"
|
||||
} else {
|
||||
return "discoverable"
|
||||
}
|
||||
}
|
||||
|
||||
// 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 TootDiscoverableProperty) Serialize() (interface{}, error) {
|
||||
if this.IsXMLSchemaBoolean() {
|
||||
return boolean.SerializeBoolean(this.Get())
|
||||
} else if this.IsIRI() {
|
||||
return this.iri.String(), nil
|
||||
}
|
||||
return this.unknown, nil
|
||||
}
|
||||
|
||||
// Set sets the value of this property. Calling IsXMLSchemaBoolean afterwards will
|
||||
// return true.
|
||||
func (this *TootDiscoverableProperty) Set(v bool) {
|
||||
this.Clear()
|
||||
this.xmlschemaBooleanMember = v
|
||||
this.hasBooleanMember = true
|
||||
}
|
||||
|
||||
// SetIRI sets the value of this property. Calling IsIRI afterwards will return
|
||||
// true.
|
||||
func (this *TootDiscoverableProperty) SetIRI(v *url.URL) {
|
||||
this.Clear()
|
||||
this.iri = v
|
||||
}
|
17
vendor/github.com/go-fed/activity/streams/impl/toot/property_featured/gen_doc.go
generated
vendored
Normal file
17
vendor/github.com/go-fed/activity/streams/impl/toot/property_featured/gen_doc.go
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
// Code generated by astool. DO NOT EDIT.
|
||||
|
||||
// Package propertyfeatured contains the implementation for the featured 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 propertyfeatured
|
27
vendor/github.com/go-fed/activity/streams/impl/toot/property_featured/gen_pkg.go
generated
vendored
Normal file
27
vendor/github.com/go-fed/activity/streams/impl/toot/property_featured/gen_pkg.go
generated
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
// Code generated by astool. DO NOT EDIT.
|
||||
|
||||
package propertyfeatured
|
||||
|
||||
import vocab "github.com/go-fed/activity/streams/vocab"
|
||||
|
||||
var mgr privateManager
|
||||
|
||||
// privateManager abstracts the code-generated manager that provides access to
|
||||
// concrete implementations.
|
||||
type privateManager interface {
|
||||
// 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)
|
||||
}
|
||||
|
||||
// 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
|
||||
}
|
268
vendor/github.com/go-fed/activity/streams/impl/toot/property_featured/gen_property_toot_featured.go
generated
vendored
Normal file
268
vendor/github.com/go-fed/activity/streams/impl/toot/property_featured/gen_property_toot_featured.go
generated
vendored
Normal file
@ -0,0 +1,268 @@
|
||||
// Code generated by astool. DO NOT EDIT.
|
||||
|
||||
package propertyfeatured
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
vocab "github.com/go-fed/activity/streams/vocab"
|
||||
"net/url"
|
||||
)
|
||||
|
||||
// TootFeaturedProperty is the functional property "featured". It is permitted to
|
||||
// be one of multiple value types. At most, one type of value can be present,
|
||||
// or none at all. Setting a value will clear the other types of values so
|
||||
// that only one of the 'Is' methods will return true. It is possible to clear
|
||||
// all values, so that this property is empty.
|
||||
type TootFeaturedProperty struct {
|
||||
activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection
|
||||
activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage
|
||||
unknown interface{}
|
||||
iri *url.URL
|
||||
alias string
|
||||
}
|
||||
|
||||
// DeserializeFeaturedProperty creates a "featured" property from an interface
|
||||
// representation that has been unmarshalled from a text or binary format.
|
||||
func DeserializeFeaturedProperty(m map[string]interface{}, aliasMap map[string]string) (*TootFeaturedProperty, error) {
|
||||
alias := ""
|
||||
if a, ok := aliasMap["http://joinmastodon.org/ns"]; ok {
|
||||
alias = a
|
||||
}
|
||||
propName := "featured"
|
||||
if len(alias) > 0 {
|
||||
// Use alias both to find the property, and set within the property.
|
||||
propName = fmt.Sprintf("%s:%s", alias, "featured")
|
||||
}
|
||||
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 := &TootFeaturedProperty{
|
||||
alias: alias,
|
||||
iri: u,
|
||||
}
|
||||
return this, nil
|
||||
}
|
||||
}
|
||||
if m, ok := i.(map[string]interface{}); ok {
|
||||
if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil {
|
||||
this := &TootFeaturedProperty{
|
||||
activitystreamsOrderedCollectionMember: v,
|
||||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil {
|
||||
this := &TootFeaturedProperty{
|
||||
activitystreamsOrderedCollectionPageMember: v,
|
||||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
}
|
||||
}
|
||||
this := &TootFeaturedProperty{
|
||||
alias: alias,
|
||||
unknown: i,
|
||||
}
|
||||
return this, nil
|
||||
}
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
// NewTootFeaturedProperty creates a new featured property.
|
||||
func NewTootFeaturedProperty() *TootFeaturedProperty {
|
||||
return &TootFeaturedProperty{alias: ""}
|
||||
}
|
||||
|
||||
// Clear ensures no value of this property is set. Calling HasAny or any of the
|
||||
// 'Is' methods afterwards will return false.
|
||||
func (this *TootFeaturedProperty) Clear() {
|
||||
this.activitystreamsOrderedCollectionMember = nil
|
||||
this.activitystreamsOrderedCollectionPageMember = nil
|
||||
this.unknown = nil
|
||||
this.iri = nil
|
||||
}
|
||||
|
||||
// GetActivityStreamsOrderedCollection returns the value of this property. When
|
||||
// IsActivityStreamsOrderedCollection returns false,
|
||||
// GetActivityStreamsOrderedCollection will return an arbitrary value.
|
||||
func (this TootFeaturedProperty) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection {
|
||||
return this.activitystreamsOrderedCollectionMember
|
||||
}
|
||||
|
||||
// GetActivityStreamsOrderedCollectionPage returns the value of this property.
|
||||
// When IsActivityStreamsOrderedCollectionPage returns false,
|
||||
// GetActivityStreamsOrderedCollectionPage will return an arbitrary value.
|
||||
func (this TootFeaturedProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage {
|
||||
return this.activitystreamsOrderedCollectionPageMember
|
||||
}
|
||||
|
||||
// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
|
||||
// return an arbitrary value.
|
||||
func (this TootFeaturedProperty) GetIRI() *url.URL {
|
||||
return this.iri
|
||||
}
|
||||
|
||||
// GetType returns the value in this property as a Type. Returns nil if the value
|
||||
// is not an ActivityStreams type, such as an IRI or another value.
|
||||
func (this TootFeaturedProperty) GetType() vocab.Type {
|
||||
if this.IsActivityStreamsOrderedCollection() {
|
||||
return this.GetActivityStreamsOrderedCollection()
|
||||
}
|
||||
if this.IsActivityStreamsOrderedCollectionPage() {
|
||||
return this.GetActivityStreamsOrderedCollectionPage()
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// HasAny returns true if any of the different values is set.
|
||||
func (this TootFeaturedProperty) HasAny() bool {
|
||||
return this.IsActivityStreamsOrderedCollection() ||
|
||||
this.IsActivityStreamsOrderedCollectionPage() ||
|
||||
this.iri != nil
|
||||
}
|
||||
|
||||
// IsActivityStreamsOrderedCollection returns true if this property has a type of
|
||||
// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection
|
||||
// and SetActivityStreamsOrderedCollection methods to access and set this
|
||||
// property.
|
||||
func (this TootFeaturedProperty) IsActivityStreamsOrderedCollection() bool {
|
||||
return this.activitystreamsOrderedCollectionMember != nil
|
||||
}
|
||||
|
||||
// IsActivityStreamsOrderedCollectionPage returns true if this property has a type
|
||||
// of "OrderedCollectionPage". When true, use the
|
||||
// GetActivityStreamsOrderedCollectionPage and
|
||||
// SetActivityStreamsOrderedCollectionPage methods to access and set this
|
||||
// property.
|
||||
func (this TootFeaturedProperty) IsActivityStreamsOrderedCollectionPage() bool {
|
||||
return this.activitystreamsOrderedCollectionPageMember != nil
|
||||
}
|
||||
|
||||
// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
|
||||
// to access and set this property
|
||||
func (this TootFeaturedProperty) IsIRI() bool {
|
||||
return this.iri != 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 TootFeaturedProperty) JSONLDContext() map[string]string {
|
||||
m := map[string]string{"http://joinmastodon.org/ns": this.alias}
|
||||
var child map[string]string
|
||||
if this.IsActivityStreamsOrderedCollection() {
|
||||
child = this.GetActivityStreamsOrderedCollection().JSONLDContext()
|
||||
} else if this.IsActivityStreamsOrderedCollectionPage() {
|
||||
child = this.GetActivityStreamsOrderedCollectionPage().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 detail only for folks looking to replace the go-fed
|
||||
// implementation. Applications should not use this method.
|
||||
func (this TootFeaturedProperty) KindIndex() int {
|
||||
if this.IsActivityStreamsOrderedCollection() {
|
||||
return 0
|
||||
}
|
||||
if this.IsActivityStreamsOrderedCollectionPage() {
|
||||
return 1
|
||||
}
|
||||
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 TootFeaturedProperty) LessThan(o vocab.TootFeaturedProperty) bool {
|
||||
idx1 := this.KindIndex()
|
||||
idx2 := o.KindIndex()
|
||||
if idx1 < idx2 {
|
||||
return true
|
||||
} else if idx1 > idx2 {
|
||||
return false
|
||||
} else if this.IsActivityStreamsOrderedCollection() {
|
||||
return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection())
|
||||
} else if this.IsActivityStreamsOrderedCollectionPage() {
|
||||
return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage())
|
||||
} else if this.IsIRI() {
|
||||
return this.iri.String() < o.GetIRI().String()
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// Name returns the name of this property: "featured".
|
||||
func (this TootFeaturedProperty) Name() string {
|
||||
if len(this.alias) > 0 {
|
||||
return this.alias + ":" + "featured"
|
||||
} else {
|
||||
return "featured"
|
||||
}
|
||||
}
|
||||
|
||||
// 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 TootFeaturedProperty) Serialize() (interface{}, error) {
|
||||
if this.IsActivityStreamsOrderedCollection() {
|
||||
return this.GetActivityStreamsOrderedCollection().Serialize()
|
||||
} else if this.IsActivityStreamsOrderedCollectionPage() {
|
||||
return this.GetActivityStreamsOrderedCollectionPage().Serialize()
|
||||
} else if this.IsIRI() {
|
||||
return this.iri.String(), nil
|
||||
}
|
||||
return this.unknown, nil
|
||||
}
|
||||
|
||||
// SetActivityStreamsOrderedCollection sets the value of this property. Calling
|
||||
// IsActivityStreamsOrderedCollection afterwards returns true.
|
||||
func (this *TootFeaturedProperty) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
|
||||
this.Clear()
|
||||
this.activitystreamsOrderedCollectionMember = v
|
||||
}
|
||||
|
||||
// SetActivityStreamsOrderedCollectionPage sets the value of this property.
|
||||
// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true.
|
||||
func (this *TootFeaturedProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
|
||||
this.Clear()
|
||||
this.activitystreamsOrderedCollectionPageMember = v
|
||||
}
|
||||
|
||||
// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
|
||||
func (this *TootFeaturedProperty) SetIRI(v *url.URL) {
|
||||
this.Clear()
|
||||
this.iri = v
|
||||
}
|
||||
|
||||
// SetType attempts to set the property for the arbitrary type. Returns an error
|
||||
// if it is not a valid type to set on this property.
|
||||
func (this *TootFeaturedProperty) SetType(t vocab.Type) error {
|
||||
if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok {
|
||||
this.SetActivityStreamsOrderedCollection(v)
|
||||
return nil
|
||||
}
|
||||
if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok {
|
||||
this.SetActivityStreamsOrderedCollectionPage(v)
|
||||
return nil
|
||||
}
|
||||
|
||||
return fmt.Errorf("illegal type to set on featured property: %T", t)
|
||||
}
|
17
vendor/github.com/go-fed/activity/streams/impl/toot/property_signaturealgorithm/gen_doc.go
generated
vendored
Normal file
17
vendor/github.com/go-fed/activity/streams/impl/toot/property_signaturealgorithm/gen_doc.go
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
// Code generated by astool. DO NOT EDIT.
|
||||
|
||||
// Package propertysignaturealgorithm contains the implementation for the
|
||||
// signatureAlgorithm 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 propertysignaturealgorithm
|
15
vendor/github.com/go-fed/activity/streams/impl/toot/property_signaturealgorithm/gen_pkg.go
generated
vendored
Normal file
15
vendor/github.com/go-fed/activity/streams/impl/toot/property_signaturealgorithm/gen_pkg.go
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
// Code generated by astool. DO NOT EDIT.
|
||||
|
||||
package propertysignaturealgorithm
|
||||
|
||||
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
|
||||
}
|
204
vendor/github.com/go-fed/activity/streams/impl/toot/property_signaturealgorithm/gen_property_toot_signatureAlgorithm.go
generated
vendored
Normal file
204
vendor/github.com/go-fed/activity/streams/impl/toot/property_signaturealgorithm/gen_property_toot_signatureAlgorithm.go
generated
vendored
Normal file
@ -0,0 +1,204 @@
|
||||
// Code generated by astool. DO NOT EDIT.
|
||||
|
||||
package propertysignaturealgorithm
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
string1 "github.com/go-fed/activity/streams/values/string"
|
||||
vocab "github.com/go-fed/activity/streams/vocab"
|
||||
"net/url"
|
||||
)
|
||||
|
||||
// TootSignatureAlgorithmProperty is the functional property "signatureAlgorithm".
|
||||
// It is permitted to be a single default-valued value type.
|
||||
type TootSignatureAlgorithmProperty struct {
|
||||
xmlschemaStringMember string
|
||||
hasStringMember bool
|
||||
unknown interface{}
|
||||
iri *url.URL
|
||||
alias string
|
||||
}
|
||||
|
||||
// DeserializeSignatureAlgorithmProperty creates a "signatureAlgorithm" property
|
||||
// from an interface representation that has been unmarshalled from a text or
|
||||
// binary format.
|
||||
func DeserializeSignatureAlgorithmProperty(m map[string]interface{}, aliasMap map[string]string) (*TootSignatureAlgorithmProperty, error) {
|
||||
alias := ""
|
||||
if a, ok := aliasMap["http://joinmastodon.org/ns"]; ok {
|
||||
alias = a
|
||||
}
|
||||
propName := "signatureAlgorithm"
|
||||
if len(alias) > 0 {
|
||||
// Use alias both to find the property, and set within the property.
|
||||
propName = fmt.Sprintf("%s:%s", alias, "signatureAlgorithm")
|
||||
}
|
||||
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 := &TootSignatureAlgorithmProperty{
|
||||
alias: alias,
|
||||
iri: u,
|
||||
}
|
||||
return this, nil
|
||||
}
|
||||
}
|
||||
if v, err := string1.DeserializeString(i); err == nil {
|
||||
this := &TootSignatureAlgorithmProperty{
|
||||
alias: alias,
|
||||
hasStringMember: true,
|
||||
xmlschemaStringMember: v,
|
||||
}
|
||||
return this, nil
|
||||
}
|
||||
this := &TootSignatureAlgorithmProperty{
|
||||
alias: alias,
|
||||
unknown: i,
|
||||
}
|
||||
return this, nil
|
||||
}
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
// NewTootSignatureAlgorithmProperty creates a new signatureAlgorithm property.
|
||||
func NewTootSignatureAlgorithmProperty() *TootSignatureAlgorithmProperty {
|
||||
return &TootSignatureAlgorithmProperty{alias: ""}
|
||||
}
|
||||
|
||||
// Clear ensures no value of this property is set. Calling IsXMLSchemaString
|
||||
// afterwards will return false.
|
||||
func (this *TootSignatureAlgorithmProperty) Clear() {
|
||||
this.unknown = nil
|
||||
this.iri = nil
|
||||
this.hasStringMember = false
|
||||
}
|
||||
|
||||
// Get returns the value of this property. When IsXMLSchemaString returns false,
|
||||
// Get will return any arbitrary value.
|
||||
func (this TootSignatureAlgorithmProperty) Get() string {
|
||||
return this.xmlschemaStringMember
|
||||
}
|
||||
|
||||
// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
|
||||
// return any arbitrary value.
|
||||
func (this TootSignatureAlgorithmProperty) GetIRI() *url.URL {
|
||||
return this.iri
|
||||
}
|
||||
|
||||
// HasAny returns true if the value or IRI is set.
|
||||
func (this TootSignatureAlgorithmProperty) HasAny() bool {
|
||||
return this.IsXMLSchemaString() || this.iri != nil
|
||||
}
|
||||
|
||||
// IsIRI returns true if this property is an IRI.
|
||||
func (this TootSignatureAlgorithmProperty) IsIRI() bool {
|
||||
return this.iri != nil
|
||||
}
|
||||
|
||||
// IsXMLSchemaString returns true if this property is set and not an IRI.
|
||||
func (this TootSignatureAlgorithmProperty) IsXMLSchemaString() bool {
|
||||
return this.hasStringMember
|
||||
}
|
||||
|
||||
// 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 TootSignatureAlgorithmProperty) JSONLDContext() map[string]string {
|
||||
m := map[string]string{"http://joinmastodon.org/ns": 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 TootSignatureAlgorithmProperty) KindIndex() int {
|
||||
if this.IsXMLSchemaString() {
|
||||
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 TootSignatureAlgorithmProperty) LessThan(o vocab.TootSignatureAlgorithmProperty) 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.IsXMLSchemaString() && !o.IsXMLSchemaString() {
|
||||
// Both are unknowns.
|
||||
return false
|
||||
} else if this.IsXMLSchemaString() && !o.IsXMLSchemaString() {
|
||||
// Values are always greater than unknown values.
|
||||
return false
|
||||
} else if !this.IsXMLSchemaString() && o.IsXMLSchemaString() {
|
||||
// Unknowns are always less than known values.
|
||||
return true
|
||||
} else {
|
||||
// Actual comparison.
|
||||
return string1.LessString(this.Get(), o.Get())
|
||||
}
|
||||
}
|
||||
|
||||
// Name returns the name of this property: "signatureAlgorithm".
|
||||
func (this TootSignatureAlgorithmProperty) Name() string {
|
||||
if len(this.alias) > 0 {
|
||||
return this.alias + ":" + "signatureAlgorithm"
|
||||
} else {
|
||||
return "signatureAlgorithm"
|
||||
}
|
||||
}
|
||||
|
||||
// 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 TootSignatureAlgorithmProperty) Serialize() (interface{}, error) {
|
||||
if this.IsXMLSchemaString() {
|
||||
return string1.SerializeString(this.Get())
|
||||
} else if this.IsIRI() {
|
||||
return this.iri.String(), nil
|
||||
}
|
||||
return this.unknown, nil
|
||||
}
|
||||
|
||||
// Set sets the value of this property. Calling IsXMLSchemaString afterwards will
|
||||
// return true.
|
||||
func (this *TootSignatureAlgorithmProperty) Set(v string) {
|
||||
this.Clear()
|
||||
this.xmlschemaStringMember = v
|
||||
this.hasStringMember = true
|
||||
}
|
||||
|
||||
// SetIRI sets the value of this property. Calling IsIRI afterwards will return
|
||||
// true.
|
||||
func (this *TootSignatureAlgorithmProperty) SetIRI(v *url.URL) {
|
||||
this.Clear()
|
||||
this.iri = v
|
||||
}
|
17
vendor/github.com/go-fed/activity/streams/impl/toot/property_signaturevalue/gen_doc.go
generated
vendored
Normal file
17
vendor/github.com/go-fed/activity/streams/impl/toot/property_signaturevalue/gen_doc.go
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
// Code generated by astool. DO NOT EDIT.
|
||||
|
||||
// Package propertysignaturevalue contains the implementation for the
|
||||
// signatureValue 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 propertysignaturevalue
|
15
vendor/github.com/go-fed/activity/streams/impl/toot/property_signaturevalue/gen_pkg.go
generated
vendored
Normal file
15
vendor/github.com/go-fed/activity/streams/impl/toot/property_signaturevalue/gen_pkg.go
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
// Code generated by astool. DO NOT EDIT.
|
||||
|
||||
package propertysignaturevalue
|
||||
|
||||
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
|
||||
}
|
204
vendor/github.com/go-fed/activity/streams/impl/toot/property_signaturevalue/gen_property_toot_signatureValue.go
generated
vendored
Normal file
204
vendor/github.com/go-fed/activity/streams/impl/toot/property_signaturevalue/gen_property_toot_signatureValue.go
generated
vendored
Normal file
@ -0,0 +1,204 @@
|
||||
// Code generated by astool. DO NOT EDIT.
|
||||
|
||||
package propertysignaturevalue
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
string1 "github.com/go-fed/activity/streams/values/string"
|
||||
vocab "github.com/go-fed/activity/streams/vocab"
|
||||
"net/url"
|
||||
)
|
||||
|
||||
// TootSignatureValueProperty is the functional property "signatureValue". It is
|
||||
// permitted to be a single default-valued value type.
|
||||
type TootSignatureValueProperty struct {
|
||||
xmlschemaStringMember string
|
||||
hasStringMember bool
|
||||
unknown interface{}
|
||||
iri *url.URL
|
||||
alias string
|
||||
}
|
||||
|
||||
// DeserializeSignatureValueProperty creates a "signatureValue" property from an
|
||||
// interface representation that has been unmarshalled from a text or binary
|
||||
// format.
|
||||
func DeserializeSignatureValueProperty(m map[string]interface{}, aliasMap map[string]string) (*TootSignatureValueProperty, error) {
|
||||
alias := ""
|
||||
if a, ok := aliasMap["http://joinmastodon.org/ns"]; ok {
|
||||
alias = a
|
||||
}
|
||||
propName := "signatureValue"
|
||||
if len(alias) > 0 {
|
||||
// Use alias both to find the property, and set within the property.
|
||||
propName = fmt.Sprintf("%s:%s", alias, "signatureValue")
|
||||
}
|
||||
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 := &TootSignatureValueProperty{
|
||||
alias: alias,
|
||||
iri: u,
|
||||
}
|
||||
return this, nil
|
||||
}
|
||||
}
|
||||
if v, err := string1.DeserializeString(i); err == nil {
|
||||
this := &TootSignatureValueProperty{
|
||||
alias: alias,
|
||||
hasStringMember: true,
|
||||
xmlschemaStringMember: v,
|
||||
}
|
||||
return this, nil
|
||||
}
|
||||
this := &TootSignatureValueProperty{
|
||||
alias: alias,
|
||||
unknown: i,
|
||||
}
|
||||
return this, nil
|
||||
}
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
// NewTootSignatureValueProperty creates a new signatureValue property.
|
||||
func NewTootSignatureValueProperty() *TootSignatureValueProperty {
|
||||
return &TootSignatureValueProperty{alias: ""}
|
||||
}
|
||||
|
||||
// Clear ensures no value of this property is set. Calling IsXMLSchemaString
|
||||
// afterwards will return false.
|
||||
func (this *TootSignatureValueProperty) Clear() {
|
||||
this.unknown = nil
|
||||
this.iri = nil
|
||||
this.hasStringMember = false
|
||||
}
|
||||
|
||||
// Get returns the value of this property. When IsXMLSchemaString returns false,
|
||||
// Get will return any arbitrary value.
|
||||
func (this TootSignatureValueProperty) Get() string {
|
||||
return this.xmlschemaStringMember
|
||||
}
|
||||
|
||||
// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
|
||||
// return any arbitrary value.
|
||||
func (this TootSignatureValueProperty) GetIRI() *url.URL {
|
||||
return this.iri
|
||||
}
|
||||
|
||||
// HasAny returns true if the value or IRI is set.
|
||||
func (this TootSignatureValueProperty) HasAny() bool {
|
||||
return this.IsXMLSchemaString() || this.iri != nil
|
||||
}
|
||||
|
||||
// IsIRI returns true if this property is an IRI.
|
||||
func (this TootSignatureValueProperty) IsIRI() bool {
|
||||
return this.iri != nil
|
||||
}
|
||||
|
||||
// IsXMLSchemaString returns true if this property is set and not an IRI.
|
||||
func (this TootSignatureValueProperty) IsXMLSchemaString() bool {
|
||||
return this.hasStringMember
|
||||
}
|
||||
|
||||
// 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 TootSignatureValueProperty) JSONLDContext() map[string]string {
|
||||
m := map[string]string{"http://joinmastodon.org/ns": 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 TootSignatureValueProperty) KindIndex() int {
|
||||
if this.IsXMLSchemaString() {
|
||||
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 TootSignatureValueProperty) LessThan(o vocab.TootSignatureValueProperty) 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.IsXMLSchemaString() && !o.IsXMLSchemaString() {
|
||||
// Both are unknowns.
|
||||
return false
|
||||
} else if this.IsXMLSchemaString() && !o.IsXMLSchemaString() {
|
||||
// Values are always greater than unknown values.
|
||||
return false
|
||||
} else if !this.IsXMLSchemaString() && o.IsXMLSchemaString() {
|
||||
// Unknowns are always less than known values.
|
||||
return true
|
||||
} else {
|
||||
// Actual comparison.
|
||||
return string1.LessString(this.Get(), o.Get())
|
||||
}
|
||||
}
|
||||
|
||||
// Name returns the name of this property: "signatureValue".
|
||||
func (this TootSignatureValueProperty) Name() string {
|
||||
if len(this.alias) > 0 {
|
||||
return this.alias + ":" + "signatureValue"
|
||||
} else {
|
||||
return "signatureValue"
|
||||
}
|
||||
}
|
||||
|
||||
// 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 TootSignatureValueProperty) Serialize() (interface{}, error) {
|
||||
if this.IsXMLSchemaString() {
|
||||
return string1.SerializeString(this.Get())
|
||||
} else if this.IsIRI() {
|
||||
return this.iri.String(), nil
|
||||
}
|
||||
return this.unknown, nil
|
||||
}
|
||||
|
||||
// Set sets the value of this property. Calling IsXMLSchemaString afterwards will
|
||||
// return true.
|
||||
func (this *TootSignatureValueProperty) Set(v string) {
|
||||
this.Clear()
|
||||
this.xmlschemaStringMember = v
|
||||
this.hasStringMember = true
|
||||
}
|
||||
|
||||
// SetIRI sets the value of this property. Calling IsIRI afterwards will return
|
||||
// true.
|
||||
func (this *TootSignatureValueProperty) SetIRI(v *url.URL) {
|
||||
this.Clear()
|
||||
this.iri = v
|
||||
}
|
17
vendor/github.com/go-fed/activity/streams/impl/toot/property_voterscount/gen_doc.go
generated
vendored
Normal file
17
vendor/github.com/go-fed/activity/streams/impl/toot/property_voterscount/gen_doc.go
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
// Code generated by astool. DO NOT EDIT.
|
||||
|
||||
// Package propertyvoterscount contains the implementation for the votersCount
|
||||
// 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 propertyvoterscount
|
15
vendor/github.com/go-fed/activity/streams/impl/toot/property_voterscount/gen_pkg.go
generated
vendored
Normal file
15
vendor/github.com/go-fed/activity/streams/impl/toot/property_voterscount/gen_pkg.go
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
// Code generated by astool. DO NOT EDIT.
|
||||
|
||||
package propertyvoterscount
|
||||
|
||||
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
|
||||
}
|
205
vendor/github.com/go-fed/activity/streams/impl/toot/property_voterscount/gen_property_toot_votersCount.go
generated
vendored
Normal file
205
vendor/github.com/go-fed/activity/streams/impl/toot/property_voterscount/gen_property_toot_votersCount.go
generated
vendored
Normal file
@ -0,0 +1,205 @@
|
||||
// Code generated by astool. DO NOT EDIT.
|
||||
|
||||
package propertyvoterscount
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
nonnegativeinteger "github.com/go-fed/activity/streams/values/nonNegativeInteger"
|
||||
vocab "github.com/go-fed/activity/streams/vocab"
|
||||
"net/url"
|
||||
)
|
||||
|
||||
// TootVotersCountProperty is the functional property "votersCount". It is
|
||||
// permitted to be a single default-valued value type.
|
||||
type TootVotersCountProperty struct {
|
||||
xmlschemaNonNegativeIntegerMember int
|
||||
hasNonNegativeIntegerMember bool
|
||||
unknown interface{}
|
||||
iri *url.URL
|
||||
alias string
|
||||
}
|
||||
|
||||
// DeserializeVotersCountProperty creates a "votersCount" property from an
|
||||
// interface representation that has been unmarshalled from a text or binary
|
||||
// format.
|
||||
func DeserializeVotersCountProperty(m map[string]interface{}, aliasMap map[string]string) (*TootVotersCountProperty, error) {
|
||||
alias := ""
|
||||
if a, ok := aliasMap["http://joinmastodon.org/ns"]; ok {
|
||||
alias = a
|
||||
}
|
||||
propName := "votersCount"
|
||||
if len(alias) > 0 {
|
||||
// Use alias both to find the property, and set within the property.
|
||||
propName = fmt.Sprintf("%s:%s", alias, "votersCount")
|
||||
}
|
||||
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 := &TootVotersCountProperty{
|
||||
alias: alias,
|
||||
iri: u,
|
||||
}
|
||||
return this, nil
|
||||
}
|
||||
}
|
||||
if v, err := nonnegativeinteger.DeserializeNonNegativeInteger(i); err == nil {
|
||||
this := &TootVotersCountProperty{
|
||||
alias: alias,
|
||||
hasNonNegativeIntegerMember: true,
|
||||
xmlschemaNonNegativeIntegerMember: v,
|
||||
}
|
||||
return this, nil
|
||||
}
|
||||
this := &TootVotersCountProperty{
|
||||
alias: alias,
|
||||
unknown: i,
|
||||
}
|
||||
return this, nil
|
||||
}
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
// NewTootVotersCountProperty creates a new votersCount property.
|
||||
func NewTootVotersCountProperty() *TootVotersCountProperty {
|
||||
return &TootVotersCountProperty{alias: ""}
|
||||
}
|
||||
|
||||
// Clear ensures no value of this property is set. Calling
|
||||
// IsXMLSchemaNonNegativeInteger afterwards will return false.
|
||||
func (this *TootVotersCountProperty) Clear() {
|
||||
this.unknown = nil
|
||||
this.iri = nil
|
||||
this.hasNonNegativeIntegerMember = false
|
||||
}
|
||||
|
||||
// Get returns the value of this property. When IsXMLSchemaNonNegativeInteger
|
||||
// returns false, Get will return any arbitrary value.
|
||||
func (this TootVotersCountProperty) Get() int {
|
||||
return this.xmlschemaNonNegativeIntegerMember
|
||||
}
|
||||
|
||||
// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
|
||||
// return any arbitrary value.
|
||||
func (this TootVotersCountProperty) GetIRI() *url.URL {
|
||||
return this.iri
|
||||
}
|
||||
|
||||
// HasAny returns true if the value or IRI is set.
|
||||
func (this TootVotersCountProperty) HasAny() bool {
|
||||
return this.IsXMLSchemaNonNegativeInteger() || this.iri != nil
|
||||
}
|
||||
|
||||
// IsIRI returns true if this property is an IRI.
|
||||
func (this TootVotersCountProperty) IsIRI() bool {
|
||||
return this.iri != nil
|
||||
}
|
||||
|
||||
// IsXMLSchemaNonNegativeInteger returns true if this property is set and not an
|
||||
// IRI.
|
||||
func (this TootVotersCountProperty) IsXMLSchemaNonNegativeInteger() bool {
|
||||
return this.hasNonNegativeIntegerMember
|
||||
}
|
||||
|
||||
// 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 TootVotersCountProperty) JSONLDContext() map[string]string {
|
||||
m := map[string]string{"http://joinmastodon.org/ns": 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 TootVotersCountProperty) KindIndex() int {
|
||||
if this.IsXMLSchemaNonNegativeInteger() {
|
||||
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 TootVotersCountProperty) LessThan(o vocab.TootVotersCountProperty) 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.IsXMLSchemaNonNegativeInteger() && !o.IsXMLSchemaNonNegativeInteger() {
|
||||
// Both are unknowns.
|
||||
return false
|
||||
} else if this.IsXMLSchemaNonNegativeInteger() && !o.IsXMLSchemaNonNegativeInteger() {
|
||||
// Values are always greater than unknown values.
|
||||
return false
|
||||
} else if !this.IsXMLSchemaNonNegativeInteger() && o.IsXMLSchemaNonNegativeInteger() {
|
||||
// Unknowns are always less than known values.
|
||||
return true
|
||||
} else {
|
||||
// Actual comparison.
|
||||
return nonnegativeinteger.LessNonNegativeInteger(this.Get(), o.Get())
|
||||
}
|
||||
}
|
||||
|
||||
// Name returns the name of this property: "votersCount".
|
||||
func (this TootVotersCountProperty) Name() string {
|
||||
if len(this.alias) > 0 {
|
||||
return this.alias + ":" + "votersCount"
|
||||
} else {
|
||||
return "votersCount"
|
||||
}
|
||||
}
|
||||
|
||||
// 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 TootVotersCountProperty) Serialize() (interface{}, error) {
|
||||
if this.IsXMLSchemaNonNegativeInteger() {
|
||||
return nonnegativeinteger.SerializeNonNegativeInteger(this.Get())
|
||||
} else if this.IsIRI() {
|
||||
return this.iri.String(), nil
|
||||
}
|
||||
return this.unknown, nil
|
||||
}
|
||||
|
||||
// Set sets the value of this property. Calling IsXMLSchemaNonNegativeInteger
|
||||
// afterwards will return true.
|
||||
func (this *TootVotersCountProperty) Set(v int) {
|
||||
this.Clear()
|
||||
this.xmlschemaNonNegativeIntegerMember = v
|
||||
this.hasNonNegativeIntegerMember = true
|
||||
}
|
||||
|
||||
// SetIRI sets the value of this property. Calling IsIRI afterwards will return
|
||||
// true.
|
||||
func (this *TootVotersCountProperty) SetIRI(v *url.URL) {
|
||||
this.Clear()
|
||||
this.iri = v
|
||||
}
|
17
vendor/github.com/go-fed/activity/streams/impl/toot/type_emoji/gen_doc.go
generated
vendored
Normal file
17
vendor/github.com/go-fed/activity/streams/impl/toot/type_emoji/gen_doc.go
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
// Code generated by astool. DO NOT EDIT.
|
||||
|
||||
// Package typeemoji contains the implementation for the Emoji type. 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 typeemoji
|
187
vendor/github.com/go-fed/activity/streams/impl/toot/type_emoji/gen_pkg.go
generated
vendored
Normal file
187
vendor/github.com/go-fed/activity/streams/impl/toot/type_emoji/gen_pkg.go
generated
vendored
Normal file
@ -0,0 +1,187 @@
|
||||
// Code generated by astool. DO NOT EDIT.
|
||||
|
||||
package typeemoji
|
||||
|
||||
import vocab "github.com/go-fed/activity/streams/vocab"
|
||||
|
||||
var mgr privateManager
|
||||
|
||||
var typePropertyConstructor func() vocab.JSONLDTypeProperty
|
||||
|
||||
// privateManager abstracts the code-generated manager that provides access to
|
||||
// concrete implementations.
|
||||
type privateManager interface {
|
||||
// DeserializeAltitudePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsAltitudeProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error)
|
||||
// DeserializeAttachmentPropertyActivityStreams returns the
|
||||
// deserialization method for the "ActivityStreamsAttachmentProperty"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error)
|
||||
// DeserializeAttributedToPropertyActivityStreams returns the
|
||||
// deserialization method for the
|
||||
// "ActivityStreamsAttributedToProperty" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error)
|
||||
// DeserializeAudiencePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsAudienceProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error)
|
||||
// DeserializeBccPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsBccProperty" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error)
|
||||
// DeserializeBtoPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsBtoProperty" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error)
|
||||
// DeserializeCcPropertyActivityStreams returns the deserialization method
|
||||
// for the "ActivityStreamsCcProperty" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error)
|
||||
// DeserializeContentPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsContentProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error)
|
||||
// DeserializeContextPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsContextProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error)
|
||||
// DeserializeDurationPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsDurationProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error)
|
||||
// DeserializeEndTimePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsEndTimeProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error)
|
||||
// DeserializeGeneratorPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsGeneratorProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error)
|
||||
// DeserializeIconPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsIconProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error)
|
||||
// DeserializeIdPropertyJSONLD returns the deserialization method for the
|
||||
// "JSONLDIdProperty" non-functional property in the vocabulary
|
||||
// "JSONLD"
|
||||
DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error)
|
||||
// DeserializeImagePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsImageProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error)
|
||||
// DeserializeInReplyToPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsInReplyToProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error)
|
||||
// DeserializeLikesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsLikesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error)
|
||||
// DeserializeLocationPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsLocationProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error)
|
||||
// DeserializeMediaTypePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsMediaTypeProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error)
|
||||
// DeserializeNamePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsNameProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error)
|
||||
// DeserializeObjectPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsObjectProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error)
|
||||
// DeserializePreviewPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsPreviewProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error)
|
||||
// DeserializePublishedPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsPublishedProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error)
|
||||
// DeserializeRepliesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsRepliesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error)
|
||||
// DeserializeSourcePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSourceProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error)
|
||||
// DeserializeStartTimePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsStartTimeProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error)
|
||||
// DeserializeSummaryPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSummaryProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error)
|
||||
// DeserializeTagPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsTagProperty" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error)
|
||||
// DeserializeTeamPropertyForgeFed returns the deserialization method for
|
||||
// the "ForgeFedTeamProperty" non-functional property in the
|
||||
// vocabulary "ForgeFed"
|
||||
DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error)
|
||||
// DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization
|
||||
// method for the "ForgeFedTicketsTrackedByProperty" non-functional
|
||||
// property in the vocabulary "ForgeFed"
|
||||
DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error)
|
||||
// DeserializeToPropertyActivityStreams returns the deserialization method
|
||||
// for the "ActivityStreamsToProperty" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error)
|
||||
// DeserializeTracksTicketsForPropertyForgeFed returns the deserialization
|
||||
// method for the "ForgeFedTracksTicketsForProperty" non-functional
|
||||
// property in the vocabulary "ForgeFed"
|
||||
DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error)
|
||||
// DeserializeTypePropertyJSONLD returns the deserialization method for
|
||||
// the "JSONLDTypeProperty" non-functional property in the vocabulary
|
||||
// "JSONLD"
|
||||
DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error)
|
||||
// DeserializeUpdatedPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsUpdatedProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error)
|
||||
// DeserializeUrlPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsUrlProperty" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error)
|
||||
}
|
||||
|
||||
// jsonldContexter is a private interface to determine the JSON-LD contexts and
|
||||
// aliases needed for functional and non-functional properties. It is a helper
|
||||
// interface for this implementation.
|
||||
type jsonldContexter interface {
|
||||
// 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.
|
||||
JSONLDContext() map[string]string
|
||||
}
|
||||
|
||||
// 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
|
||||
}
|
||||
|
||||
// SetTypePropertyConstructor sets the "type" property's constructor in the
|
||||
// package-global variable. For internal use only, do not use as part of
|
||||
// Application behavior. Must be called at golang init time. Permits
|
||||
// ActivityStreams types to correctly set their "type" property at
|
||||
// construction time, so users don't have to remember to do so each time. It
|
||||
// is dependency injected so other go-fed compatible implementations could
|
||||
// inject their own type.
|
||||
func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) {
|
||||
typePropertyConstructor = f
|
||||
}
|
1740
vendor/github.com/go-fed/activity/streams/impl/toot/type_emoji/gen_type_toot_emoji.go
generated
vendored
Normal file
1740
vendor/github.com/go-fed/activity/streams/impl/toot/type_emoji/gen_type_toot_emoji.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
17
vendor/github.com/go-fed/activity/streams/impl/toot/type_identityproof/gen_doc.go
generated
vendored
Normal file
17
vendor/github.com/go-fed/activity/streams/impl/toot/type_identityproof/gen_doc.go
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
// Code generated by astool. DO NOT EDIT.
|
||||
|
||||
// Package typeidentityproof contains the implementation for the IdentityProof
|
||||
// type. 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 typeidentityproof
|
195
vendor/github.com/go-fed/activity/streams/impl/toot/type_identityproof/gen_pkg.go
generated
vendored
Normal file
195
vendor/github.com/go-fed/activity/streams/impl/toot/type_identityproof/gen_pkg.go
generated
vendored
Normal file
@ -0,0 +1,195 @@
|
||||
// Code generated by astool. DO NOT EDIT.
|
||||
|
||||
package typeidentityproof
|
||||
|
||||
import vocab "github.com/go-fed/activity/streams/vocab"
|
||||
|
||||
var mgr privateManager
|
||||
|
||||
var typePropertyConstructor func() vocab.JSONLDTypeProperty
|
||||
|
||||
// privateManager abstracts the code-generated manager that provides access to
|
||||
// concrete implementations.
|
||||
type privateManager interface {
|
||||
// DeserializeAltitudePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsAltitudeProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error)
|
||||
// DeserializeAttachmentPropertyActivityStreams returns the
|
||||
// deserialization method for the "ActivityStreamsAttachmentProperty"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error)
|
||||
// DeserializeAttributedToPropertyActivityStreams returns the
|
||||
// deserialization method for the
|
||||
// "ActivityStreamsAttributedToProperty" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error)
|
||||
// DeserializeAudiencePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsAudienceProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error)
|
||||
// DeserializeBccPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsBccProperty" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error)
|
||||
// DeserializeBtoPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsBtoProperty" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error)
|
||||
// DeserializeCcPropertyActivityStreams returns the deserialization method
|
||||
// for the "ActivityStreamsCcProperty" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error)
|
||||
// DeserializeContentPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsContentProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error)
|
||||
// DeserializeContextPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsContextProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error)
|
||||
// DeserializeDurationPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsDurationProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error)
|
||||
// DeserializeEndTimePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsEndTimeProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error)
|
||||
// DeserializeGeneratorPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsGeneratorProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error)
|
||||
// DeserializeIconPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsIconProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error)
|
||||
// DeserializeIdPropertyJSONLD returns the deserialization method for the
|
||||
// "JSONLDIdProperty" non-functional property in the vocabulary
|
||||
// "JSONLD"
|
||||
DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error)
|
||||
// DeserializeImagePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsImageProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error)
|
||||
// DeserializeInReplyToPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsInReplyToProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error)
|
||||
// DeserializeLikesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsLikesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error)
|
||||
// DeserializeLocationPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsLocationProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error)
|
||||
// DeserializeMediaTypePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsMediaTypeProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error)
|
||||
// DeserializeNamePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsNameProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error)
|
||||
// DeserializeObjectPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsObjectProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error)
|
||||
// DeserializePreviewPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsPreviewProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error)
|
||||
// DeserializePublishedPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsPublishedProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error)
|
||||
// DeserializeRepliesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsRepliesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error)
|
||||
// DeserializeSignatureAlgorithmPropertyToot returns the deserialization
|
||||
// method for the "TootSignatureAlgorithmProperty" non-functional
|
||||
// property in the vocabulary "Toot"
|
||||
DeserializeSignatureAlgorithmPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootSignatureAlgorithmProperty, error)
|
||||
// DeserializeSignatureValuePropertyToot returns the deserialization
|
||||
// method for the "TootSignatureValueProperty" non-functional property
|
||||
// in the vocabulary "Toot"
|
||||
DeserializeSignatureValuePropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootSignatureValueProperty, error)
|
||||
// DeserializeSourcePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSourceProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error)
|
||||
// DeserializeStartTimePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsStartTimeProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error)
|
||||
// DeserializeSummaryPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSummaryProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error)
|
||||
// DeserializeTagPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsTagProperty" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error)
|
||||
// DeserializeTeamPropertyForgeFed returns the deserialization method for
|
||||
// the "ForgeFedTeamProperty" non-functional property in the
|
||||
// vocabulary "ForgeFed"
|
||||
DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error)
|
||||
// DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization
|
||||
// method for the "ForgeFedTicketsTrackedByProperty" non-functional
|
||||
// property in the vocabulary "ForgeFed"
|
||||
DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error)
|
||||
// DeserializeToPropertyActivityStreams returns the deserialization method
|
||||
// for the "ActivityStreamsToProperty" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error)
|
||||
// DeserializeTracksTicketsForPropertyForgeFed returns the deserialization
|
||||
// method for the "ForgeFedTracksTicketsForProperty" non-functional
|
||||
// property in the vocabulary "ForgeFed"
|
||||
DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error)
|
||||
// DeserializeTypePropertyJSONLD returns the deserialization method for
|
||||
// the "JSONLDTypeProperty" non-functional property in the vocabulary
|
||||
// "JSONLD"
|
||||
DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error)
|
||||
// DeserializeUpdatedPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsUpdatedProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error)
|
||||
// DeserializeUrlPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsUrlProperty" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error)
|
||||
}
|
||||
|
||||
// jsonldContexter is a private interface to determine the JSON-LD contexts and
|
||||
// aliases needed for functional and non-functional properties. It is a helper
|
||||
// interface for this implementation.
|
||||
type jsonldContexter interface {
|
||||
// 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.
|
||||
JSONLDContext() map[string]string
|
||||
}
|
||||
|
||||
// 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
|
||||
}
|
||||
|
||||
// SetTypePropertyConstructor sets the "type" property's constructor in the
|
||||
// package-global variable. For internal use only, do not use as part of
|
||||
// Application behavior. Must be called at golang init time. Permits
|
||||
// ActivityStreams types to correctly set their "type" property at
|
||||
// construction time, so users don't have to remember to do so each time. It
|
||||
// is dependency injected so other go-fed compatible implementations could
|
||||
// inject their own type.
|
||||
func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) {
|
||||
typePropertyConstructor = f
|
||||
}
|
1809
vendor/github.com/go-fed/activity/streams/impl/toot/type_identityproof/gen_type_toot_identityproof.go
generated
vendored
Normal file
1809
vendor/github.com/go-fed/activity/streams/impl/toot/type_identityproof/gen_type_toot_identityproof.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user