Documentation
¶
Index ¶
- Variables
- func WriteSessionExpired(w http.ResponseWriter)
- type ActionDetails
- type ArgType
- type Handler
- func (h *Handler) AuthMiddleware(next http.HandlerFunc) http.HandlerFunc
- func (h *Handler) CreateFeatureFlag(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CreateUser(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DeleteFeatureFlag(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DeleteGlobal(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetActiveSessions(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetAllUsers(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetAnalytics(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetFeatureFlags(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetGlobals(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetLanguage(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetLogs(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetLogsSSE(w http.ResponseWriter, r *http.Request)
- func (h *Handler) InvokeActionHandler(w http.ResponseWriter, r *http.Request)
- func (h *Handler) ListActions(w http.ResponseWriter, r *http.Request)
- func (h *Handler) ListModels(w http.ResponseWriter, r *http.Request)
- func (h *Handler) Login(w http.ResponseWriter, r *http.Request)
- func (h *Handler) Logout(w http.ResponseWriter, r *http.Request)
- func (h *Handler) RevokeSession(w http.ResponseWriter, r *http.Request)
- func (h *Handler) Router(mux *http.ServeMux)
- func (h *Handler) SetMetadataMiddleware(next http.Handler) http.Handler
- func (h *Handler) UpdateFeatureFlag(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UpdateGlobal(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UpdateUser(w http.ResponseWriter, r *http.Request)
- type HandlerConfig
- type InvokeActionRequest
- type InvokeActionResponse
- type Response
- type Service
- type SessionData
- type Status
- type StatusCode
Constants ¶
This section is empty.
Variables ¶
View Source
var SessionExpiredResponse = NewResponse(StatusCode_SessionExpired, nil)
Functions ¶
func WriteSessionExpired ¶
func WriteSessionExpired(w http.ResponseWriter)
Types ¶
type ActionDetails ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(logger *logar.AppImpl, cfg HandlerConfig) *Handler
func (*Handler) AuthMiddleware ¶
func (h *Handler) AuthMiddleware(next http.HandlerFunc) http.HandlerFunc
func (*Handler) CreateFeatureFlag ¶
func (h *Handler) CreateFeatureFlag(w http.ResponseWriter, r *http.Request)
func (*Handler) CreateUser ¶
func (h *Handler) CreateUser(w http.ResponseWriter, r *http.Request)
func (*Handler) DeleteFeatureFlag ¶
func (h *Handler) DeleteFeatureFlag(w http.ResponseWriter, r *http.Request)
func (*Handler) DeleteGlobal ¶
func (h *Handler) DeleteGlobal(w http.ResponseWriter, r *http.Request)
func (*Handler) GetActiveSessions ¶
func (h *Handler) GetActiveSessions(w http.ResponseWriter, r *http.Request)
func (*Handler) GetAllUsers ¶
func (h *Handler) GetAllUsers(w http.ResponseWriter, r *http.Request)
func (*Handler) GetAnalytics ¶
func (h *Handler) GetAnalytics(w http.ResponseWriter, r *http.Request)
func (*Handler) GetFeatureFlags ¶
func (h *Handler) GetFeatureFlags(w http.ResponseWriter, r *http.Request)
func (*Handler) GetGlobals ¶
func (h *Handler) GetGlobals(w http.ResponseWriter, r *http.Request)
func (*Handler) GetLanguage ¶
func (h *Handler) GetLanguage(w http.ResponseWriter, r *http.Request)
func (*Handler) GetLogsSSE ¶
func (h *Handler) GetLogsSSE(w http.ResponseWriter, r *http.Request)
func (*Handler) InvokeActionHandler ¶
func (h *Handler) InvokeActionHandler(w http.ResponseWriter, r *http.Request)
func (*Handler) ListActions ¶
func (h *Handler) ListActions(w http.ResponseWriter, r *http.Request)
func (*Handler) ListModels ¶
func (h *Handler) ListModels(w http.ResponseWriter, r *http.Request)
func (*Handler) RevokeSession ¶
func (h *Handler) RevokeSession(w http.ResponseWriter, r *http.Request)
func (*Handler) SetMetadataMiddleware ¶
func (*Handler) UpdateFeatureFlag ¶
func (h *Handler) UpdateFeatureFlag(w http.ResponseWriter, r *http.Request)
func (*Handler) UpdateGlobal ¶
func (h *Handler) UpdateGlobal(w http.ResponseWriter, r *http.Request)
func (*Handler) UpdateUser ¶
func (h *Handler) UpdateUser(w http.ResponseWriter, r *http.Request)
type HandlerConfig ¶
type InvokeActionRequest ¶
type InvokeActionResponse ¶
type Response ¶
type Response struct {
StatusCode StatusCode `json:"status_code"`
Data any `json:"data,omitempty"`
}
func NewResponse ¶
func NewResponse(statusCode StatusCode, data any) *Response
type SessionData ¶
type StatusCode ¶
type StatusCode int
const ( StatusCode_Error StatusCode = iota + 1000 StatusCode_SessionExpired StatusCode_InvalidRequest StatusCode_InvalidCredentials )
Error values
const (
StatusCode_Success StatusCode = iota + 1
)
Success values
const (
StatusCode_Unknown StatusCode = iota
)
Unknown values
Click to show internal directories.
Click to hide internal directories.