Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServicePromGPT ¶
type ServicePromGPTResponse ¶
type ServicePromGPTResponse struct { Code int `json:"code"` Message string `json:"message"` Payload ServicePromGPT `json:"payload"` }
func NewServicePromGPTResponse ¶
func NewServicePromGPTResponse(v core.ServicePromGPTResponse) *ServicePromGPTResponse
type TokenResponse ¶
func NewTokenResponse ¶
func NewTokenResponse(token string, refreshToken string) *TokenResponse
type UserAuthResponse ¶
type UserAuthResponse struct { Code int `json:"code"` Message string `json:"message"` Payload UserAuth `json:"payload"` }
func NewAuthResponse ¶
func NewAuthResponse(authUrl string) *UserAuthResponse
type UserMe ¶
type UserMe struct { Issuer string `json:"issuer"` UserID string `json:"user_id"` Email string `json:"email"` Name string `json:"name"` Picture string `json:"picture"` ExpiresAt time.Time `json:"expires_at"` TokenLimit int `json:"token_limit"` TokenUsage int `json:"token_usage"` Warning bool `json:"warning"` }
type UserMeResponse ¶
type UserMeResponse struct { Code int `json:"code"` Message string `json:"message"` Payload UserMe `json:"payload"` }
func NewUserMeResponse ¶
func NewUserMeResponse(v authguard.JwtClaims, tokenInfo core.UserTokenUsage) *UserMeResponse
type UserPromGPT ¶
type UserPromGPT struct {
Content string `json:"content"`
}
type UserPromGPTResponse ¶
type UserPromGPTResponse struct { Code int `json:"code"` Message string `json:"message"` Payload UserPromGPT `json:"payload"` }
func NewUserPromGPTResponse ¶
func NewUserPromGPTResponse(v core.UserPromGPTResponse) *UserPromGPTResponse
Click to show internal directories.
Click to hide internal directories.