mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
rename module name from gitlab to github.
This commit is contained in:
parent
41df1bc8d3
commit
3cd59b9f30
8
build
8
build
@ -30,10 +30,10 @@ go build \
|
||||
-o bin/neko \
|
||||
-ldflags "
|
||||
-s -w
|
||||
-X 'gitlab.com/demodesk/neko/server.buildDate=`date -u +'%Y-%m-%dT%H:%M:%SZ'`'
|
||||
-X 'gitlab.com/demodesk/neko/server.gitCommit=${GIT_COMMIT}'
|
||||
-X 'gitlab.com/demodesk/neko/server.gitBranch=${GIT_BRANCH}'
|
||||
-X 'gitlab.com/demodesk/neko/server.gitTag=${GIT_TAG}'
|
||||
-X 'github.com/demodesk/neko.buildDate=`date -u +'%Y-%m-%dT%H:%M:%SZ'`'
|
||||
-X 'github.com/demodesk/neko.gitCommit=${GIT_COMMIT}'
|
||||
-X 'github.com/demodesk/neko.gitBranch=${GIT_BRANCH}'
|
||||
-X 'github.com/demodesk/neko.gitTag=${GIT_TAG}'
|
||||
" \
|
||||
cmd/neko/main.go;
|
||||
|
||||
|
@ -5,9 +5,9 @@ import (
|
||||
|
||||
"github.com/rs/zerolog/log"
|
||||
|
||||
neko "gitlab.com/demodesk/neko/server"
|
||||
"gitlab.com/demodesk/neko/server/cmd"
|
||||
"gitlab.com/demodesk/neko/server/pkg/utils"
|
||||
"github.com/demodesk/neko"
|
||||
"github.com/demodesk/neko/cmd"
|
||||
"github.com/demodesk/neko/pkg/utils"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -15,8 +15,8 @@ import (
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/viper"
|
||||
|
||||
neko "gitlab.com/demodesk/neko/server"
|
||||
"gitlab.com/demodesk/neko/server/internal/config"
|
||||
"github.com/demodesk/neko"
|
||||
"github.com/demodesk/neko/internal/config"
|
||||
)
|
||||
|
||||
func Execute() error {
|
||||
|
20
cmd/serve.go
20
cmd/serve.go
@ -8,16 +8,16 @@ import (
|
||||
"github.com/rs/zerolog/log"
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/internal/api"
|
||||
"gitlab.com/demodesk/neko/server/internal/capture"
|
||||
"gitlab.com/demodesk/neko/server/internal/config"
|
||||
"gitlab.com/demodesk/neko/server/internal/desktop"
|
||||
"gitlab.com/demodesk/neko/server/internal/http"
|
||||
"gitlab.com/demodesk/neko/server/internal/member"
|
||||
"gitlab.com/demodesk/neko/server/internal/plugins"
|
||||
"gitlab.com/demodesk/neko/server/internal/session"
|
||||
"gitlab.com/demodesk/neko/server/internal/webrtc"
|
||||
"gitlab.com/demodesk/neko/server/internal/websocket"
|
||||
"github.com/demodesk/neko/internal/api"
|
||||
"github.com/demodesk/neko/internal/capture"
|
||||
"github.com/demodesk/neko/internal/config"
|
||||
"github.com/demodesk/neko/internal/desktop"
|
||||
"github.com/demodesk/neko/internal/http"
|
||||
"github.com/demodesk/neko/internal/member"
|
||||
"github.com/demodesk/neko/internal/plugins"
|
||||
"github.com/demodesk/neko/internal/session"
|
||||
"github.com/demodesk/neko/internal/webrtc"
|
||||
"github.com/demodesk/neko/internal/websocket"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
2
go.mod
2
go.mod
@ -1,4 +1,4 @@
|
||||
module gitlab.com/demodesk/neko/server
|
||||
module github.com/demodesk/neko
|
||||
|
||||
go 1.18
|
||||
|
||||
|
@ -5,8 +5,8 @@ import (
|
||||
"io"
|
||||
"net/http"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"gitlab.com/demodesk/neko/server/pkg/utils"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
"github.com/demodesk/neko/pkg/utils"
|
||||
)
|
||||
|
||||
type MemberBulkUpdatePayload struct {
|
||||
|
@ -5,8 +5,8 @@ import (
|
||||
"net/http"
|
||||
"strconv"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"gitlab.com/demodesk/neko/server/pkg/utils"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
"github.com/demodesk/neko/pkg/utils"
|
||||
)
|
||||
|
||||
type MemberDataPayload struct {
|
||||
|
@ -7,9 +7,9 @@ import (
|
||||
|
||||
"github.com/go-chi/chi"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/pkg/auth"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"gitlab.com/demodesk/neko/server/pkg/utils"
|
||||
"github.com/demodesk/neko/pkg/auth"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
"github.com/demodesk/neko/pkg/utils"
|
||||
)
|
||||
|
||||
type key int
|
||||
|
@ -3,9 +3,9 @@ package room
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/pkg/types/event"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types/message"
|
||||
"gitlab.com/demodesk/neko/server/pkg/utils"
|
||||
"github.com/demodesk/neko/pkg/types/event"
|
||||
"github.com/demodesk/neko/pkg/types/message"
|
||||
"github.com/demodesk/neko/pkg/utils"
|
||||
)
|
||||
|
||||
type BroadcastStatusPayload struct {
|
||||
|
@ -7,8 +7,8 @@ import (
|
||||
|
||||
"net/http"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"gitlab.com/demodesk/neko/server/pkg/utils"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
"github.com/demodesk/neko/pkg/utils"
|
||||
)
|
||||
|
||||
type ClipboardPayload struct {
|
||||
|
@ -5,8 +5,8 @@ import (
|
||||
|
||||
"github.com/go-chi/chi"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/pkg/auth"
|
||||
"gitlab.com/demodesk/neko/server/pkg/utils"
|
||||
"github.com/demodesk/neko/pkg/auth"
|
||||
"github.com/demodesk/neko/pkg/utils"
|
||||
)
|
||||
|
||||
type ControlStatusPayload struct {
|
||||
|
@ -6,9 +6,9 @@ import (
|
||||
|
||||
"github.com/rs/zerolog/log"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/pkg/auth"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"gitlab.com/demodesk/neko/server/pkg/utils"
|
||||
"github.com/demodesk/neko/pkg/auth"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
"github.com/demodesk/neko/pkg/utils"
|
||||
)
|
||||
|
||||
type RoomHandler struct {
|
||||
|
@ -3,8 +3,8 @@ package room
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"gitlab.com/demodesk/neko/server/pkg/utils"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
"github.com/demodesk/neko/pkg/utils"
|
||||
)
|
||||
|
||||
type KeyboardMapData struct {
|
||||
|
@ -4,11 +4,11 @@ import (
|
||||
"net/http"
|
||||
"strconv"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/pkg/auth"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types/event"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types/message"
|
||||
"gitlab.com/demodesk/neko/server/pkg/utils"
|
||||
"github.com/demodesk/neko/pkg/auth"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
"github.com/demodesk/neko/pkg/types/event"
|
||||
"github.com/demodesk/neko/pkg/types/message"
|
||||
"github.com/demodesk/neko/pkg/utils"
|
||||
)
|
||||
|
||||
type ScreenConfigurationPayload struct {
|
||||
|
@ -3,7 +3,7 @@ package room
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/pkg/utils"
|
||||
"github.com/demodesk/neko/pkg/utils"
|
||||
)
|
||||
|
||||
func (h *RoomHandler) settingsGet(w http.ResponseWriter, r *http.Request) error {
|
||||
|
@ -7,7 +7,7 @@ import (
|
||||
"path"
|
||||
"strconv"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/pkg/utils"
|
||||
"github.com/demodesk/neko/pkg/utils"
|
||||
)
|
||||
|
||||
// TODO: Extract file uploading to custom utility.
|
||||
|
@ -5,11 +5,11 @@ import (
|
||||
"errors"
|
||||
"net/http"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/internal/api/members"
|
||||
"gitlab.com/demodesk/neko/server/internal/api/room"
|
||||
"gitlab.com/demodesk/neko/server/pkg/auth"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"gitlab.com/demodesk/neko/server/pkg/utils"
|
||||
"github.com/demodesk/neko/internal/api/members"
|
||||
"github.com/demodesk/neko/internal/api/room"
|
||||
"github.com/demodesk/neko/pkg/auth"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
"github.com/demodesk/neko/pkg/utils"
|
||||
)
|
||||
|
||||
type ApiManagerCtx struct {
|
||||
|
@ -3,9 +3,9 @@ package api
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/pkg/auth"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"gitlab.com/demodesk/neko/server/pkg/utils"
|
||||
"github.com/demodesk/neko/pkg/auth"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
"github.com/demodesk/neko/pkg/utils"
|
||||
)
|
||||
|
||||
type SessionLoginPayload struct {
|
||||
|
@ -9,8 +9,8 @@ import (
|
||||
"github.com/rs/zerolog"
|
||||
"github.com/rs/zerolog/log"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/pkg/gst"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"github.com/demodesk/neko/pkg/gst"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
)
|
||||
|
||||
type BroacastManagerCtx struct {
|
||||
|
@ -8,9 +8,9 @@ import (
|
||||
"github.com/rs/zerolog"
|
||||
"github.com/rs/zerolog/log"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/internal/config"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types/codec"
|
||||
"github.com/demodesk/neko/internal/config"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
"github.com/demodesk/neko/pkg/types/codec"
|
||||
)
|
||||
|
||||
type CaptureManagerCtx struct {
|
||||
|
@ -11,8 +11,8 @@ import (
|
||||
"github.com/rs/zerolog"
|
||||
"github.com/rs/zerolog/log"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/pkg/gst"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"github.com/demodesk/neko/pkg/gst"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
)
|
||||
|
||||
// timeout between intervals, when screencast pipeline is checked
|
||||
|
@ -11,9 +11,9 @@ import (
|
||||
"github.com/rs/zerolog"
|
||||
"github.com/rs/zerolog/log"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/pkg/gst"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types/codec"
|
||||
"github.com/demodesk/neko/pkg/gst"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
"github.com/demodesk/neko/pkg/types/codec"
|
||||
)
|
||||
|
||||
var moveSinkListenerMu = sync.Mutex{}
|
||||
|
@ -9,9 +9,9 @@ import (
|
||||
"github.com/rs/zerolog"
|
||||
"github.com/rs/zerolog/log"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/pkg/gst"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types/codec"
|
||||
"github.com/demodesk/neko/pkg/gst"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
"github.com/demodesk/neko/pkg/types/codec"
|
||||
)
|
||||
|
||||
type StreamSrcManagerCtx struct {
|
||||
|
@ -8,9 +8,9 @@ import (
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/viper"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types/codec"
|
||||
"gitlab.com/demodesk/neko/server/pkg/utils"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
"github.com/demodesk/neko/pkg/types/codec"
|
||||
"github.com/demodesk/neko/pkg/utils"
|
||||
)
|
||||
|
||||
type Capture struct {
|
||||
|
@ -4,8 +4,8 @@ import (
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/viper"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/internal/member/file"
|
||||
"gitlab.com/demodesk/neko/server/internal/member/object"
|
||||
"github.com/demodesk/neko/internal/member/file"
|
||||
"github.com/demodesk/neko/internal/member/object"
|
||||
)
|
||||
|
||||
type Member struct {
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/viper"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/pkg/utils"
|
||||
"github.com/demodesk/neko/pkg/utils"
|
||||
)
|
||||
|
||||
type Server struct {
|
||||
|
@ -8,8 +8,8 @@ import (
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/viper"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"gitlab.com/demodesk/neko/server/pkg/utils"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
"github.com/demodesk/neko/pkg/utils"
|
||||
)
|
||||
|
||||
// default stun server
|
||||
|
@ -6,8 +6,8 @@ import (
|
||||
"os/exec"
|
||||
"strings"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"gitlab.com/demodesk/neko/server/pkg/xevent"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
"github.com/demodesk/neko/pkg/xevent"
|
||||
)
|
||||
|
||||
func (manager *DesktopManagerCtx) ClipboardGetText() (*types.ClipboardText, error) {
|
||||
|
@ -3,7 +3,7 @@ package desktop
|
||||
import (
|
||||
"time"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/pkg/drop"
|
||||
"github.com/demodesk/neko/pkg/drop"
|
||||
)
|
||||
|
||||
// repeat move event multiple times
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"errors"
|
||||
"os/exec"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/pkg/xorg"
|
||||
"github.com/demodesk/neko/pkg/xorg"
|
||||
)
|
||||
|
||||
// name of the window that is being controlled
|
||||
|
@ -9,9 +9,9 @@ import (
|
||||
"github.com/rs/zerolog"
|
||||
"github.com/rs/zerolog/log"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/internal/config"
|
||||
"gitlab.com/demodesk/neko/server/pkg/xevent"
|
||||
"gitlab.com/demodesk/neko/server/pkg/xorg"
|
||||
"github.com/demodesk/neko/internal/config"
|
||||
"github.com/demodesk/neko/pkg/xevent"
|
||||
"github.com/demodesk/neko/pkg/xorg"
|
||||
)
|
||||
|
||||
var mu = sync.Mutex{}
|
||||
|
@ -1,7 +1,7 @@
|
||||
package desktop
|
||||
|
||||
import (
|
||||
"gitlab.com/demodesk/neko/server/pkg/xevent"
|
||||
"github.com/demodesk/neko/pkg/xevent"
|
||||
)
|
||||
|
||||
func (manager *DesktopManagerCtx) OnCursorChanged(listener func(serial uint64)) {
|
||||
|
@ -6,8 +6,8 @@ import (
|
||||
"regexp"
|
||||
"time"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"gitlab.com/demodesk/neko/server/pkg/xorg"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
"github.com/demodesk/neko/pkg/xorg"
|
||||
)
|
||||
|
||||
func (manager *DesktopManagerCtx) Move(x, y int) {
|
||||
|
@ -6,7 +6,7 @@ import (
|
||||
|
||||
"github.com/go-chi/chi"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
)
|
||||
|
||||
func pprofHandler(r types.Router) {
|
||||
|
@ -8,8 +8,8 @@ import (
|
||||
"github.com/go-chi/chi/middleware"
|
||||
"github.com/rs/zerolog"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"gitlab.com/demodesk/neko/server/pkg/utils"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
"github.com/demodesk/neko/pkg/utils"
|
||||
)
|
||||
|
||||
type logFormatter struct {
|
||||
|
@ -10,8 +10,8 @@ import (
|
||||
"github.com/rs/zerolog"
|
||||
"github.com/rs/zerolog/log"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/internal/config"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"github.com/demodesk/neko/internal/config"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
)
|
||||
|
||||
type HttpManagerCtx struct {
|
||||
|
@ -7,9 +7,9 @@ import (
|
||||
"github.com/go-chi/chi/middleware"
|
||||
"github.com/rs/zerolog"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/pkg/auth"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"gitlab.com/demodesk/neko/server/pkg/utils"
|
||||
"github.com/demodesk/neko/pkg/auth"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
"github.com/demodesk/neko/pkg/utils"
|
||||
)
|
||||
|
||||
type router struct {
|
||||
|
@ -3,7 +3,7 @@ package dummy
|
||||
import (
|
||||
"errors"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
)
|
||||
|
||||
func New() types.MemberProvider {
|
||||
|
@ -5,7 +5,7 @@ import (
|
||||
"io"
|
||||
"os"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
)
|
||||
|
||||
func New(config Config) types.MemberProvider {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package file
|
||||
|
||||
import (
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
)
|
||||
|
||||
type MemberEntry struct {
|
||||
|
@ -7,11 +7,11 @@ import (
|
||||
"github.com/rs/zerolog"
|
||||
"github.com/rs/zerolog/log"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/internal/config"
|
||||
"gitlab.com/demodesk/neko/server/internal/member/dummy"
|
||||
"gitlab.com/demodesk/neko/server/internal/member/file"
|
||||
"gitlab.com/demodesk/neko/server/internal/member/object"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"github.com/demodesk/neko/internal/config"
|
||||
"github.com/demodesk/neko/internal/member/dummy"
|
||||
"github.com/demodesk/neko/internal/member/file"
|
||||
"github.com/demodesk/neko/internal/member/object"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
)
|
||||
|
||||
func New(sessions types.SessionManager, config *config.Member) *MemberManagerCtx {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package object
|
||||
|
||||
import (
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
)
|
||||
|
||||
func New(config Config) types.MemberProvider {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package object
|
||||
|
||||
import (
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
)
|
||||
|
||||
type MemberEntry struct {
|
||||
|
@ -5,7 +5,7 @@ import (
|
||||
|
||||
"github.com/rs/zerolog"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
)
|
||||
|
||||
type dependency struct {
|
||||
|
@ -5,7 +5,7 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
)
|
||||
|
||||
func Test_deps_addPlugin(t *testing.T) {
|
||||
|
@ -10,8 +10,8 @@ import (
|
||||
"github.com/rs/zerolog/log"
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/internal/config"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"github.com/demodesk/neko/internal/config"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
)
|
||||
|
||||
type ManagerCtx struct {
|
||||
|
@ -6,7 +6,7 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
)
|
||||
|
||||
func (manager *SessionManagerCtx) CookieSetToken(w http.ResponseWriter, token string) {
|
||||
|
@ -8,9 +8,9 @@ import (
|
||||
"github.com/rs/zerolog"
|
||||
"github.com/rs/zerolog/log"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/internal/config"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"gitlab.com/demodesk/neko/server/pkg/utils"
|
||||
"github.com/demodesk/neko/internal/config"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
"github.com/demodesk/neko/pkg/utils"
|
||||
)
|
||||
|
||||
func New(config *config.Session) *SessionManagerCtx {
|
||||
|
@ -5,8 +5,8 @@ import (
|
||||
|
||||
"github.com/rs/zerolog"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types/event"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
"github.com/demodesk/neko/pkg/types/event"
|
||||
)
|
||||
|
||||
type SessionCtx struct {
|
||||
|
@ -7,8 +7,8 @@ import (
|
||||
"github.com/rs/zerolog"
|
||||
"github.com/rs/zerolog/log"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"gitlab.com/demodesk/neko/server/pkg/utils"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
"github.com/demodesk/neko/pkg/utils"
|
||||
)
|
||||
|
||||
func NewImage(desktop types.DesktopManager) *ImageCtx {
|
||||
|
@ -4,8 +4,8 @@ import (
|
||||
"bytes"
|
||||
"encoding/binary"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/internal/webrtc/payload"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"github.com/demodesk/neko/internal/webrtc/payload"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
)
|
||||
|
||||
func (manager *WebRTCManagerCtx) handle(data []byte, session types.Session) error {
|
||||
|
@ -13,13 +13,13 @@ import (
|
||||
"github.com/rs/zerolog"
|
||||
"github.com/rs/zerolog/log"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/internal/config"
|
||||
"gitlab.com/demodesk/neko/server/internal/webrtc/cursor"
|
||||
"gitlab.com/demodesk/neko/server/internal/webrtc/pionlog"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types/codec"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types/event"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types/message"
|
||||
"github.com/demodesk/neko/internal/config"
|
||||
"github.com/demodesk/neko/internal/webrtc/cursor"
|
||||
"github.com/demodesk/neko/internal/webrtc/pionlog"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
"github.com/demodesk/neko/pkg/types/codec"
|
||||
"github.com/demodesk/neko/pkg/types/event"
|
||||
"github.com/demodesk/neko/pkg/types/message"
|
||||
)
|
||||
|
||||
// the duration without network activity before a Agent is considered disconnected. Default is 5 Seconds
|
||||
|
@ -3,11 +3,11 @@ package webrtc
|
||||
import (
|
||||
"sync"
|
||||
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
"github.com/pion/rtcp"
|
||||
"github.com/pion/webrtc/v3"
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
"github.com/prometheus/client_golang/prometheus/promauto"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
)
|
||||
|
||||
type metrics struct {
|
||||
|
@ -6,7 +6,7 @@ import (
|
||||
"github.com/pion/webrtc/v3"
|
||||
"github.com/rs/zerolog"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
)
|
||||
|
||||
type WebRTCPeerCtx struct {
|
||||
|
@ -5,8 +5,8 @@ import (
|
||||
"github.com/pion/webrtc/v3"
|
||||
"github.com/rs/zerolog"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/internal/webrtc/pionlog"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types/codec"
|
||||
"github.com/demodesk/neko/internal/webrtc/pionlog"
|
||||
"github.com/demodesk/neko/pkg/types/codec"
|
||||
)
|
||||
|
||||
func (manager *WebRTCManagerCtx) newPeerConnection(codecs []codec.RTPCodec, logger zerolog.Logger) (*webrtc.PeerConnection, error) {
|
||||
|
@ -10,7 +10,7 @@ import (
|
||||
"github.com/pion/webrtc/v3/pkg/media"
|
||||
"github.com/rs/zerolog"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
)
|
||||
|
||||
func (manager *WebRTCManagerCtx) newPeerStreamTrack(stream types.StreamSinkManager, logger zerolog.Logger) (*PeerStreamTrack, error) {
|
||||
|
@ -4,8 +4,8 @@ import (
|
||||
"bytes"
|
||||
"encoding/binary"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/internal/webrtc/payload"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"github.com/demodesk/neko/internal/webrtc/payload"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
)
|
||||
|
||||
func (peer *WebRTCPeerCtx) SendCursorPosition(x, y int) error {
|
||||
|
@ -1,9 +1,9 @@
|
||||
package websocket
|
||||
|
||||
import (
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types/event"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types/message"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
"github.com/demodesk/neko/pkg/types/event"
|
||||
"github.com/demodesk/neko/pkg/types/message"
|
||||
)
|
||||
|
||||
func (manager *WebSocketManagerCtx) fileChooserDialogEvents() {
|
||||
|
@ -3,8 +3,8 @@ package handler
|
||||
import (
|
||||
"errors"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types/message"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
"github.com/demodesk/neko/pkg/types/message"
|
||||
)
|
||||
|
||||
func (h *MessageHandlerCtx) clipboardSet(session types.Session, payload *message.ClipboardData) error {
|
||||
|
@ -3,10 +3,10 @@ package handler
|
||||
import (
|
||||
"errors"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types/event"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types/message"
|
||||
"gitlab.com/demodesk/neko/server/pkg/xorg"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
"github.com/demodesk/neko/pkg/types/event"
|
||||
"github.com/demodesk/neko/pkg/types/message"
|
||||
"github.com/demodesk/neko/pkg/xorg"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -4,10 +4,10 @@ import (
|
||||
"github.com/rs/zerolog"
|
||||
"github.com/rs/zerolog/log"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types/event"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types/message"
|
||||
"gitlab.com/demodesk/neko/server/pkg/utils"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
"github.com/demodesk/neko/pkg/types/event"
|
||||
"github.com/demodesk/neko/pkg/types/message"
|
||||
"github.com/demodesk/neko/pkg/utils"
|
||||
)
|
||||
|
||||
func New(
|
||||
|
@ -3,8 +3,8 @@ package handler
|
||||
import (
|
||||
"errors"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types/message"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
"github.com/demodesk/neko/pkg/types/message"
|
||||
)
|
||||
|
||||
func (h *MessageHandlerCtx) keyboardMap(session types.Session, payload *message.KeyboardMap) error {
|
||||
|
@ -3,9 +3,9 @@ package handler
|
||||
import (
|
||||
"errors"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types/event"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types/message"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
"github.com/demodesk/neko/pkg/types/event"
|
||||
"github.com/demodesk/neko/pkg/types/message"
|
||||
)
|
||||
|
||||
func (h *MessageHandlerCtx) screenSet(session types.Session, payload *message.ScreenSize) error {
|
||||
|
@ -3,9 +3,9 @@ package handler
|
||||
import (
|
||||
"errors"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types/event"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types/message"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
"github.com/demodesk/neko/pkg/types/event"
|
||||
"github.com/demodesk/neko/pkg/types/message"
|
||||
)
|
||||
|
||||
func (h *MessageHandlerCtx) sendUnicast(session types.Session, payload *message.SendUnicast) error {
|
||||
|
@ -1,9 +1,9 @@
|
||||
package handler
|
||||
|
||||
import (
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types/event"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types/message"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
"github.com/demodesk/neko/pkg/types/event"
|
||||
"github.com/demodesk/neko/pkg/types/message"
|
||||
)
|
||||
|
||||
func (h *MessageHandlerCtx) SessionCreated(session types.Session) error {
|
||||
|
@ -3,9 +3,9 @@ package handler
|
||||
import (
|
||||
"errors"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types/event"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types/message"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
"github.com/demodesk/neko/pkg/types/event"
|
||||
"github.com/demodesk/neko/pkg/types/message"
|
||||
)
|
||||
|
||||
func (h *MessageHandlerCtx) signalRequest(session types.Session, payload *message.SignalVideo) error {
|
||||
|
@ -6,9 +6,9 @@ import (
|
||||
"github.com/rs/zerolog"
|
||||
"github.com/rs/zerolog/log"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types/event"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types/message"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
"github.com/demodesk/neko/pkg/types/event"
|
||||
"github.com/demodesk/neko/pkg/types/message"
|
||||
)
|
||||
|
||||
func (h *MessageHandlerCtx) systemInit(session types.Session) error {
|
||||
|
@ -10,11 +10,11 @@ import (
|
||||
"github.com/rs/zerolog"
|
||||
"github.com/rs/zerolog/log"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/internal/websocket/handler"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types/event"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types/message"
|
||||
"gitlab.com/demodesk/neko/server/pkg/utils"
|
||||
"github.com/demodesk/neko/internal/websocket/handler"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
"github.com/demodesk/neko/pkg/types/event"
|
||||
"github.com/demodesk/neko/pkg/types/message"
|
||||
"github.com/demodesk/neko/pkg/utils"
|
||||
)
|
||||
|
||||
// send pings to peer with this period - must be less than pongWait
|
||||
|
@ -9,9 +9,9 @@ import (
|
||||
"github.com/rs/zerolog"
|
||||
"github.com/rs/zerolog/log"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types/event"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types/message"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
"github.com/demodesk/neko/pkg/types/event"
|
||||
"github.com/demodesk/neko/pkg/types/message"
|
||||
)
|
||||
|
||||
type WebSocketPeerCtx struct {
|
||||
|
@ -5,8 +5,8 @@ import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"gitlab.com/demodesk/neko/server/pkg/utils"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
"github.com/demodesk/neko/pkg/utils"
|
||||
)
|
||||
|
||||
type key int
|
||||
|
@ -6,9 +6,9 @@ import (
|
||||
"reflect"
|
||||
"testing"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/internal/config"
|
||||
"gitlab.com/demodesk/neko/server/internal/session"
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"github.com/demodesk/neko/internal/config"
|
||||
"github.com/demodesk/neko/internal/session"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
)
|
||||
|
||||
var i = 0
|
||||
|
@ -16,7 +16,7 @@ import (
|
||||
"github.com/rs/zerolog"
|
||||
"github.com/rs/zerolog/log"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
)
|
||||
|
||||
type Pipeline struct {
|
||||
|
@ -10,7 +10,7 @@ import (
|
||||
"github.com/PaesslerAG/gval"
|
||||
"github.com/pion/webrtc/v3/pkg/media"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/pkg/types/codec"
|
||||
"github.com/demodesk/neko/pkg/types/codec"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -3,7 +3,7 @@ package message
|
||||
import (
|
||||
"github.com/pion/webrtc/v3"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
)
|
||||
|
||||
/////////////////////////////
|
||||
|
@ -15,7 +15,7 @@ import (
|
||||
"time"
|
||||
"unsafe"
|
||||
|
||||
"gitlab.com/demodesk/neko/server/pkg/types"
|
||||
"github.com/demodesk/neko/pkg/types"
|
||||
)
|
||||
|
||||
//go:generate ./keysymdef.sh
|
||||
|
Loading…
Reference in New Issue
Block a user