Documentation
¶
Index ¶
- Constants
- func RegisterPath(e *echo.Echo, h *Handler, authGuard *authguard.AuthGuard)
- type Handler
- func (h *Handler) AuthHandler(c echo.Context) (err error)
- func (h *Handler) GetUser(c echo.Context) error
- func (h *Handler) GoogleAuthCallback(c echo.Context) error
- func (h *Handler) MicrosoftAuthCallback(c echo.Context) error
- func (h *Handler) RefreshTokenHandler(c echo.Context) error
- func (h *Handler) ServiceGPT4Handler(c echo.Context) error
- func (h *Handler) UserClearContextHandler(c echo.Context) error
- func (h *Handler) UserGPT4Handler(c echo.Context) error
Constants ¶
View Source
const (
UIPath = "/gpt4/prompts"
)
Variables ¶
This section is empty.
Functions ¶
func RegisterPath ¶
RegisterPath Register V1 API path
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(service business.UserService, google oauthmanager.OAuth2Provider, microsoft oauthmanager.OAuth2Provider, cfg *config.MainConfig) *Handler
NewHandler Construct user API handler
func (*Handler) AuthHandler ¶
func (*Handler) GoogleAuthCallback ¶
GoogleAuthCallback Receive Callback
func (*Handler) MicrosoftAuthCallback ¶
MicrosoftAuthCallback Receive Callback
func (*Handler) RefreshTokenHandler ¶
RefreshTokenHandler Refresh Token
func (*Handler) ServiceGPT4Handler ¶
ServiceGPT4Handler
func (*Handler) UserClearContextHandler ¶
UserClearContextHandler handler for clearing context
func (*Handler) UserGPT4Handler ¶
GPT4Handler handler for GPT4
Click to show internal directories.
Click to hide internal directories.