Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthMiddleware ¶
type AuthMiddleware struct {
// contains filtered or unexported fields
}
func NewAuthMiddleware ¶
func NewAuthMiddleware(conf *config.Config, authManager *usecases.AuthManager) *AuthMiddleware
type BlogCreatorV1 ¶
type BlogResponseV1 ¶
type CreateBlogRequestV1 ¶
type CreateBlogResponseV1 ¶
type CreateBlogResponseV1 struct {
ID int64 `json:"id"`
}
type CreateUserRequestV1 ¶
type LoginRequestV1 ¶
type LoginResponseV1 ¶
type LoginResponseV1 struct {
Token string `json:"token"`
}
type UpdateBlogRequestV1 ¶
type UpdateUserRequestV1 ¶
type UserResponseV1 ¶
type WebService ¶
type WebService struct {
// contains filtered or unexported fields
}
WebService is the main entry to the APIs exposed by Blogzilla. In real world application we will collect several metrics such as each endpoints request/response latency, counter etc.
func NewWebService ¶
func NewWebService(conf *config.Config, authManager *usecases.AuthManager, userManager *usecases.UserManager, blogManager *usecases.BlogManager) *WebService
func (*WebService) Start ¶
func (ws *WebService) Start() error
Click to show internal directories.
Click to hide internal directories.