greatape/components/api/operations/factory.go

33 wiersze
724 B
Go

package operations
import . "github.com/xeronith/diamante/contracts/operation"
type operationFactory struct{}
func (factory *operationFactory) Operations() []IOperation {
return []IOperation{
SystemCallOperation(),
EchoOperation(),
SignupOperation(),
VerifyOperation(),
LoginOperation(),
GetProfileByUserOperation(),
UpdateProfileByUserOperation(),
LogoutOperation(),
WebfingerOperation(),
GetActorOperation(),
FollowActorOperation(),
AuthorizeInteractionOperation(),
GetFollowersOperation(),
GetFollowingOperation(),
PostToOutboxOperation(),
GetOutboxOperation(),
PostToInboxOperation(),
GetInboxOperation(),
}
}
func NewFactory() IOperationFactory {
return &operationFactory{}
}