handler

package
v0.0.0-...-e7e4528 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GatewayResponse

type GatewayResponse struct {
	Outputs []struct {
		Data []float32 `json:"data"`
	} `json:"outputs"`
}

Response Struct

type Handler

type Handler struct {
	http.Handler
}

func CreateHandler

func CreateHandler() *Handler

func (*Handler) Close

func (h *Handler) Close()

Close

func (*Handler) HomeHandler

func (h *Handler) HomeHandler(w http.ResponseWriter, r *http.Request)

HTML, CSS, JS 요청

func (*Handler) PingHandler

func (h *Handler) PingHandler(w http.ResponseWriter, r *http.Request)

Ping Handler: Ping Check 용도

type RequestData

type RequestData struct {
	Prompt   string `json:"prompt"`
	Provider string `json:"provider"`
}

Request Struct

type ResponseData

type ResponseData struct {
	Image string `json:"image"`
}

Jump to

Keyboard shortcuts

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