Documentation
¶
Index ¶
- Constants
- type AuthPFAnchorResponse
- type Handler
- func (h *Handler) AddToDB(r *authpf.AuthPFAnchor) error
- func (h *Handler) CallExecActivateAnchor(c echo.Context, r *authpf.AuthPFAnchor) *errors.APIError
- func (h *Handler) CallExecDeactivateAllAnchors(r *authpf.AuthPFAnchor) *errors.APIError
- func (h *Handler) CallExecDeactivateAnchor(r *authpf.AuthPFAnchor) *errors.APIError
- func (h *Handler) CheckAnchorIsActivated(c echo.Context) (bool, *errors.APIError)
- func (h *Handler) CheckJSONPayload(c echo.Context, r *authpf.AuthPFAnchor) *errors.APIError
- func (h *Handler) CheckSessionUserIP(c echo.Context) *errors.APIError
- func (h *Handler) CheckSessionUserPermission(c echo.Context, action string) *errors.APIError
- func (h *Handler) CheckSessionUsername(c echo.Context) *errors.APIError
- func (h *Handler) GetAnchorFromContext(c echo.Context) (*authpf.AuthPFAnchor, *errors.APIError)
- func (h *Handler) HandleDeleteAllDeactivate(c echo.Context) error
- func (h *Handler) HandleDeleteDeactivate(c echo.Context) error
- func (h *Handler) HandleGetActivate(c echo.Context) error
- func (h *Handler) HandleGetAllActivePFAnchors(c echo.Context) error
- func (h *Handler) HandleGetLogin(c echo.Context) error
- func (h *Handler) HandlePostActivate(c echo.Context) error
Constants ¶
View Source
const API_VERSION = "1.2"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthPFAnchorResponse ¶
type AuthPFAnchorResponse struct {
Anchors authpf.AnchorsDB `json:"anchors"`
ServerTime time.Time `json:"server_time"`
}
AuthPFAnchorResponse represents all rules with server time for client-side calculations
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) CallExecActivateAnchor ¶
Call Exec activate anchor
func (*Handler) CallExecDeactivateAllAnchors ¶
func (h *Handler) CallExecDeactivateAllAnchors(r *authpf.AuthPFAnchor) *errors.APIError
func (*Handler) CallExecDeactivateAnchor ¶
func (h *Handler) CallExecDeactivateAnchor(r *authpf.AuthPFAnchor) *errors.APIError
func (*Handler) CheckAnchorIsActivated ¶
func (*Handler) CheckJSONPayload ¶
Check if AuthPFAnchor can be bind to payload
func (*Handler) CheckSessionUserIP ¶
func (*Handler) CheckSessionUserPermission ¶
Validate User role permissions
func (*Handler) CheckSessionUsername ¶
Check Username and JSON Payload
func (*Handler) GetAnchorFromContext ¶
Fill anchor struct by using context informations
func (*Handler) HandleDeleteAllDeactivate ¶
func (*Handler) HandleDeleteDeactivate ¶
func (*Handler) HandleGetAllActivePFAnchors ¶
Click to show internal directories.
Click to hide internal directories.