http

package
v0.0.0-...-1c246ab Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UIPath = "/gpt4/prompts"
)

Variables

This section is empty.

Functions

func RegisterPath

func RegisterPath(e *echo.Echo, h *Handler, authGuard *authguard.AuthGuard)

RegisterPath Register V1 API path

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

NewHandler Construct user API handler

func (*Handler) AuthHandler

func (h *Handler) AuthHandler(c echo.Context) (err error)

func (*Handler) GetUser

func (h *Handler) GetUser(c echo.Context) error

func (*Handler) GoogleAuthCallback

func (h *Handler) GoogleAuthCallback(c echo.Context) error

GoogleAuthCallback Receive Callback

func (*Handler) MicrosoftAuthCallback

func (h *Handler) MicrosoftAuthCallback(c echo.Context) error

MicrosoftAuthCallback Receive Callback

func (*Handler) RefreshTokenHandler

func (h *Handler) RefreshTokenHandler(c echo.Context) error

RefreshTokenHandler Refresh Token

func (*Handler) ServiceGPT4Handler

func (h *Handler) ServiceGPT4Handler(c echo.Context) error

ServiceGPT4Handler

func (*Handler) UserClearContextHandler

func (h *Handler) UserClearContextHandler(c echo.Context) error

UserClearContextHandler handler for clearing context

func (*Handler) UserGPT4Handler

func (h *Handler) UserGPT4Handler(c echo.Context) error

GPT4Handler handler for GPT4

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL