server

package
v0.9.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallEdgeResponse added in v0.5.0

type CallEdgeResponse struct {
	ID       int64  `json:"id"`
	CallerID int64  `json:"callerId"`
	CalleeID int64  `json:"calleeId"`
	CallType string `json:"callType"`
}

type CallNodeDetailResponse added in v0.5.0

type CallNodeDetailResponse struct {
	Node    CallNodeResponse  `json:"node"`
	Callees []CallNodeSummary `json:"callees"`
	Callers []CallNodeSummary `json:"callers"`
}

type CallNodeResponse added in v0.5.0

type CallNodeResponse struct {
	ID        int64  `json:"id"`
	Directory string `json:"directory"`
	Package   string `json:"package"`
	Symbol    string `json:"symbol"`
	FilePath  string `json:"filePath"`
	Line      int    `json:"line"`
	Kind      string `json:"kind"`
	Signature string `json:"signature,omitempty"`
	Doc       string `json:"doc,omitempty"`
}

type CallNodeSummary added in v0.5.0

type CallNodeSummary struct {
	ID       int64  `json:"id"`
	Package  string `json:"package"`
	Symbol   string `json:"symbol"`
	FilePath string `json:"filePath"`
	Line     int    `json:"line"`
	Kind     string `json:"kind"`
	Doc      string `json:"doc,omitempty"`
	CallType string `json:"callType,omitempty"`
}

type Server

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

func New

func New(port int, dir string, mode ServerMode) *Server

func (*Server) Start

func (s *Server) Start() error

type ServerMode

type ServerMode string

ServerMode determines the operational mode of the server.

const (
	ModeBuild ServerMode = "build"
	ModePlan  ServerMode = "plan"
)

type Theme

type Theme struct {
	Directory    string `json:"directory"`
	PrimaryColor string `json:"primaryColor"` // hex input from user, e.g. "#6366f1"
	Accent       string `json:"accent"`       // --accent
	AccentHover  string `json:"accentHover"`  // --accent-hover
	AccentSoft   string `json:"accentSoft"`   // --accent-soft (rgba)
	AccentRing   string `json:"accentRing"`   // --accent-ring (rgba)
	OnPrimary    string `json:"onPrimary"`    // text color on accent bg
	Glow         string `json:"glow"`         // --glow (rgba, for background accents)
	Tint         string `json:"tint"`         // --tint (rgba, ~5% for sidebar/header)
}

Theme holds a per-directory color palette derived from a user-chosen primary color.

Jump to

Keyboard shortcuts

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