Documentation ¶
Index ¶
- func CreateServer(config *configs.Config) *fiber.App
- func NewAuthMiddleware(authTokens []string) func() fiber.Handler
- func RunServer(config *configs.Config) error
- type DeepLXRequest
- type DeepLXResponse
- type HcfyRequest
- type HcfyResponse
- type TranslationRequest
- type TranslationRequestWithModelName
- type TranslationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateServer ¶
func NewAuthMiddleware ¶
func NewAuthMiddleware(authTokens []string) func() fiber.Handler
Types ¶
type DeepLXRequest ¶
type DeepLXResponse ¶
type HcfyRequest ¶
type HcfyResponse ¶
type TranslationRequest ¶
type TranslationRequestWithModelName ¶
type TranslationRequestWithModelName struct { TranslationRequest ModelName string `json:"model_name"` }
type TranslationResponse ¶
Click to show internal directories.
Click to hide internal directories.