Documentation
¶
Index ¶
- Constants
- func HandleImage(w http.ResponseWriter, r *http.Request, params map[string]string)
- func HandlePostCreate(w http.ResponseWriter, r *http.Request, _ map[string]string)
- func HandlePostDetailsCreate(w http.ResponseWriter, r *http.Request, params map[string]string)
- type Post
- type Server
- func (s *Server) BookmarkPost(ctx context.Context, req *pb.BookmarkPostRequest) (*emptypb.Empty, error)
- func (s *Server) FundPost(ctx context.Context, req *pb.FundPostRequest) (*emptypb.Empty, error)
- func (s *Server) GetPost(ctx context.Context, req *pb.GetPostRequest) (*pb.GetPostResponse, error)
- func (s *Server) LandingPosts(ctx context.Context, _ *emptypb.Empty) (*pb.LandingPostsResponse, error)
- func (s *Server) SearchPost(ctx context.Context, req *pb.SearchPostRequest) (*pb.SearchPostResponse, error)
- func (s *Server) UserBookmarks(ctx context.Context, _ *emptypb.Empty) (*pb.UserBookmarksResponse, error)
- func (s *Server) UserFunds(ctx context.Context, _ *emptypb.Empty) (*pb.UserFundsResponse, error)
- func (s *Server) UserIDProjects(ctx context.Context, req *pb.UserIDProjectsRequest) (*pb.UserProjectsResponse, error)
- func (s *Server) UserProjects(ctx context.Context, _ *emptypb.Empty) (*pb.UserProjectsResponse, error)
Constants ¶
View Source
const UploadDir = "images"
Variables ¶
This section is empty.
Functions ¶
func HandleImage ¶
func HandlePostCreate ¶
func HandlePostDetailsCreate ¶
Types ¶
type Server ¶
type Server struct { pb.UnimplementedPostServiceServer // contains filtered or unexported fields }
func (*Server) BookmarkPost ¶
func (*Server) GetPost ¶
func (s *Server) GetPost(ctx context.Context, req *pb.GetPostRequest) (*pb.GetPostResponse, error)
func (*Server) LandingPosts ¶
func (*Server) SearchPost ¶
func (s *Server) SearchPost(ctx context.Context, req *pb.SearchPostRequest) (*pb.SearchPostResponse, error)
func (*Server) UserBookmarks ¶
func (*Server) UserIDProjects ¶
func (s *Server) UserIDProjects(ctx context.Context, req *pb.UserIDProjectsRequest) (*pb.UserProjectsResponse, error)
func (*Server) UserProjects ¶
Click to show internal directories.
Click to hide internal directories.