mirror of
https://github.com/mainflux/mainflux.git
synced 2025-04-29 13:49:28 +08:00

* Update copyright comment for go files Signed-off-by: nwneisen <nwneisen@gmail.com> * Update copyright in assortment of file types Signed-off-by: nwneisen <nwneisen@gmail.com> * Remove missed copyright date Signed-off-by: nwneisen <nwneisen@gmail.com>
37 lines
596 B
Go
37 lines
596 B
Go
// Copyright (c) Mainflux
|
|
// 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
|
|
}
|
|
|
|
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
|
|
}
|