Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewController ¶
func NewController( authMFunc network.AuthenticationProvider, authorizeMFunc network.AuthorizationProvider, service Service, ) network.Controller
Types ¶
type Service ¶
type Service interface { GetBlogById(id primitive.ObjectID) (*dto.PrivateBlog, error) BlogPublication(blogId primitive.ObjectID, editor *userModel.User, publish bool) error GetPaginatedPublished(p *coredto.Pagination) ([]*dto.InfoBlog, error) GetPaginatedSubmitted(p *coredto.Pagination) ([]*dto.InfoBlog, error) }
Click to show internal directories.
Click to hide internal directories.