Files
services/blog/handler/blog.go
2020-11-03 14:14:00 +01:00

31 lines
607 B
Go

package handler
import (
"context"
comments "github.com/micro/services/blog/comments/proto"
posts "github.com/micro/services/blog/posts/proto"
proto "github.com/micro/services/blog/proto"
tags "github.com/micro/services/blog/tags/proto"
)
type Blog struct {
ps posts.PostsService
cs comments.CommentsService
ts tags.TagsService
}
func NewBlog(ps posts.PostsService,
cs comments.CommentsService,
ts tags.TagsService) *Blog {
return &Blog{
ps: ps,
cs: cs,
ts: ts,
}
}
func (e *Blog) Latest(ctx context.Context, req *proto.LatestRequest, rsp *proto.LatestResponse) error {
return nil
}