just a runnable instance of lrcd

i made this in a different repo bc more reposgit add .git add .

moth11.net 07eaf836

+37
+10
go.mod
··· 1 + module github.com/rachel-mp4/lrcdaemon 2 + 3 + go 1.24.2 4 + 5 + require ( 6 + github.com/gorilla/websocket v1.5.3 // indirect 7 + github.com/rachel-mp4/lrcd v0.0.1 // indirect 8 + github.com/rachel-mp4/lrcproto v0.0.0-20250905151943-8e3a1989ea5a // indirect 9 + google.golang.org/protobuf v1.36.6 // indirect 10 + )
+8
go.sum
··· 1 + github.com/gorilla/websocket v1.5.3 h1:saDtZ6Pbx/0u+bgYQ3q96pZgCzfhKXGPqt7kZ72aNNg= 2 + github.com/gorilla/websocket v1.5.3/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= 3 + github.com/rachel-mp4/lrcd v0.0.1 h1:9d5if0HJ/+TLKdupd7Zu9dISA5fF3QRtI/yr+gYVqXM= 4 + github.com/rachel-mp4/lrcd v0.0.1/go.mod h1:aWUVglSyrLf2RGpQdqTucX498b434yWBFJkD6Yzr0OE= 5 + github.com/rachel-mp4/lrcproto v0.0.0-20250905151943-8e3a1989ea5a h1:W3zPeGz/jHYyWj8ZfsuA9yigPMNlA/h7Fu+SQKgiBmQ= 6 + github.com/rachel-mp4/lrcproto v0.0.0-20250905151943-8e3a1989ea5a/go.mod h1:hQzO36tQELGbkmRnUtKeM6NMU34t79ZcTlhM+MO7pHw= 7 + google.golang.org/protobuf v1.36.6 h1:z1NpPI8ku2WgiWnf+t9wTPsn6eP1L7ksHUlkfLvd9xY= 8 + google.golang.org/protobuf v1.36.6/go.mod h1:jduwjTPXsFjZGTmRluh+L6NjiWu7pchiJ2/5YcXBHnY=
+19
main.go
··· 1 + package main 2 + 3 + import ( 4 + "github.com/rachel-mp4/lrcd" 5 + "net/http" 6 + "os" 7 + ) 8 + 9 + func main() { 10 + server, err := lrcd.NewServer(lrcd.WithLogging(os.Stdout, true)) 11 + if err != nil { 12 + panic(err) 13 + } 14 + err = server.Start() 15 + if err != nil { 16 + panic(err) 17 + } 18 + http.ListenAndServe(":8080", server.WSHandler()) 19 + }