Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface {
Call(values url.Values, ctx *middlewares.AutheliaCtx) (*Response, error)
}
API interface wrapping duo api library for testing purpose.
type APIImpl ¶
APIImpl implementation of DuoAPI interface.
func (*APIImpl) Call ¶
func (d *APIImpl) Call(values url.Values, ctx *middlewares.AutheliaCtx) (*Response, error)
Call call to the DuoAPI.
type Response ¶
type Response struct { Response struct { Result string `json:"result"` Status string `json:"status"` StatusMessage string `json:"status_msg"` } `json:"response"` Code int `json:"code"` Message string `json:"message"` MessageDetail string `json:"message_detail"` Stat string `json:"stat"` }
Response response coming from Duo API.
Click to show internal directories.
Click to hide internal directories.