server

package
v0.0.0-...-14e3c9d Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupRouter

func SetupRouter(agentCore *agent.DefaultAgent) *gin.Engine

func SetupRoutes

func SetupRoutes(router *gin.Engine)

Types

type GinServer

type GinServer struct {
	Agent *agent.Agent

	Router *gin.Engine

	Server *http.Server

	Addr string
}

func NewGinServer

func NewGinServer(agent *agent.Agent, addr string) (*GinServer, error)

func (*GinServer) Start

func (s *GinServer) Start() error

func (*GinServer) Stop

func (s *GinServer) Stop() error

type HTTPServer

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

func NewHTTPServer

func NewHTTPServer(cfg *config.Config, agent *agent.Agent, mcpManager *mcp.Manager) (*HTTPServer, error)

func (*HTTPServer) Start

func (s *HTTPServer) Start() error

func (*HTTPServer) Stop

func (s *HTTPServer) Stop() error

type Server

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

func New

func New(cfg *config.Config) (*Server, error)

func (*Server) Start

func (s *Server) Start() error

Jump to

Keyboard shortcuts

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