MCPcopy Create free account
hub / github.com/astercloud/aster / NewAgentHandler

Function NewAgentHandler

server/handlers/agent.go:25–30  ·  view source on GitHub ↗

NewAgentHandler creates a new AgentHandler

(st store.Store, deps *agent.Dependencies)

Source from the content-addressed store, hash-verified

23
24// NewAgentHandler creates a new AgentHandler
25func NewAgentHandler(st store.Store, deps *agent.Dependencies) *AgentHandler {
26 return &AgentHandler{
27 store: &st,
28 deps: deps,
29 }
30}
31
32// Create creates a new agent
33func (h *AgentHandler) Create(c *gin.Context) {

Callers 1

registerAgentRoutesMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected