Documentation ¶
Overview ¶
Package typecanlike contains the implementation for the CanLike 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.
Index ¶
- func CanLikeIsDisjointWith(other vocab.Type) bool
- func CanLikeIsExtendedBy(other vocab.Type) bool
- func GoToSocialCanLikeExtends(other vocab.Type) bool
- func IsOrExtendsCanLike(other vocab.Type) bool
- func SetManager(m privateManager)
- func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty)
- type GoToSocialCanLike
- func (this GoToSocialCanLike) GetGoToSocialAlways() vocab.GoToSocialAlwaysProperty
- func (this GoToSocialCanLike) GetGoToSocialApprovalRequired() vocab.GoToSocialApprovalRequiredProperty
- func (this GoToSocialCanLike) GetJSONLDId() vocab.JSONLDIdProperty
- func (this GoToSocialCanLike) GetTypeName() string
- func (this GoToSocialCanLike) GetUnknownProperties() map[string]interface{}
- func (this GoToSocialCanLike) IsExtending(other vocab.Type) bool
- func (this GoToSocialCanLike) JSONLDContext() map[string]string
- func (this GoToSocialCanLike) LessThan(o vocab.GoToSocialCanLike) bool
- func (this GoToSocialCanLike) Serialize() (map[string]interface{}, error)
- func (this *GoToSocialCanLike) SetGoToSocialAlways(i vocab.GoToSocialAlwaysProperty)
- func (this *GoToSocialCanLike) SetGoToSocialApprovalRequired(i vocab.GoToSocialApprovalRequiredProperty)
- func (this *GoToSocialCanLike) SetJSONLDId(i vocab.JSONLDIdProperty)
- func (this GoToSocialCanLike) VocabularyURI() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanLikeIsDisjointWith ¶
CanLikeIsDisjointWith returns true if the other provided type is disjoint with the CanLike type.
func CanLikeIsExtendedBy ¶
CanLikeIsExtendedBy returns true if the other provided type extends from the CanLike type. Note that it returns false if the types are the same; see the "IsOrExtendsCanLike" variant instead.
func GoToSocialCanLikeExtends ¶
GoToSocialCanLikeExtends returns true if the CanLike type extends from the other type.
func IsOrExtendsCanLike ¶
IsOrExtendsCanLike returns true if the other provided type is the CanLike type or extends from the CanLike type.
func SetManager ¶
func SetManager(m privateManager)
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 SetTypePropertyConstructor ¶
func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty)
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.
Types ¶
type GoToSocialCanLike ¶
type GoToSocialCanLike struct { GoToSocialAlways vocab.GoToSocialAlwaysProperty GoToSocialApprovalRequired vocab.GoToSocialApprovalRequiredProperty JSONLDId vocab.JSONLDIdProperty // contains filtered or unexported fields }
func DeserializeCanLike ¶
func DeserializeCanLike(m map[string]interface{}, aliasMap map[string]string) (*GoToSocialCanLike, error)
DeserializeCanLike creates a CanLike from a map representation that has been unmarshalled from a text or binary format.
func NewGoToSocialCanLike ¶
func NewGoToSocialCanLike() *GoToSocialCanLike
NewGoToSocialCanLike creates a new CanLike type
func (GoToSocialCanLike) GetGoToSocialAlways ¶
func (this GoToSocialCanLike) GetGoToSocialAlways() vocab.GoToSocialAlwaysProperty
GetGoToSocialAlways returns the "always" property if it exists, and nil otherwise.
func (GoToSocialCanLike) GetGoToSocialApprovalRequired ¶
func (this GoToSocialCanLike) GetGoToSocialApprovalRequired() vocab.GoToSocialApprovalRequiredProperty
GetGoToSocialApprovalRequired returns the "approvalRequired" property if it exists, and nil otherwise.
func (GoToSocialCanLike) GetJSONLDId ¶
func (this GoToSocialCanLike) GetJSONLDId() vocab.JSONLDIdProperty
GetJSONLDId returns the "id" property if it exists, and nil otherwise.
func (GoToSocialCanLike) GetTypeName ¶
func (this GoToSocialCanLike) GetTypeName() string
GetTypeName returns the name of this type.
func (GoToSocialCanLike) GetUnknownProperties ¶
func (this GoToSocialCanLike) GetUnknownProperties() map[string]interface{}
GetUnknownProperties returns the unknown properties for the CanLike type. Note that this should not be used by app developers. It is only used to help determine which implementation is LessThan the other. Developers who are creating a different implementation of this type's interface can use this method in their LessThan implementation, but routine ActivityPub applications should not use this to bypass the code generation tool.
func (GoToSocialCanLike) IsExtending ¶
func (this GoToSocialCanLike) IsExtending(other vocab.Type) bool
IsExtending returns true if the CanLike type extends from the other type.
func (GoToSocialCanLike) JSONLDContext ¶
func (this GoToSocialCanLike) JSONLDContext() map[string]string
JSONLDContext returns the JSONLD URIs required in the context string for this type and the specific properties that are set. The value in the map is the alias used to import the type and its properties.
func (GoToSocialCanLike) LessThan ¶
func (this GoToSocialCanLike) LessThan(o vocab.GoToSocialCanLike) bool
LessThan computes if this CanLike is lesser, with an arbitrary but stable determination.
func (GoToSocialCanLike) Serialize ¶
func (this GoToSocialCanLike) Serialize() (map[string]interface{}, error)
Serialize converts this into an interface representation suitable for marshalling into a text or binary format.
func (*GoToSocialCanLike) SetGoToSocialAlways ¶
func (this *GoToSocialCanLike) SetGoToSocialAlways(i vocab.GoToSocialAlwaysProperty)
SetGoToSocialAlways sets the "always" property.
func (*GoToSocialCanLike) SetGoToSocialApprovalRequired ¶
func (this *GoToSocialCanLike) SetGoToSocialApprovalRequired(i vocab.GoToSocialApprovalRequiredProperty)
SetGoToSocialApprovalRequired sets the "approvalRequired" property.
func (*GoToSocialCanLike) SetJSONLDId ¶
func (this *GoToSocialCanLike) SetJSONLDId(i vocab.JSONLDIdProperty)
SetJSONLDId sets the "id" property.
func (GoToSocialCanLike) VocabularyURI ¶
func (this GoToSocialCanLike) VocabularyURI() string
VocabularyURI returns the vocabulary's URI as a string.