package http import ( "net/http" "github.com/mainflux/mainflux" ) var _ mainflux.Response = (*tokenRes)(nil) type tokenRes struct { Token string `json:"token,omitempty"` } func (res tokenRes) Code() int { return http.StatusCreated } func (res tokenRes) Headers() map[string]string { return map[string]string{} } func (res tokenRes) Empty() bool { return res.Token == "" }