tangled
alpha
login
or
join now
moth11.net
/
lrcdaemon
0
fork
atom
just a runnable instance of lrcd
0
fork
atom
overview
issues
pulls
pipelines
i made this in a different repo bc more reposgit add .git add .
moth11.net
5 months ago
07eaf836
+37
3 changed files
expand all
collapse all
unified
split
go.mod
go.sum
main.go
+10
go.mod
···
1
1
+
module github.com/rachel-mp4/lrcdaemon
2
2
+
3
3
+
go 1.24.2
4
4
+
5
5
+
require (
6
6
+
github.com/gorilla/websocket v1.5.3 // indirect
7
7
+
github.com/rachel-mp4/lrcd v0.0.1 // indirect
8
8
+
github.com/rachel-mp4/lrcproto v0.0.0-20250905151943-8e3a1989ea5a // indirect
9
9
+
google.golang.org/protobuf v1.36.6 // indirect
10
10
+
)
+8
go.sum
···
1
1
+
github.com/gorilla/websocket v1.5.3 h1:saDtZ6Pbx/0u+bgYQ3q96pZgCzfhKXGPqt7kZ72aNNg=
2
2
+
github.com/gorilla/websocket v1.5.3/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
3
3
+
github.com/rachel-mp4/lrcd v0.0.1 h1:9d5if0HJ/+TLKdupd7Zu9dISA5fF3QRtI/yr+gYVqXM=
4
4
+
github.com/rachel-mp4/lrcd v0.0.1/go.mod h1:aWUVglSyrLf2RGpQdqTucX498b434yWBFJkD6Yzr0OE=
5
5
+
github.com/rachel-mp4/lrcproto v0.0.0-20250905151943-8e3a1989ea5a h1:W3zPeGz/jHYyWj8ZfsuA9yigPMNlA/h7Fu+SQKgiBmQ=
6
6
+
github.com/rachel-mp4/lrcproto v0.0.0-20250905151943-8e3a1989ea5a/go.mod h1:hQzO36tQELGbkmRnUtKeM6NMU34t79ZcTlhM+MO7pHw=
7
7
+
google.golang.org/protobuf v1.36.6 h1:z1NpPI8ku2WgiWnf+t9wTPsn6eP1L7ksHUlkfLvd9xY=
8
8
+
google.golang.org/protobuf v1.36.6/go.mod h1:jduwjTPXsFjZGTmRluh+L6NjiWu7pchiJ2/5YcXBHnY=
+19
main.go
···
1
1
+
package main
2
2
+
3
3
+
import (
4
4
+
"github.com/rachel-mp4/lrcd"
5
5
+
"net/http"
6
6
+
"os"
7
7
+
)
8
8
+
9
9
+
func main() {
10
10
+
server, err := lrcd.NewServer(lrcd.WithLogging(os.Stdout, true))
11
11
+
if err != nil {
12
12
+
panic(err)
13
13
+
}
14
14
+
err = server.Start()
15
15
+
if err != nil {
16
16
+
panic(err)
17
17
+
}
18
18
+
http.ListenAndServe(":8080", server.WSHandler())
19
19
+
}