Documentation ¶
Index ¶
- func GetBlogByIdHttpHandler() func(w http.ResponseWriter, r *http.Request)
- func GetBlogsByTIDAndUIDHttpHandler() func(w http.ResponseWriter, r *http.Request)
- func GetBlogsByUidHttpHandler() func(w http.ResponseWriter, r *http.Request)
- func GetCommentListByBIDHttpHandler() func(w http.ResponseWriter, r *http.Request)
- func GetTagsByUIDHttpHandler() func(w http.ResponseWriter, r *http.Request)
- func GetUserHttpHandler() func(w http.ResponseWriter, r *http.Request)
- type BlogService
- func (this *BlogService) GetBlogById(ctx context.Context, i *rpc.Intreq) (r *rpc.Blog, err error)
- func (this *BlogService) GetBlogsByTIDAndUID(ctx context.Context, i *rpc.Int2req) (r []*rpc.Blog, err error)
- func (this *BlogService) GetBlogsByUid(ctx context.Context, i *rpc.Intreq) (r []*rpc.Blog, err error)
- type CommentService
- type TagService
- type UserService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBlogByIdHttpHandler ¶
func GetBlogByIdHttpHandler() func(w http.ResponseWriter, r *http.Request)
func GetBlogsByTIDAndUIDHttpHandler ¶
func GetBlogsByTIDAndUIDHttpHandler() func(w http.ResponseWriter, r *http.Request)
func GetBlogsByUidHttpHandler ¶
func GetBlogsByUidHttpHandler() func(w http.ResponseWriter, r *http.Request)
func GetCommentListByBIDHttpHandler ¶
func GetCommentListByBIDHttpHandler() func(w http.ResponseWriter, r *http.Request)
func GetTagsByUIDHttpHandler ¶
func GetTagsByUIDHttpHandler() func(w http.ResponseWriter, r *http.Request)
Handler transform
func GetUserHttpHandler ¶
func GetUserHttpHandler() func(w http.ResponseWriter, r *http.Request)
Types ¶
type BlogService ¶
type BlogService struct { }
func (*BlogService) GetBlogById ¶
func (*BlogService) GetBlogsByTIDAndUID ¶
func (*BlogService) GetBlogsByUid ¶
type UserService ¶
type UserService struct { }
func (*UserService) GetUserInfo ¶
func (this *UserService) GetUserInfo(ctx context.Context, s *rpc.Stringreq) (r *rpc.User, err error)
thrift service func implement
Click to show internal directories.
Click to hide internal directories.