mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-10-19 00:34:31 +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
56 lines
2.3 KiB
Go
56 lines
2.3 KiB
Go
// Code generated by astool. DO NOT EDIT.
|
|
|
|
package streams
|
|
|
|
import (
|
|
typebranch "github.com/go-fed/activity/streams/impl/forgefed/type_branch"
|
|
typecommit "github.com/go-fed/activity/streams/impl/forgefed/type_commit"
|
|
typepush "github.com/go-fed/activity/streams/impl/forgefed/type_push"
|
|
typerepository "github.com/go-fed/activity/streams/impl/forgefed/type_repository"
|
|
typeticket "github.com/go-fed/activity/streams/impl/forgefed/type_ticket"
|
|
typeticketdependency "github.com/go-fed/activity/streams/impl/forgefed/type_ticketdependency"
|
|
vocab "github.com/go-fed/activity/streams/vocab"
|
|
)
|
|
|
|
// ForgeFedBranchIsExtendedBy returns true if the other's type extends from
|
|
// Branch. Note that it returns false if the types are the same; see the
|
|
// "IsOrExtends" variant instead.
|
|
func ForgeFedBranchIsExtendedBy(other vocab.Type) bool {
|
|
return typebranch.BranchIsExtendedBy(other)
|
|
}
|
|
|
|
// ForgeFedCommitIsExtendedBy returns true if the other's type extends from
|
|
// Commit. Note that it returns false if the types are the same; see the
|
|
// "IsOrExtends" variant instead.
|
|
func ForgeFedCommitIsExtendedBy(other vocab.Type) bool {
|
|
return typecommit.CommitIsExtendedBy(other)
|
|
}
|
|
|
|
// ForgeFedPushIsExtendedBy returns true if the other's type extends from Push.
|
|
// Note that it returns false if the types are the same; see the "IsOrExtends"
|
|
// variant instead.
|
|
func ForgeFedPushIsExtendedBy(other vocab.Type) bool {
|
|
return typepush.PushIsExtendedBy(other)
|
|
}
|
|
|
|
// ForgeFedRepositoryIsExtendedBy returns true if the other's type extends from
|
|
// Repository. Note that it returns false if the types are the same; see the
|
|
// "IsOrExtends" variant instead.
|
|
func ForgeFedRepositoryIsExtendedBy(other vocab.Type) bool {
|
|
return typerepository.RepositoryIsExtendedBy(other)
|
|
}
|
|
|
|
// ForgeFedTicketIsExtendedBy returns true if the other's type extends from
|
|
// Ticket. Note that it returns false if the types are the same; see the
|
|
// "IsOrExtends" variant instead.
|
|
func ForgeFedTicketIsExtendedBy(other vocab.Type) bool {
|
|
return typeticket.TicketIsExtendedBy(other)
|
|
}
|
|
|
|
// ForgeFedTicketDependencyIsExtendedBy returns true if the other's type extends
|
|
// from TicketDependency. Note that it returns false if the types are the
|
|
// same; see the "IsOrExtends" variant instead.
|
|
func ForgeFedTicketDependencyIsExtendedBy(other vocab.Type) bool {
|
|
return typeticketdependency.TicketDependencyIsExtendedBy(other)
|
|
}
|