Simple RSS/Atom feed source for diretto
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
bacheca/service.go

29 lines
687 B

package bacheca
import (
"context"
"errors"
proto "git.abbiamoundominio.org/hamcha/bacheca/proto"
"git.abbiamoundominio.org/hamcha/bacheca/storage"
)
// Service is the definition of the Bacheca service
type Service interface {
GetFeed(context.Context, *proto.GetFeedRequest, *proto.GetFeedResponse) error
}
type bachecaService struct {
backend storage.Backend
}
// MakeService returns an instance of the bacheca service
func MakeService(store storage.Backend) Service {
return &bachecaService{
backend: store,
}
}
func (b *bachecaService) GetFeed(ctx context.Context, req *proto.GetFeedRequest, rsp *proto.GetFeedResponse) error {
return errors.New("not implemented")
}