diff --git a/build b/build index 895b12a7..9c27b57b 100644 --- a/build +++ b/build @@ -7,4 +7,4 @@ GIT_COMMIT=`git rev-parse --short HEAD` GIT_BRANCH=`git rev-parse --symbolic-full-name --abbrev-ref HEAD` GIT_DIRTY=`git diff-index --quiet HEAD -- || echo "✗-"` -go build -o bin/neko -ldflags "-s -X 'n.eko.moe/neko.buildDate=${BUILD_TIME}' -X 'n.eko.moe/neko.gitCommit=${GIT_DIRTY}${GIT_COMMIT}' -X 'n.eko.moe/neko.gitBranch=${GIT_BRANCH}'" -i cmd/neko/main.go +go build -o bin/neko -ldflags "-s -X 'demodesk/neko.buildDate=${BUILD_TIME}' -X 'demodesk/neko.gitCommit=${GIT_DIRTY}${GIT_COMMIT}' -X 'demodesk/neko.gitBranch=${GIT_BRANCH}'" -i cmd/neko/main.go diff --git a/cmd/neko/main.go b/cmd/neko/main.go index d4de0bfc..1af5be07 100644 --- a/cmd/neko/main.go +++ b/cmd/neko/main.go @@ -5,9 +5,9 @@ import ( "github.com/rs/zerolog/log" - "n.eko.moe/neko" - "n.eko.moe/neko/cmd" - "n.eko.moe/neko/internal/utils" + "demodesk/neko" + "demodesk/neko/cmd" + "demodesk/neko/internal/utils" ) func main() { diff --git a/cmd/root.go b/cmd/root.go index 293f3450..6364bc7d 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -14,7 +14,7 @@ import ( "github.com/spf13/cobra" "github.com/spf13/viper" - "n.eko.moe/neko" + "demodesk/neko" ) func Execute() error { diff --git a/cmd/serve.go b/cmd/serve.go index b6a78077..520080c8 100644 --- a/cmd/serve.go +++ b/cmd/serve.go @@ -4,8 +4,8 @@ import ( "github.com/rs/zerolog/log" "github.com/spf13/cobra" - "n.eko.moe/neko" - "n.eko.moe/neko/internal/types/config" + "demodesk/neko" + "demodesk/neko/internal/types/config" ) func init() { diff --git a/go.mod b/go.mod index dfb14cca..0c99f262 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module n.eko.moe/neko +module demodesk/neko go 1.13 diff --git a/internal/broadcast/manager.go b/internal/broadcast/manager.go index d6ebbe0b..6b28e3c2 100644 --- a/internal/broadcast/manager.go +++ b/internal/broadcast/manager.go @@ -4,8 +4,8 @@ import ( "github.com/rs/zerolog" "github.com/rs/zerolog/log" - "n.eko.moe/neko/internal/gst" - "n.eko.moe/neko/internal/types/config" + "demodesk/neko/internal/gst" + "demodesk/neko/internal/types/config" ) type BroadcastManager struct { diff --git a/internal/gst/gst.go b/internal/gst/gst.go index c3fcc56c..57f230e4 100644 --- a/internal/gst/gst.go +++ b/internal/gst/gst.go @@ -14,7 +14,7 @@ import ( "github.com/pion/webrtc/v2" - "n.eko.moe/neko/internal/types" + "demodesk/neko/internal/types" ) /* diff --git a/internal/http/http.go b/internal/http/http.go index e8cec82c..08e4bf8f 100644 --- a/internal/http/http.go +++ b/internal/http/http.go @@ -10,10 +10,10 @@ import ( "github.com/rs/zerolog" "github.com/rs/zerolog/log" - "n.eko.moe/neko/internal/http/endpoint" - "n.eko.moe/neko/internal/http/middleware" - "n.eko.moe/neko/internal/types" - "n.eko.moe/neko/internal/types/config" + "demodesk/neko/internal/http/endpoint" + "demodesk/neko/internal/http/middleware" + "demodesk/neko/internal/types" + "demodesk/neko/internal/types/config" ) type Server struct { diff --git a/internal/http/middleware/recover.go b/internal/http/middleware/recover.go index 9a254889..f90eb9a5 100644 --- a/internal/http/middleware/recover.go +++ b/internal/http/middleware/recover.go @@ -6,7 +6,7 @@ package middleware import ( "net/http" - "n.eko.moe/neko/internal/http/endpoint" + "demodesk/neko/internal/http/endpoint" ) func Recoverer(next http.Handler) http.Handler { diff --git a/internal/http/response/response.go b/internal/http/response/response.go index ea53baa0..09ec1102 100644 --- a/internal/http/response/response.go +++ b/internal/http/response/response.go @@ -4,7 +4,7 @@ import ( "encoding/json" "net/http" - "n.eko.moe/neko/internal/http/endpoint" + "demodesk/neko/internal/http/endpoint" ) // JSON encodes data to rw in JSON format. Returns a pointer to a diff --git a/internal/remote/manager.go b/internal/remote/manager.go index 3ed2f005..d0ad05e8 100644 --- a/internal/remote/manager.go +++ b/internal/remote/manager.go @@ -7,10 +7,10 @@ import ( "github.com/kataras/go-events" "github.com/rs/zerolog" "github.com/rs/zerolog/log" - "n.eko.moe/neko/internal/gst" - "n.eko.moe/neko/internal/types" - "n.eko.moe/neko/internal/types/config" - "n.eko.moe/neko/internal/xorg" + "demodesk/neko/internal/gst" + "demodesk/neko/internal/types" + "demodesk/neko/internal/types/config" + "demodesk/neko/internal/xorg" ) type RemoteManager struct { diff --git a/internal/session/manager.go b/internal/session/manager.go index 8e51bc5a..d68d578f 100644 --- a/internal/session/manager.go +++ b/internal/session/manager.go @@ -7,8 +7,8 @@ import ( "github.com/rs/zerolog" "github.com/rs/zerolog/log" - "n.eko.moe/neko/internal/types" - "n.eko.moe/neko/internal/utils" + "demodesk/neko/internal/types" + "demodesk/neko/internal/utils" ) func New(remote types.RemoteManager) *SessionManager { diff --git a/internal/session/session.go b/internal/session/session.go index b9733a78..2ca194a2 100644 --- a/internal/session/session.go +++ b/internal/session/session.go @@ -4,9 +4,9 @@ import ( "sync" "github.com/rs/zerolog" - "n.eko.moe/neko/internal/types" - "n.eko.moe/neko/internal/types/event" - "n.eko.moe/neko/internal/types/message" + "demodesk/neko/internal/types" + "demodesk/neko/internal/types/event" + "demodesk/neko/internal/types/message" ) type Session struct { diff --git a/internal/types/config/webrtc.go b/internal/types/config/webrtc.go index 5d76832c..13cbf185 100644 --- a/internal/types/config/webrtc.go +++ b/internal/types/config/webrtc.go @@ -6,7 +6,7 @@ import ( "github.com/spf13/cobra" "github.com/spf13/viper" - "n.eko.moe/neko/internal/utils" + "demodesk/neko/internal/utils" ) type WebRTC struct { diff --git a/internal/types/message/messages.go b/internal/types/message/messages.go index fcf04f30..ae9431ef 100644 --- a/internal/types/message/messages.go +++ b/internal/types/message/messages.go @@ -1,7 +1,7 @@ package message import ( - "n.eko.moe/neko/internal/types" + "demodesk/neko/internal/types" ) type Message struct { diff --git a/internal/webrtc/webrtc.go b/internal/webrtc/webrtc.go index b658ecb8..0ea8e652 100644 --- a/internal/webrtc/webrtc.go +++ b/internal/webrtc/webrtc.go @@ -11,8 +11,8 @@ import ( "github.com/rs/zerolog" "github.com/rs/zerolog/log" - "n.eko.moe/neko/internal/types" - "n.eko.moe/neko/internal/types/config" + "demodesk/neko/internal/types" + "demodesk/neko/internal/types/config" ) func New(sessions types.SessionManager, remote types.RemoteManager, config *config.WebRTC) *WebRTCManager { diff --git a/internal/websocket/admin.go b/internal/websocket/admin.go index 1063f279..dd78a770 100644 --- a/internal/websocket/admin.go +++ b/internal/websocket/admin.go @@ -3,9 +3,9 @@ package websocket import ( "strings" - "n.eko.moe/neko/internal/types" - "n.eko.moe/neko/internal/types/event" - "n.eko.moe/neko/internal/types/message" + "demodesk/neko/internal/types" + "demodesk/neko/internal/types/event" + "demodesk/neko/internal/types/message" ) func (h *MessageHandler) adminLock(id string, session types.Session) error { diff --git a/internal/websocket/broadcast.go b/internal/websocket/broadcast.go index c2d6a884..d62aa798 100644 --- a/internal/websocket/broadcast.go +++ b/internal/websocket/broadcast.go @@ -1,9 +1,9 @@ package websocket import ( - "n.eko.moe/neko/internal/types" - "n.eko.moe/neko/internal/types/event" - "n.eko.moe/neko/internal/types/message" + "demodesk/neko/internal/types" + "demodesk/neko/internal/types/event" + "demodesk/neko/internal/types/message" ) func (h *MessageHandler) boradcastCreate(session types.Session, payload *message.BroadcastCreate) error { diff --git a/internal/websocket/chat.go b/internal/websocket/chat.go index 8f68b5d6..735c5554 100644 --- a/internal/websocket/chat.go +++ b/internal/websocket/chat.go @@ -1,9 +1,9 @@ package websocket import ( - "n.eko.moe/neko/internal/types" - "n.eko.moe/neko/internal/types/event" - "n.eko.moe/neko/internal/types/message" + "demodesk/neko/internal/types" + "demodesk/neko/internal/types/event" + "demodesk/neko/internal/types/message" ) func (h *MessageHandler) chat(id string, session types.Session, payload *message.ChatReceive) error { diff --git a/internal/websocket/control.go b/internal/websocket/control.go index 442ef3f3..cf771bc3 100644 --- a/internal/websocket/control.go +++ b/internal/websocket/control.go @@ -1,9 +1,9 @@ package websocket import ( - "n.eko.moe/neko/internal/types" - "n.eko.moe/neko/internal/types/event" - "n.eko.moe/neko/internal/types/message" + "demodesk/neko/internal/types" + "demodesk/neko/internal/types/event" + "demodesk/neko/internal/types/message" ) func (h *MessageHandler) controlRelease(id string, session types.Session) error { diff --git a/internal/websocket/handler.go b/internal/websocket/handler.go index af829c82..001676d9 100644 --- a/internal/websocket/handler.go +++ b/internal/websocket/handler.go @@ -6,10 +6,10 @@ import ( "github.com/pkg/errors" "github.com/rs/zerolog" - "n.eko.moe/neko/internal/types" - "n.eko.moe/neko/internal/types/event" - "n.eko.moe/neko/internal/types/message" - "n.eko.moe/neko/internal/utils" + "demodesk/neko/internal/types" + "demodesk/neko/internal/types/event" + "demodesk/neko/internal/types/message" + "demodesk/neko/internal/utils" ) type MessageHandler struct { diff --git a/internal/websocket/screen.go b/internal/websocket/screen.go index 2547f630..ddb35167 100644 --- a/internal/websocket/screen.go +++ b/internal/websocket/screen.go @@ -1,9 +1,9 @@ package websocket import ( - "n.eko.moe/neko/internal/types" - "n.eko.moe/neko/internal/types/event" - "n.eko.moe/neko/internal/types/message" + "demodesk/neko/internal/types" + "demodesk/neko/internal/types/event" + "demodesk/neko/internal/types/message" ) func (h *MessageHandler) screenSet(id string, session types.Session, payload *message.ScreenResolution) error { diff --git a/internal/websocket/session.go b/internal/websocket/session.go index 9151aa23..8bb0d053 100644 --- a/internal/websocket/session.go +++ b/internal/websocket/session.go @@ -1,9 +1,9 @@ package websocket import ( - "n.eko.moe/neko/internal/types" - "n.eko.moe/neko/internal/types/event" - "n.eko.moe/neko/internal/types/message" + "demodesk/neko/internal/types" + "demodesk/neko/internal/types/event" + "demodesk/neko/internal/types/message" ) func (h *MessageHandler) SessionCreated(id string, session types.Session) error { diff --git a/internal/websocket/signal.go b/internal/websocket/signal.go index e24db554..50b4446d 100644 --- a/internal/websocket/signal.go +++ b/internal/websocket/signal.go @@ -1,9 +1,9 @@ package websocket import ( - "n.eko.moe/neko/internal/types" - "n.eko.moe/neko/internal/types/event" - "n.eko.moe/neko/internal/types/message" + "demodesk/neko/internal/types" + "demodesk/neko/internal/types/event" + "demodesk/neko/internal/types/message" ) func (h *MessageHandler) signalProvide(id string, session types.Session) error { diff --git a/internal/websocket/websocket.go b/internal/websocket/websocket.go index 77e9651d..523120e2 100644 --- a/internal/websocket/websocket.go +++ b/internal/websocket/websocket.go @@ -9,11 +9,11 @@ import ( "github.com/rs/zerolog" "github.com/rs/zerolog/log" - "n.eko.moe/neko/internal/types" - "n.eko.moe/neko/internal/types/config" - "n.eko.moe/neko/internal/types/event" - "n.eko.moe/neko/internal/types/message" - "n.eko.moe/neko/internal/utils" + "demodesk/neko/internal/types" + "demodesk/neko/internal/types/config" + "demodesk/neko/internal/types/event" + "demodesk/neko/internal/types/message" + "demodesk/neko/internal/utils" ) func New(sessions types.SessionManager, remote types.RemoteManager, broadcast types.BroadcastManager, webrtc types.WebRTCManager, conf *config.WebSocket) *WebSocketHandler { diff --git a/internal/xorg/xorg.go b/internal/xorg/xorg.go index 39f33f7f..ec5d0727 100644 --- a/internal/xorg/xorg.go +++ b/internal/xorg/xorg.go @@ -15,7 +15,7 @@ import ( "unsafe" "regexp" - "n.eko.moe/neko/internal/types" + "demodesk/neko/internal/types" ) var ScreenConfigurations = make(map[int]types.ScreenConfiguration) diff --git a/neko.go b/neko.go index 0d6026fd..4a01151f 100644 --- a/neko.go +++ b/neko.go @@ -6,13 +6,13 @@ import ( "os/signal" "runtime" - "n.eko.moe/neko/internal/broadcast" - "n.eko.moe/neko/internal/http" - "n.eko.moe/neko/internal/remote" - "n.eko.moe/neko/internal/session" - "n.eko.moe/neko/internal/types/config" - "n.eko.moe/neko/internal/webrtc" - "n.eko.moe/neko/internal/websocket" + "demodesk/neko/internal/broadcast" + "demodesk/neko/internal/http" + "demodesk/neko/internal/remote" + "demodesk/neko/internal/session" + "demodesk/neko/internal/types/config" + "demodesk/neko/internal/webrtc" + "demodesk/neko/internal/websocket" "github.com/rs/zerolog" "github.com/rs/zerolog/log"