debugger

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2026 License: MIT Imports: 22 Imported by: 0

Documentation

Overview

Package debugger provides functionality for the Tako framework.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server is a headless HTTP debug server.

func NewServer

func NewServer(addr string, p *profiler.Profiler, container contracts.Container) (*Server, error)

NewServer creates a new Debug Server.

func (*Server) GetAddr

func (s *Server) GetAddr() string

GetAddr returns the server address (useful for testing).

func (*Server) Start

func (s *Server) Start() error

Start runs the server in a background goroutine. Returns an error if the listener fails to start.

func (*Server) Stop

func (s *Server) Stop(ctx context.Context) error

Stop safely shuts down the server.

func (*Server) ValidateToken

func (s *Server) ValidateToken(bearerToken string) bool

ValidateToken reports whether bearerToken matches the server's auth token.

type WsMessage

type WsMessage struct {
	Type    string `json:"type"`
	Payload any    `json:"payload"`
}

WsMessage represents the payload sent over WebSocket.

Jump to

Keyboard shortcuts

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