n.eko.moe -> demodesk.

This commit is contained in:
Miroslav Šedivý 2020-10-28 19:15:48 +01:00
parent 687cf987f8
commit a5014e205e
27 changed files with 68 additions and 68 deletions

2
build
View File

@ -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

View File

@ -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() {

View File

@ -14,7 +14,7 @@ import (
"github.com/spf13/cobra"
"github.com/spf13/viper"
"n.eko.moe/neko"
"demodesk/neko"
)
func Execute() error {

View File

@ -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() {

2
go.mod
View File

@ -1,4 +1,4 @@
module n.eko.moe/neko
module demodesk/neko
go 1.13

View File

@ -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 {

View File

@ -14,7 +14,7 @@ import (
"github.com/pion/webrtc/v2"
"n.eko.moe/neko/internal/types"
"demodesk/neko/internal/types"
)
/*

View File

@ -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 {

View File

@ -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 {

View File

@ -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

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -1,7 +1,7 @@
package message
import (
"n.eko.moe/neko/internal/types"
"demodesk/neko/internal/types"
)
type Message struct {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -15,7 +15,7 @@ import (
"unsafe"
"regexp"
"n.eko.moe/neko/internal/types"
"demodesk/neko/internal/types"
)
var ScreenConfigurations = make(map[int]types.ScreenConfiguration)

14
neko.go
View File

@ -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"