greatape/greataped/components/api/operations/factory.go

28 wiersze
597 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(),
}
}
func NewFactory() IOperationFactory {
return &operationFactory{}
}