2019-10-07 08:14:47 -06:00
|
|
|
// Copyright (c) Mainflux
|
2019-07-04 17:06:56 +02:00
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
package http
|
|
|
|
|
|
|
|
import "net/http"
|
|
|
|
|
|
|
|
type identityRes struct {
|
|
|
|
ID string `json:"id"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (res identityRes) Code() int {
|
|
|
|
return http.StatusOK
|
|
|
|
}
|
|
|
|
|
|
|
|
func (res identityRes) Headers() map[string]string {
|
|
|
|
return map[string]string{}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (res identityRes) Empty() bool {
|
|
|
|
return false
|
|
|
|
}
|
2019-07-15 18:28:15 +02:00
|
|
|
|
|
|
|
type canAccessByIDRes struct{}
|
|
|
|
|
|
|
|
func (res canAccessByIDRes) Code() int {
|
|
|
|
return http.StatusOK
|
|
|
|
}
|
|
|
|
|
|
|
|
func (res canAccessByIDRes) Headers() map[string]string {
|
|
|
|
return map[string]string{}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (res canAccessByIDRes) Empty() bool {
|
|
|
|
return true
|
|
|
|
}
|