mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-10-19 08:42:38 +02:00
98263a7de6
* 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
92 lines
5.3 KiB
Go
92 lines
5.3 KiB
Go
// Code generated by astool. DO NOT EDIT.
|
|
|
|
package typemention
|
|
|
|
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 {
|
|
// 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)
|
|
// DeserializeHeightPropertyActivityStreams returns the deserialization
|
|
// method for the "ActivityStreamsHeightProperty" non-functional
|
|
// property in the vocabulary "ActivityStreams"
|
|
DeserializeHeightPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsHeightProperty, error)
|
|
// DeserializeHrefPropertyActivityStreams returns the deserialization
|
|
// method for the "ActivityStreamsHrefProperty" non-functional
|
|
// property in the vocabulary "ActivityStreams"
|
|
DeserializeHrefPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsHrefProperty, error)
|
|
// DeserializeHreflangPropertyActivityStreams returns the deserialization
|
|
// method for the "ActivityStreamsHreflangProperty" non-functional
|
|
// property in the vocabulary "ActivityStreams"
|
|
DeserializeHreflangPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsHreflangProperty, 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)
|
|
// 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)
|
|
// 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)
|
|
// DeserializeRelPropertyActivityStreams returns the deserialization
|
|
// method for the "ActivityStreamsRelProperty" non-functional property
|
|
// in the vocabulary "ActivityStreams"
|
|
DeserializeRelPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelProperty, 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)
|
|
// 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)
|
|
// DeserializeWidthPropertyActivityStreams returns the deserialization
|
|
// method for the "ActivityStreamsWidthProperty" non-functional
|
|
// property in the vocabulary "ActivityStreams"
|
|
DeserializeWidthPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsWidthProperty, 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
|
|
}
|