Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Exit = os.Exit
View Source
var ListenAndServe = http.ListenAndServe
View Source
var Start = func(cfg RuntimeConfig) { addr, handler := BuildServer(cfg) fmt.Printf("✅ Barry running at http://localhost%s\n", addr) if err := ListenAndServe(addr, handler); err != nil { fmt.Fprintf(os.Stderr, "❌ Server failed: %v\n", err) Exit(1) } }
Functions ¶
func BuildServer ¶ added in v0.3.2
func BuildServer(cfg RuntimeConfig) (string, http.Handler)
Types ¶
type RuntimeConfig ¶
Click to show internal directories.
Click to hide internal directories.