Documentation ¶
Index ¶
- func AuthMiddleware(cfg *config.Config) func(http.Handler) http.Handler
- type TokensPerSecondData
- type WebAppHandler
- func (h *WebAppHandler) AuthCheck(w http.ResponseWriter, r *http.Request)
- func (h *WebAppHandler) CreateAPIKey(w http.ResponseWriter, r *http.Request)
- func (h *WebAppHandler) CreatePrompt(w http.ResponseWriter, r *http.Request)
- func (h *WebAppHandler) CreateSnippet(w http.ResponseWriter, r *http.Request)
- func (h *WebAppHandler) DeleteAPIKey(w http.ResponseWriter, r *http.Request)
- func (h *WebAppHandler) DeletePrompt(w http.ResponseWriter, r *http.Request)
- func (h *WebAppHandler) DeleteSnippet(w http.ResponseWriter, r *http.Request)
- func (h *WebAppHandler) GetPrompt(w http.ResponseWriter, r *http.Request)
- func (h *WebAppHandler) GetQueryRecords(w http.ResponseWriter, r *http.Request)
- func (h *WebAppHandler) GetTokensPerSecondTimeSeries(w http.ResponseWriter, r *http.Request)
- func (h *WebAppHandler) ListAPIKeys(w http.ResponseWriter, r *http.Request)
- func (h *WebAppHandler) ListPrompts(w http.ResponseWriter, r *http.Request)
- func (h *WebAppHandler) ListSnippets(w http.ResponseWriter, r *http.Request)
- func (h *WebAppHandler) Login(w http.ResponseWriter, r *http.Request)
- func (h *WebAppHandler) RegisterOpenAIKey(w http.ResponseWriter, r *http.Request)
- func (h *WebAppHandler) SignUp(w http.ResponseWriter, r *http.Request)
- func (h *WebAppHandler) UpdatePrompt(w http.ResponseWriter, r *http.Request)
- func (h *WebAppHandler) UpdateSnippet(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TokensPerSecondData ¶
type WebAppHandler ¶
func NewWebAppHandler ¶
func NewWebAppHandler(db *gorm.DB, cfg *config.Config) *WebAppHandler
func (*WebAppHandler) AuthCheck ¶
func (h *WebAppHandler) AuthCheck(w http.ResponseWriter, r *http.Request)
func (*WebAppHandler) CreateAPIKey ¶
func (h *WebAppHandler) CreateAPIKey(w http.ResponseWriter, r *http.Request)
func (*WebAppHandler) CreatePrompt ¶
func (h *WebAppHandler) CreatePrompt(w http.ResponseWriter, r *http.Request)
func (*WebAppHandler) CreateSnippet ¶
func (h *WebAppHandler) CreateSnippet(w http.ResponseWriter, r *http.Request)
func (*WebAppHandler) DeleteAPIKey ¶
func (h *WebAppHandler) DeleteAPIKey(w http.ResponseWriter, r *http.Request)
func (*WebAppHandler) DeletePrompt ¶
func (h *WebAppHandler) DeletePrompt(w http.ResponseWriter, r *http.Request)
func (*WebAppHandler) DeleteSnippet ¶
func (h *WebAppHandler) DeleteSnippet(w http.ResponseWriter, r *http.Request)
func (*WebAppHandler) GetPrompt ¶
func (h *WebAppHandler) GetPrompt(w http.ResponseWriter, r *http.Request)
func (*WebAppHandler) GetQueryRecords ¶
func (h *WebAppHandler) GetQueryRecords(w http.ResponseWriter, r *http.Request)
func (*WebAppHandler) GetTokensPerSecondTimeSeries ¶
func (h *WebAppHandler) GetTokensPerSecondTimeSeries(w http.ResponseWriter, r *http.Request)
func (*WebAppHandler) ListAPIKeys ¶
func (h *WebAppHandler) ListAPIKeys(w http.ResponseWriter, r *http.Request)
func (*WebAppHandler) ListPrompts ¶
func (h *WebAppHandler) ListPrompts(w http.ResponseWriter, r *http.Request)
func (*WebAppHandler) ListSnippets ¶
func (h *WebAppHandler) ListSnippets(w http.ResponseWriter, r *http.Request)
func (*WebAppHandler) Login ¶
func (h *WebAppHandler) Login(w http.ResponseWriter, r *http.Request)
func (*WebAppHandler) RegisterOpenAIKey ¶
func (h *WebAppHandler) RegisterOpenAIKey(w http.ResponseWriter, r *http.Request)
func (*WebAppHandler) SignUp ¶
func (h *WebAppHandler) SignUp(w http.ResponseWriter, r *http.Request)
func (*WebAppHandler) UpdatePrompt ¶
func (h *WebAppHandler) UpdatePrompt(w http.ResponseWriter, r *http.Request)
func (*WebAppHandler) UpdateSnippet ¶
func (h *WebAppHandler) UpdateSnippet(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.