25 lines
512 B
Go
25 lines
512 B
Go
package bacheca
|
|
|
|
import (
|
|
"context"
|
|
"errors"
|
|
|
|
proto "git.abbiamoundominio.org/hamcha/bacheca/proto"
|
|
)
|
|
|
|
// Service is the definition of the Bacheca service
|
|
type Service interface {
|
|
GetFeed(context.Context, *proto.GetFeedRequest, *proto.GetFeedResponse) error
|
|
}
|
|
|
|
type bachecaService struct {
|
|
}
|
|
|
|
func MakeService() Service {
|
|
return &bachecaService{}
|
|
}
|
|
|
|
func (b *bachecaService) GetFeed(ctx context.Context, req *proto.GetFeedRequest, rsp *proto.GetFeedResponse) error {
|
|
return errors.New("not implemented")
|
|
}
|