From d8e8d44d4778bfd3f9e63488edc696e004edfb15 Mon Sep 17 00:00:00 2001 From: tsmethurst Date: Tue, 2 Mar 2021 18:26:30 +0100 Subject: start implementing db interface --- internal/ap/api.go | 28 ---------------------------- internal/ap/service.go | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 28 deletions(-) delete mode 100644 internal/ap/api.go create mode 100644 internal/ap/service.go (limited to 'internal/ap') diff --git a/internal/ap/api.go b/internal/ap/api.go deleted file mode 100644 index 54f37a7c0..000000000 --- a/internal/ap/api.go +++ /dev/null @@ -1,28 +0,0 @@ -/* - GoToSocial - Copyright (C) 2021 GoToSocial Authors admin@gotosocial.org - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. - - You should have received a copy of the GNU Affero General Public License - along with this program. If not, see . -*/ - -// Package ap provides ActivityPub/federation functionality for GoToSocial -package ap - -import ( - "github.com/go-fed/activity/pub" -) - -func main() { - pub.NewFederatingActor() -} diff --git a/internal/ap/service.go b/internal/ap/service.go new file mode 100644 index 000000000..5d56f3fde --- /dev/null +++ b/internal/ap/service.go @@ -0,0 +1,35 @@ +/* + GoToSocial + Copyright (C) 2021 GoToSocial Authors admin@gotosocial.org + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + +// Package ap provides ActivityPub/federation functionality for GoToSocial +package ap + +import ( +// "github.com/go-fed/activity/pub" +) + +// Service is an activityPub service that uses go-fed to provide federation capabilities +type Service interface { +} + +type service struct { +} + +// NewService returns an activityPub Service +func NewService() { +} -- cgit v1.2.3