Documentation
¶
Index ¶
- func Chat(w http.ResponseWriter, r *http.Request)
- func ChatService(messages []*bigmodel.Message) chan bigmodel.Result
- func Error(w http.ResponseWriter, err string)
- func Event(w http.ResponseWriter, event, data string)
- func GetFuncSource(w http.ResponseWriter, r *http.Request)
- func GetPanic(w http.ResponseWriter, r *http.Request)
- func HTMLHandlerFunc(path string) http.HandlerFunc
- func InitConfig(conf *Config)
- func Run(port int) error
- func Success(w http.ResponseWriter, data any)
- type ChatRequest
- type Config
- type JSON
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Error ¶
func Error(w http.ResponseWriter, err string)
func Event ¶
func Event(w http.ResponseWriter, event, data string)
func GetFuncSource ¶
func GetFuncSource(w http.ResponseWriter, r *http.Request)
GetFuncSource TODO: unused
func HTMLHandlerFunc ¶
func HTMLHandlerFunc(path string) http.HandlerFunc
func InitConfig ¶
func InitConfig(conf *Config)
func Success ¶
func Success(w http.ResponseWriter, data any)
Types ¶
type ChatRequest ¶
Click to show internal directories.
Click to hide internal directories.