http

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EFS embed.FS

EFS holds embedded file system data for static assets.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(ctx *ctx.Context, db *database.Service, mcp *mcp.Service) *Service

func (*Service) GetChatlog

func (s *Service) GetChatlog(c *gin.Context)

func (*Service) GetRouter

func (s *Service) GetRouter() *gin.Engine

func (*Service) GetSession

func (s *Service) GetSession(c *gin.Context)

func (*Service) ListChatRoom

func (s *Service) ListChatRoom(c *gin.Context)

func (*Service) ListContact

func (s *Service) ListContact(c *gin.Context)

func (*Service) NoRoute

func (s *Service) NoRoute(c *gin.Context)

NoRoute handles 404 Not Found errors. If the request URL starts with "/api" or "/static", it responds with a JSON error. Otherwise, it redirects to the root path.

func (*Service) Start

func (s *Service) Start() error

func (*Service) Stop

func (s *Service) Stop() error

Jump to

Keyboard shortcuts

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