Moved actor types constants to correct file

This commit is contained in:
Marius Orcsik 2017-09-11 23:16:09 +02:00
parent 85e7725ff0
commit 0d6ce80864
No known key found for this signature in database
GPG key ID: C36D1EBE93A6EEAE

View file

@ -1,6 +1,21 @@
package activitypub
type ActorCollection = []Actor
const (
// Actor Types
ApplicationType string = "Application"
GroupType string = "Group"
OrganizationType string = "Organization"
PersonType string = "Person"
ServiceType string = "Service"
)
var validActorTypes = [...]string{
ApplicationType,
GroupType,
OrganizationType,
PersonType,
ServiceType,
}
type Actor struct {
BaseObject
@ -30,14 +45,6 @@ type Actor struct {
/**/
}
var validActorTypes = [...]string{
ApplicationType,
GroupType,
OrganizationType,
PersonType,
ServiceType,
}
func ValidActorType(_type string) bool {
for _, v := range validActorTypes {
if v == _type {