Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthController ¶
type AuthController struct { AuthService domain.AuthService EventsProducer sarama.SyncProducer Secret string }
Controller for Auth model
func (AuthController) Login ¶
func (c AuthController) Login(w http.ResponseWriter, r *http.Request)
func (AuthController) Register ¶
func (c AuthController) Register(w http.ResponseWriter, r *http.Request)
func (AuthController) Verify ¶
func (c AuthController) Verify(w http.ResponseWriter, r *http.Request)
type LoginResponse ¶
type LoginResponse struct {
Token string `json:"token"`
}
type UserController ¶
type UserController struct {
UserService domain.UserService
}
Controller for User model
func (UserController) List ¶
func (c UserController) List(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.