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 { SetBlogDtoCacheById(blog *dto.PublicBlog) error GetBlogDtoCacheById(id primitive.ObjectID) (*dto.PublicBlog, error) SetBlogDtoCacheBySlug(blog *dto.PublicBlog) error GetBlogDtoCacheBySlug(slug string) (*dto.PublicBlog, error) BlogSlugExists(slug string) bool GetPublisedBlogById(id primitive.ObjectID) (*dto.PublicBlog, error) GetPublishedBlogBySlug(slug string) (*dto.PublicBlog, error) // contains filtered or unexported methods }
Click to show internal directories.
Click to hide internal directories.