Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
PostCache cache.PostCache
)
Functions ¶
This section is empty.
Types ¶
type PostController ¶
type PostController interface { GetPosts(w http.ResponseWriter, r *http.Request) GetPostByID(w http.ResponseWriter, r *http.Request) AddPost(w http.ResponseWriter, r *http.Request) DeletePost(w http.ResponseWriter, r *http.Request) }
func NewPostController ¶
func NewPostController(service service.PostService, cache cache.PostCache) PostController
Click to show internal directories.
Click to hide internal directories.