Documentation ¶
Index ¶
- func Auth() func(http.Handler) http.Handler
- func CheckToken(accessToken string) bool
- func ForContext(ctx context.Context) *models.User
- func ForSchemeContext(ctx context.Context) string
- func HandleCard() func(w http.ResponseWriter, r *http.Request)
- func HandleIotDevice() func(w http.ResponseWriter, r *http.Request)
- type Error
- type ErrorResponse
- type GraphReq
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleCard ¶
func HandleCard() func(w http.ResponseWriter, r *http.Request)
HandleCard get public user info
func HandleIotDevice ¶
func HandleIotDevice() func(w http.ResponseWriter, r *http.Request)
HandleIotDevice ..
Types ¶
type ErrorResponse ¶
type ErrorResponse struct {
Errors []*Error `json:"errors"`
}
ErrorResponse ..
func NewErrorResponse ¶
func NewErrorResponse(message, path string) *ErrorResponse
NewErrorResponse ..
Click to show internal directories.
Click to hide internal directories.