mirror of
https://github.com/m1k1o/neko.git
synced 2025-05-10 15:47:29 +02:00
rename package.
This commit is contained in:
parent
168507dcd4
commit
15e805c9b2
99 changed files with 267 additions and 256 deletions
|
@ -1,5 +1,5 @@
|
||||||
# neko
|
# neko
|
||||||
This app uses WebRTC to stream a desktop inside of a docker container. Client can be found here: [demodesk/neko-client](https://github.com/demodesk/neko-client).
|
This app uses WebRTC to stream a desktop inside of a docker container. Client can be found here: [demodesk/neko-client](https://m1k1o/neko-client).
|
||||||
|
|
||||||
For **community edition** neko with GUI and _plug & play_ deployment visit [m1k1o/neko](https://github.com/m1k1o/neko).
|
For **community edition** neko with GUI and _plug & play_ deployment visit [m1k1o/neko](https://github.com/m1k1o/neko).
|
||||||
|
|
||||||
|
|
|
@ -30,10 +30,10 @@ go build \
|
||||||
-o bin/neko \
|
-o bin/neko \
|
||||||
-ldflags "
|
-ldflags "
|
||||||
-s -w
|
-s -w
|
||||||
-X 'github.com/demodesk/neko.buildDate=`date -u +'%Y-%m-%dT%H:%M:%SZ'`'
|
-X 'm1k1o/neko.buildDate=`date -u +'%Y-%m-%dT%H:%M:%SZ'`'
|
||||||
-X 'github.com/demodesk/neko.gitCommit=${GIT_COMMIT}'
|
-X 'm1k1o/neko.gitCommit=${GIT_COMMIT}'
|
||||||
-X 'github.com/demodesk/neko.gitBranch=${GIT_BRANCH}'
|
-X 'm1k1o/neko.gitBranch=${GIT_BRANCH}'
|
||||||
-X 'github.com/demodesk/neko.gitTag=${GIT_TAG}'
|
-X 'm1k1o/neko.gitTag=${GIT_TAG}'
|
||||||
" \
|
" \
|
||||||
cmd/neko/main.go;
|
cmd/neko/main.go;
|
||||||
|
|
||||||
|
|
|
@ -5,9 +5,9 @@ import (
|
||||||
|
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
|
|
||||||
"github.com/demodesk/neko"
|
"m1k1o/neko"
|
||||||
"github.com/demodesk/neko/cmd"
|
"m1k1o/neko/cmd"
|
||||||
"github.com/demodesk/neko/pkg/utils"
|
"m1k1o/neko/pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
|
@ -4,8 +4,9 @@ import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/demodesk/neko/internal/config"
|
"m1k1o/neko/internal/config"
|
||||||
"github.com/demodesk/neko/internal/plugins"
|
"m1k1o/neko/internal/plugins"
|
||||||
|
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
|
@ -15,8 +15,8 @@ import (
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
|
|
||||||
"github.com/demodesk/neko"
|
"m1k1o/neko"
|
||||||
"github.com/demodesk/neko/internal/config"
|
"m1k1o/neko/internal/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Execute() error {
|
func Execute() error {
|
||||||
|
|
|
@ -8,16 +8,16 @@ import (
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
"github.com/demodesk/neko/internal/api"
|
"m1k1o/neko/internal/api"
|
||||||
"github.com/demodesk/neko/internal/capture"
|
"m1k1o/neko/internal/capture"
|
||||||
"github.com/demodesk/neko/internal/config"
|
"m1k1o/neko/internal/config"
|
||||||
"github.com/demodesk/neko/internal/desktop"
|
"m1k1o/neko/internal/desktop"
|
||||||
"github.com/demodesk/neko/internal/http"
|
"m1k1o/neko/internal/http"
|
||||||
"github.com/demodesk/neko/internal/member"
|
"m1k1o/neko/internal/member"
|
||||||
"github.com/demodesk/neko/internal/plugins"
|
"m1k1o/neko/internal/plugins"
|
||||||
"github.com/demodesk/neko/internal/session"
|
"m1k1o/neko/internal/session"
|
||||||
"github.com/demodesk/neko/internal/webrtc"
|
"m1k1o/neko/internal/webrtc"
|
||||||
"github.com/demodesk/neko/internal/websocket"
|
"m1k1o/neko/internal/websocket"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
module github.com/demodesk/neko
|
module m1k1o/neko
|
||||||
|
|
||||||
go 1.21
|
go 1.21
|
||||||
|
|
||||||
|
|
|
@ -5,8 +5,8 @@ import (
|
||||||
"io"
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
"github.com/demodesk/neko/pkg/utils"
|
"m1k1o/neko/pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
type MemberBulkUpdatePayload struct {
|
type MemberBulkUpdatePayload struct {
|
||||||
|
|
|
@ -5,8 +5,8 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
"github.com/demodesk/neko/pkg/utils"
|
"m1k1o/neko/pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
type MemberDataPayload struct {
|
type MemberDataPayload struct {
|
||||||
|
|
|
@ -7,9 +7,9 @@ import (
|
||||||
|
|
||||||
"github.com/go-chi/chi"
|
"github.com/go-chi/chi"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/auth"
|
"m1k1o/neko/pkg/auth"
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
"github.com/demodesk/neko/pkg/utils"
|
"m1k1o/neko/pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
type key int
|
type key int
|
||||||
|
|
|
@ -3,9 +3,9 @@ package room
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/types/event"
|
"m1k1o/neko/pkg/types/event"
|
||||||
"github.com/demodesk/neko/pkg/types/message"
|
"m1k1o/neko/pkg/types/message"
|
||||||
"github.com/demodesk/neko/pkg/utils"
|
"m1k1o/neko/pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
type BroadcastStatusPayload struct {
|
type BroadcastStatusPayload struct {
|
||||||
|
|
|
@ -7,8 +7,8 @@ import (
|
||||||
|
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
"github.com/demodesk/neko/pkg/utils"
|
"m1k1o/neko/pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ClipboardPayload struct {
|
type ClipboardPayload struct {
|
||||||
|
|
|
@ -5,10 +5,10 @@ import (
|
||||||
|
|
||||||
"github.com/go-chi/chi"
|
"github.com/go-chi/chi"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/auth"
|
"m1k1o/neko/pkg/auth"
|
||||||
"github.com/demodesk/neko/pkg/types/event"
|
"m1k1o/neko/pkg/types/event"
|
||||||
"github.com/demodesk/neko/pkg/types/message"
|
"m1k1o/neko/pkg/types/message"
|
||||||
"github.com/demodesk/neko/pkg/utils"
|
"m1k1o/neko/pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ControlStatusPayload struct {
|
type ControlStatusPayload struct {
|
||||||
|
|
|
@ -6,9 +6,9 @@ import (
|
||||||
|
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/auth"
|
"m1k1o/neko/pkg/auth"
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
"github.com/demodesk/neko/pkg/utils"
|
"m1k1o/neko/pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
type RoomHandler struct {
|
type RoomHandler struct {
|
||||||
|
|
|
@ -3,8 +3,8 @@ package room
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
"github.com/demodesk/neko/pkg/utils"
|
"m1k1o/neko/pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (h *RoomHandler) keyboardMapSet(w http.ResponseWriter, r *http.Request) error {
|
func (h *RoomHandler) keyboardMapSet(w http.ResponseWriter, r *http.Request) error {
|
||||||
|
|
|
@ -4,11 +4,11 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/auth"
|
"m1k1o/neko/pkg/auth"
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
"github.com/demodesk/neko/pkg/types/event"
|
"m1k1o/neko/pkg/types/event"
|
||||||
"github.com/demodesk/neko/pkg/types/message"
|
"m1k1o/neko/pkg/types/message"
|
||||||
"github.com/demodesk/neko/pkg/utils"
|
"m1k1o/neko/pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (h *RoomHandler) screenConfiguration(w http.ResponseWriter, r *http.Request) error {
|
func (h *RoomHandler) screenConfiguration(w http.ResponseWriter, r *http.Request) error {
|
||||||
|
|
|
@ -5,9 +5,9 @@ import (
|
||||||
"io"
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/auth"
|
"m1k1o/neko/pkg/auth"
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
"github.com/demodesk/neko/pkg/utils"
|
"m1k1o/neko/pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (h *RoomHandler) settingsGet(w http.ResponseWriter, r *http.Request) error {
|
func (h *RoomHandler) settingsGet(w http.ResponseWriter, r *http.Request) error {
|
||||||
|
|
|
@ -7,7 +7,7 @@ import (
|
||||||
"path"
|
"path"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/utils"
|
"m1k1o/neko/pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TODO: Extract file uploading to custom utility.
|
// TODO: Extract file uploading to custom utility.
|
||||||
|
|
|
@ -5,12 +5,12 @@ import (
|
||||||
"errors"
|
"errors"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/demodesk/neko/internal/api/members"
|
"m1k1o/neko/internal/api/members"
|
||||||
"github.com/demodesk/neko/internal/api/room"
|
"m1k1o/neko/internal/api/room"
|
||||||
"github.com/demodesk/neko/internal/api/sessions"
|
"m1k1o/neko/internal/api/sessions"
|
||||||
"github.com/demodesk/neko/pkg/auth"
|
"m1k1o/neko/pkg/auth"
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
"github.com/demodesk/neko/pkg/utils"
|
"m1k1o/neko/pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ApiManagerCtx struct {
|
type ApiManagerCtx struct {
|
||||||
|
|
|
@ -4,9 +4,9 @@ import (
|
||||||
"errors"
|
"errors"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/auth"
|
"m1k1o/neko/pkg/auth"
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
"github.com/demodesk/neko/pkg/utils"
|
"m1k1o/neko/pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
type SessionLoginPayload struct {
|
type SessionLoginPayload struct {
|
||||||
|
|
|
@ -4,9 +4,10 @@ import (
|
||||||
"errors"
|
"errors"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/auth"
|
"m1k1o/neko/pkg/auth"
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
"github.com/demodesk/neko/pkg/utils"
|
"m1k1o/neko/pkg/utils"
|
||||||
|
|
||||||
"github.com/go-chi/chi"
|
"github.com/go-chi/chi"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package sessions
|
package sessions
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/demodesk/neko/pkg/auth"
|
"m1k1o/neko/pkg/auth"
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
type SessionsHandler struct {
|
type SessionsHandler struct {
|
||||||
|
|
|
@ -8,8 +8,8 @@ import (
|
||||||
"github.com/rs/zerolog"
|
"github.com/rs/zerolog"
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/gst"
|
"m1k1o/neko/pkg/gst"
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
type BroacastManagerCtx struct {
|
type BroacastManagerCtx struct {
|
||||||
|
|
|
@ -8,9 +8,9 @@ import (
|
||||||
"github.com/rs/zerolog"
|
"github.com/rs/zerolog"
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
|
|
||||||
"github.com/demodesk/neko/internal/config"
|
"m1k1o/neko/internal/config"
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
"github.com/demodesk/neko/pkg/types/codec"
|
"m1k1o/neko/pkg/types/codec"
|
||||||
)
|
)
|
||||||
|
|
||||||
type CaptureManagerCtx struct {
|
type CaptureManagerCtx struct {
|
||||||
|
|
|
@ -11,8 +11,8 @@ import (
|
||||||
"github.com/rs/zerolog"
|
"github.com/rs/zerolog"
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/gst"
|
"m1k1o/neko/pkg/gst"
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
// timeout between intervals, when screencast pipeline is checked
|
// timeout between intervals, when screencast pipeline is checked
|
||||||
|
|
|
@ -7,8 +7,8 @@ import (
|
||||||
"github.com/rs/zerolog"
|
"github.com/rs/zerolog"
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
"github.com/demodesk/neko/pkg/types/codec"
|
"m1k1o/neko/pkg/types/codec"
|
||||||
)
|
)
|
||||||
|
|
||||||
type StreamSelectorManagerCtx struct {
|
type StreamSelectorManagerCtx struct {
|
||||||
|
|
|
@ -13,9 +13,9 @@ import (
|
||||||
"github.com/rs/zerolog"
|
"github.com/rs/zerolog"
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/gst"
|
"m1k1o/neko/pkg/gst"
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
"github.com/demodesk/neko/pkg/types/codec"
|
"m1k1o/neko/pkg/types/codec"
|
||||||
)
|
)
|
||||||
|
|
||||||
var moveSinkListenerMu = sync.Mutex{}
|
var moveSinkListenerMu = sync.Mutex{}
|
||||||
|
|
|
@ -9,9 +9,9 @@ import (
|
||||||
"github.com/rs/zerolog"
|
"github.com/rs/zerolog"
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/gst"
|
"m1k1o/neko/pkg/gst"
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
"github.com/demodesk/neko/pkg/types/codec"
|
"m1k1o/neko/pkg/types/codec"
|
||||||
)
|
)
|
||||||
|
|
||||||
type StreamSrcManagerCtx struct {
|
type StreamSrcManagerCtx struct {
|
||||||
|
|
|
@ -9,9 +9,9 @@ import (
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
"github.com/demodesk/neko/pkg/types/codec"
|
"m1k1o/neko/pkg/types/codec"
|
||||||
"github.com/demodesk/neko/pkg/utils"
|
"m1k1o/neko/pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Legacy capture configuration
|
// Legacy capture configuration
|
||||||
|
|
|
@ -5,8 +5,8 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/gst"
|
"m1k1o/neko/pkg/gst"
|
||||||
"github.com/demodesk/neko/pkg/types/codec"
|
"m1k1o/neko/pkg/types/codec"
|
||||||
)
|
)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -9,7 +9,7 @@ import (
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Desktop struct {
|
type Desktop struct {
|
||||||
|
|
|
@ -5,11 +5,11 @@ import (
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
|
|
||||||
"github.com/demodesk/neko/internal/member/file"
|
"m1k1o/neko/internal/member/file"
|
||||||
"github.com/demodesk/neko/internal/member/multiuser"
|
"m1k1o/neko/internal/member/multiuser"
|
||||||
"github.com/demodesk/neko/internal/member/object"
|
"m1k1o/neko/internal/member/object"
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
"github.com/demodesk/neko/pkg/utils"
|
"m1k1o/neko/pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Member struct {
|
type Member struct {
|
||||||
|
|
|
@ -7,7 +7,7 @@ import (
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/utils"
|
"m1k1o/neko/pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Server struct {
|
type Server struct {
|
||||||
|
|
|
@ -10,8 +10,8 @@ import (
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
"github.com/demodesk/neko/pkg/utils"
|
"m1k1o/neko/pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
// default stun server
|
// default stun server
|
||||||
|
|
|
@ -6,8 +6,8 @@ import (
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
"github.com/demodesk/neko/pkg/xevent"
|
"m1k1o/neko/pkg/xevent"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (manager *DesktopManagerCtx) ClipboardGetText() (*types.ClipboardText, error) {
|
func (manager *DesktopManagerCtx) ClipboardGetText() (*types.ClipboardText, error) {
|
||||||
|
|
|
@ -3,7 +3,7 @@ package desktop
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/drop"
|
"m1k1o/neko/pkg/drop"
|
||||||
)
|
)
|
||||||
|
|
||||||
// repeat move event multiple times
|
// repeat move event multiple times
|
||||||
|
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"errors"
|
"errors"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/xorg"
|
"m1k1o/neko/pkg/xorg"
|
||||||
)
|
)
|
||||||
|
|
||||||
// name of the window that is being controlled
|
// name of the window that is being controlled
|
||||||
|
|
|
@ -8,11 +8,11 @@ import (
|
||||||
"github.com/rs/zerolog"
|
"github.com/rs/zerolog"
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
|
|
||||||
"github.com/demodesk/neko/internal/config"
|
"m1k1o/neko/internal/config"
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
"github.com/demodesk/neko/pkg/xevent"
|
"m1k1o/neko/pkg/xevent"
|
||||||
"github.com/demodesk/neko/pkg/xinput"
|
"m1k1o/neko/pkg/xinput"
|
||||||
"github.com/demodesk/neko/pkg/xorg"
|
"m1k1o/neko/pkg/xorg"
|
||||||
)
|
)
|
||||||
|
|
||||||
var mu = sync.Mutex{}
|
var mu = sync.Mutex{}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package desktop
|
package desktop
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/demodesk/neko/pkg/xevent"
|
"m1k1o/neko/pkg/xevent"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (manager *DesktopManagerCtx) OnCursorChanged(listener func(serial uint64)) {
|
func (manager *DesktopManagerCtx) OnCursorChanged(listener func(serial uint64)) {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package desktop
|
package desktop
|
||||||
|
|
||||||
import "github.com/demodesk/neko/pkg/xinput"
|
import "m1k1o/neko/pkg/xinput"
|
||||||
|
|
||||||
func (manager *DesktopManagerCtx) inputRelToAbs(x, y int) (int, int) {
|
func (manager *DesktopManagerCtx) inputRelToAbs(x, y int) (int, int) {
|
||||||
return (x * xinput.AbsX) / manager.screenSize.Width, (y * xinput.AbsY) / manager.screenSize.Height
|
return (x * xinput.AbsX) / manager.screenSize.Width, (y * xinput.AbsY) / manager.screenSize.Height
|
||||||
|
|
|
@ -6,8 +6,8 @@ import (
|
||||||
"regexp"
|
"regexp"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
"github.com/demodesk/neko/pkg/xorg"
|
"m1k1o/neko/pkg/xorg"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (manager *DesktopManagerCtx) Move(x, y int) {
|
func (manager *DesktopManagerCtx) Move(x, y int) {
|
||||||
|
|
|
@ -7,8 +7,8 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
"github.com/demodesk/neko/pkg/utils"
|
"m1k1o/neko/pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
type BatchRequest struct {
|
type BatchRequest struct {
|
||||||
|
|
|
@ -6,7 +6,7 @@ import (
|
||||||
|
|
||||||
"github.com/go-chi/chi"
|
"github.com/go-chi/chi"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
func pprofHandler(r types.Router) {
|
func pprofHandler(r types.Router) {
|
||||||
|
|
|
@ -5,13 +5,14 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
oldEvent "github.com/demodesk/neko/internal/http/legacy/event"
|
oldEvent "m1k1o/neko/internal/http/legacy/event"
|
||||||
oldMessage "github.com/demodesk/neko/internal/http/legacy/message"
|
oldMessage "m1k1o/neko/internal/http/legacy/message"
|
||||||
|
|
||||||
|
"m1k1o/neko/pkg/types"
|
||||||
|
"m1k1o/neko/pkg/types/event"
|
||||||
|
"m1k1o/neko/pkg/types/message"
|
||||||
|
"m1k1o/neko/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"
|
|
||||||
"github.com/gorilla/websocket"
|
"github.com/gorilla/websocket"
|
||||||
"github.com/rs/zerolog"
|
"github.com/rs/zerolog"
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package message
|
package message
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/demodesk/neko/internal/http/legacy/types"
|
"m1k1o/neko/internal/http/legacy/types"
|
||||||
|
|
||||||
"github.com/pion/webrtc/v3"
|
"github.com/pion/webrtc/v3"
|
||||||
)
|
)
|
||||||
|
|
|
@ -8,10 +8,11 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
oldTypes "github.com/demodesk/neko/internal/http/legacy/types"
|
oldTypes "m1k1o/neko/internal/http/legacy/types"
|
||||||
|
|
||||||
|
"m1k1o/neko/internal/api"
|
||||||
|
"m1k1o/neko/pkg/types"
|
||||||
|
|
||||||
"github.com/demodesk/neko/internal/api"
|
|
||||||
"github.com/demodesk/neko/pkg/types"
|
|
||||||
"github.com/gorilla/websocket"
|
"github.com/gorilla/websocket"
|
||||||
"github.com/rs/zerolog"
|
"github.com/rs/zerolog"
|
||||||
)
|
)
|
||||||
|
|
|
@ -8,15 +8,15 @@ import (
|
||||||
"github.com/gorilla/websocket"
|
"github.com/gorilla/websocket"
|
||||||
"github.com/pion/webrtc/v3"
|
"github.com/pion/webrtc/v3"
|
||||||
|
|
||||||
oldEvent "github.com/demodesk/neko/internal/http/legacy/event"
|
oldEvent "m1k1o/neko/internal/http/legacy/event"
|
||||||
oldMessage "github.com/demodesk/neko/internal/http/legacy/message"
|
oldMessage "m1k1o/neko/internal/http/legacy/message"
|
||||||
|
|
||||||
"github.com/demodesk/neko/internal/api/room"
|
"m1k1o/neko/internal/api/room"
|
||||||
"github.com/demodesk/neko/internal/plugins/chat"
|
"m1k1o/neko/internal/plugins/chat"
|
||||||
"github.com/demodesk/neko/internal/plugins/filetransfer"
|
"m1k1o/neko/internal/plugins/filetransfer"
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
"github.com/demodesk/neko/pkg/types/event"
|
"m1k1o/neko/pkg/types/event"
|
||||||
"github.com/demodesk/neko/pkg/types/message"
|
"m1k1o/neko/pkg/types/message"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (s *session) wsToBackend(msg []byte) error {
|
func (s *session) wsToBackend(msg []byte) error {
|
||||||
|
|
|
@ -7,15 +7,15 @@ import (
|
||||||
|
|
||||||
"github.com/pion/webrtc/v3"
|
"github.com/pion/webrtc/v3"
|
||||||
|
|
||||||
oldEvent "github.com/demodesk/neko/internal/http/legacy/event"
|
oldEvent "m1k1o/neko/internal/http/legacy/event"
|
||||||
oldMessage "github.com/demodesk/neko/internal/http/legacy/message"
|
oldMessage "m1k1o/neko/internal/http/legacy/message"
|
||||||
oldTypes "github.com/demodesk/neko/internal/http/legacy/types"
|
oldTypes "m1k1o/neko/internal/http/legacy/types"
|
||||||
|
|
||||||
"github.com/demodesk/neko/internal/plugins/chat"
|
"m1k1o/neko/internal/plugins/chat"
|
||||||
"github.com/demodesk/neko/internal/plugins/filetransfer"
|
"m1k1o/neko/internal/plugins/filetransfer"
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
"github.com/demodesk/neko/pkg/types/event"
|
"m1k1o/neko/pkg/types/event"
|
||||||
"github.com/demodesk/neko/pkg/types/message"
|
"m1k1o/neko/pkg/types/message"
|
||||||
)
|
)
|
||||||
|
|
||||||
func profileToMember(id string, profile types.MemberProfile) (*oldTypes.Member, error) {
|
func profileToMember(id string, profile types.MemberProfile) (*oldTypes.Member, error) {
|
||||||
|
|
|
@ -8,8 +8,8 @@ import (
|
||||||
"github.com/go-chi/chi/middleware"
|
"github.com/go-chi/chi/middleware"
|
||||||
"github.com/rs/zerolog"
|
"github.com/rs/zerolog"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
"github.com/demodesk/neko/pkg/utils"
|
"m1k1o/neko/pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
type logFormatter struct {
|
type logFormatter struct {
|
||||||
|
|
|
@ -9,9 +9,9 @@ import (
|
||||||
"github.com/rs/zerolog"
|
"github.com/rs/zerolog"
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
|
|
||||||
"github.com/demodesk/neko/internal/config"
|
"m1k1o/neko/internal/config"
|
||||||
"github.com/demodesk/neko/internal/http/legacy"
|
"m1k1o/neko/internal/http/legacy"
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
type HttpManagerCtx struct {
|
type HttpManagerCtx struct {
|
||||||
|
|
|
@ -8,9 +8,9 @@ import (
|
||||||
"github.com/go-chi/cors"
|
"github.com/go-chi/cors"
|
||||||
"github.com/rs/zerolog"
|
"github.com/rs/zerolog"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/auth"
|
"m1k1o/neko/pkg/auth"
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
"github.com/demodesk/neko/pkg/utils"
|
"m1k1o/neko/pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
type RouterOption func(*router)
|
type RouterOption func(*router)
|
||||||
|
|
|
@ -7,7 +7,7 @@ import (
|
||||||
"io"
|
"io"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
func New(config Config) types.MemberProvider {
|
func New(config Config) types.MemberProvider {
|
||||||
|
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/utils"
|
"m1k1o/neko/pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Ensure that hashes are the same after encoding and decoding using json
|
// Ensure that hashes are the same after encoding and decoding using json
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package file
|
package file
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
type MemberEntry struct {
|
type MemberEntry struct {
|
||||||
|
|
|
@ -7,12 +7,12 @@ import (
|
||||||
"github.com/rs/zerolog"
|
"github.com/rs/zerolog"
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
|
|
||||||
"github.com/demodesk/neko/internal/config"
|
"m1k1o/neko/internal/config"
|
||||||
"github.com/demodesk/neko/internal/member/file"
|
"m1k1o/neko/internal/member/file"
|
||||||
"github.com/demodesk/neko/internal/member/multiuser"
|
"m1k1o/neko/internal/member/multiuser"
|
||||||
"github.com/demodesk/neko/internal/member/noauth"
|
"m1k1o/neko/internal/member/noauth"
|
||||||
"github.com/demodesk/neko/internal/member/object"
|
"m1k1o/neko/internal/member/object"
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
func New(sessions types.SessionManager, config *config.Member) *MemberManagerCtx {
|
func New(sessions types.SessionManager, config *config.Member) *MemberManagerCtx {
|
||||||
|
|
|
@ -4,8 +4,8 @@ import (
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
"github.com/demodesk/neko/pkg/utils"
|
"m1k1o/neko/pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func New(config Config) types.MemberProvider {
|
func New(config Config) types.MemberProvider {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package multiuser
|
package multiuser
|
||||||
|
|
||||||
import "github.com/demodesk/neko/pkg/types"
|
import "m1k1o/neko/pkg/types"
|
||||||
|
|
||||||
type Config struct {
|
type Config struct {
|
||||||
AdminPassword string
|
AdminPassword string
|
||||||
|
|
|
@ -4,8 +4,8 @@ import (
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
"github.com/demodesk/neko/pkg/utils"
|
"m1k1o/neko/pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func New() types.MemberProvider {
|
func New() types.MemberProvider {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package object
|
package object
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
func New(config Config) types.MemberProvider {
|
func New(config Config) types.MemberProvider {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package object
|
package object
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
type memberEntry struct {
|
type memberEntry struct {
|
||||||
|
|
|
@ -10,9 +10,9 @@ import (
|
||||||
"github.com/rs/zerolog"
|
"github.com/rs/zerolog"
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/auth"
|
"m1k1o/neko/pkg/auth"
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
"github.com/demodesk/neko/pkg/utils"
|
"m1k1o/neko/pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func NewManager(
|
func NewManager(
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package chat
|
package chat
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Plugin struct {
|
type Plugin struct {
|
||||||
|
|
|
@ -5,7 +5,7 @@ import (
|
||||||
|
|
||||||
"github.com/rs/zerolog"
|
"github.com/rs/zerolog"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
type dependency struct {
|
type dependency struct {
|
||||||
|
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"reflect"
|
"reflect"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Test_deps_addPlugin(t *testing.T) {
|
func Test_deps_addPlugin(t *testing.T) {
|
||||||
|
|
|
@ -11,9 +11,10 @@ import (
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/auth"
|
"m1k1o/neko/pkg/auth"
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
"github.com/demodesk/neko/pkg/utils"
|
"m1k1o/neko/pkg/utils"
|
||||||
|
|
||||||
"github.com/fsnotify/fsnotify"
|
"github.com/fsnotify/fsnotify"
|
||||||
"github.com/rs/zerolog"
|
"github.com/rs/zerolog"
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package filetransfer
|
package filetransfer
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Plugin struct {
|
type Plugin struct {
|
||||||
|
|
|
@ -10,10 +10,10 @@ import (
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
"github.com/demodesk/neko/internal/config"
|
"m1k1o/neko/internal/config"
|
||||||
"github.com/demodesk/neko/internal/plugins/chat"
|
"m1k1o/neko/internal/plugins/chat"
|
||||||
"github.com/demodesk/neko/internal/plugins/filetransfer"
|
"m1k1o/neko/internal/plugins/filetransfer"
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ManagerCtx struct {
|
type ManagerCtx struct {
|
||||||
|
|
|
@ -6,7 +6,7 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (manager *SessionManagerCtx) CookieSetToken(w http.ResponseWriter, token string) {
|
func (manager *SessionManagerCtx) CookieSetToken(w http.ResponseWriter, token string) {
|
||||||
|
|
|
@ -9,9 +9,9 @@ import (
|
||||||
"github.com/rs/zerolog"
|
"github.com/rs/zerolog"
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
|
|
||||||
"github.com/demodesk/neko/internal/config"
|
"m1k1o/neko/internal/config"
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
"github.com/demodesk/neko/pkg/utils"
|
"m1k1o/neko/pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func New(config *config.Session) *SessionManagerCtx {
|
func New(config *config.Session) *SessionManagerCtx {
|
||||||
|
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"errors"
|
"errors"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (manager *SessionManagerCtx) save() {
|
func (manager *SessionManagerCtx) save() {
|
||||||
|
|
|
@ -6,8 +6,8 @@ import (
|
||||||
|
|
||||||
"github.com/rs/zerolog"
|
"github.com/rs/zerolog"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
"github.com/demodesk/neko/pkg/types/event"
|
"m1k1o/neko/pkg/types/event"
|
||||||
)
|
)
|
||||||
|
|
||||||
// client is expected to reconnect within 5 second
|
// client is expected to reconnect within 5 second
|
||||||
|
|
|
@ -6,8 +6,8 @@ import (
|
||||||
|
|
||||||
"github.com/rs/zerolog"
|
"github.com/rs/zerolog"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
"github.com/demodesk/neko/pkg/utils"
|
"m1k1o/neko/pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ImageListener interface {
|
type ImageListener interface {
|
||||||
|
|
|
@ -6,8 +6,9 @@ import (
|
||||||
"math"
|
"math"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/demodesk/neko/internal/webrtc/payload"
|
"m1k1o/neko/internal/webrtc/payload"
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
|
|
||||||
"github.com/pion/webrtc/v3"
|
"github.com/pion/webrtc/v3"
|
||||||
"github.com/rs/zerolog"
|
"github.com/rs/zerolog"
|
||||||
)
|
)
|
||||||
|
|
|
@ -5,7 +5,8 @@ import (
|
||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
|
|
||||||
"github.com/rs/zerolog"
|
"github.com/rs/zerolog"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -17,14 +17,14 @@ import (
|
||||||
"github.com/rs/zerolog"
|
"github.com/rs/zerolog"
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
|
|
||||||
"github.com/demodesk/neko/internal/config"
|
"m1k1o/neko/internal/config"
|
||||||
"github.com/demodesk/neko/internal/webrtc/cursor"
|
"m1k1o/neko/internal/webrtc/cursor"
|
||||||
"github.com/demodesk/neko/internal/webrtc/pionlog"
|
"m1k1o/neko/internal/webrtc/pionlog"
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
"github.com/demodesk/neko/pkg/types/codec"
|
"m1k1o/neko/pkg/types/codec"
|
||||||
"github.com/demodesk/neko/pkg/types/event"
|
"m1k1o/neko/pkg/types/event"
|
||||||
"github.com/demodesk/neko/pkg/types/message"
|
"m1k1o/neko/pkg/types/message"
|
||||||
"github.com/demodesk/neko/pkg/utils"
|
"m1k1o/neko/pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -4,7 +4,8 @@ import (
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
|
|
||||||
"github.com/pion/rtcp"
|
"github.com/pion/rtcp"
|
||||||
"github.com/pion/webrtc/v3"
|
"github.com/pion/webrtc/v3"
|
||||||
"github.com/prometheus/client_golang/prometheus"
|
"github.com/prometheus/client_golang/prometheus"
|
||||||
|
|
|
@ -11,11 +11,11 @@ import (
|
||||||
"github.com/pion/webrtc/v3"
|
"github.com/pion/webrtc/v3"
|
||||||
"github.com/rs/zerolog"
|
"github.com/rs/zerolog"
|
||||||
|
|
||||||
"github.com/demodesk/neko/internal/config"
|
"m1k1o/neko/internal/config"
|
||||||
"github.com/demodesk/neko/internal/webrtc/payload"
|
"m1k1o/neko/internal/webrtc/payload"
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
"github.com/demodesk/neko/pkg/types/event"
|
"m1k1o/neko/pkg/types/event"
|
||||||
"github.com/demodesk/neko/pkg/utils"
|
"m1k1o/neko/pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
type WebRTCPeerCtx struct {
|
type WebRTCPeerCtx struct {
|
||||||
|
|
|
@ -10,8 +10,8 @@ import (
|
||||||
"github.com/pion/webrtc/v3/pkg/media"
|
"github.com/pion/webrtc/v3/pkg/media"
|
||||||
"github.com/rs/zerolog"
|
"github.com/rs/zerolog"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
"github.com/demodesk/neko/pkg/types/codec"
|
"m1k1o/neko/pkg/types/codec"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Track struct {
|
type Track struct {
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
package websocket
|
package websocket
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
"github.com/demodesk/neko/pkg/types/event"
|
"m1k1o/neko/pkg/types/event"
|
||||||
"github.com/demodesk/neko/pkg/types/message"
|
"m1k1o/neko/pkg/types/message"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (manager *WebSocketManagerCtx) fileChooserDialogEvents() {
|
func (manager *WebSocketManagerCtx) fileChooserDialogEvents() {
|
||||||
|
|
|
@ -3,8 +3,8 @@ package handler
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
"github.com/demodesk/neko/pkg/types/message"
|
"m1k1o/neko/pkg/types/message"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (h *MessageHandlerCtx) clipboardSet(session types.Session, payload *message.ClipboardData) error {
|
func (h *MessageHandlerCtx) clipboardSet(session types.Session, payload *message.ClipboardData) error {
|
||||||
|
|
|
@ -3,10 +3,10 @@ package handler
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
"github.com/demodesk/neko/pkg/types/event"
|
"m1k1o/neko/pkg/types/event"
|
||||||
"github.com/demodesk/neko/pkg/types/message"
|
"m1k1o/neko/pkg/types/message"
|
||||||
"github.com/demodesk/neko/pkg/xorg"
|
"m1k1o/neko/pkg/xorg"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -4,10 +4,10 @@ import (
|
||||||
"github.com/rs/zerolog"
|
"github.com/rs/zerolog"
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
"github.com/demodesk/neko/pkg/types/event"
|
"m1k1o/neko/pkg/types/event"
|
||||||
"github.com/demodesk/neko/pkg/types/message"
|
"m1k1o/neko/pkg/types/message"
|
||||||
"github.com/demodesk/neko/pkg/utils"
|
"m1k1o/neko/pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func New(
|
func New(
|
||||||
|
|
|
@ -3,8 +3,8 @@ package handler
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
"github.com/demodesk/neko/pkg/types/message"
|
"m1k1o/neko/pkg/types/message"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (h *MessageHandlerCtx) keyboardMap(session types.Session, payload *message.KeyboardMap) error {
|
func (h *MessageHandlerCtx) keyboardMap(session types.Session, payload *message.KeyboardMap) error {
|
||||||
|
|
|
@ -3,9 +3,9 @@ package handler
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
"github.com/demodesk/neko/pkg/types/event"
|
"m1k1o/neko/pkg/types/event"
|
||||||
"github.com/demodesk/neko/pkg/types/message"
|
"m1k1o/neko/pkg/types/message"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (h *MessageHandlerCtx) screenSet(session types.Session, payload *message.ScreenSize) error {
|
func (h *MessageHandlerCtx) screenSet(session types.Session, payload *message.ScreenSize) error {
|
||||||
|
|
|
@ -3,9 +3,9 @@ package handler
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
"github.com/demodesk/neko/pkg/types/event"
|
"m1k1o/neko/pkg/types/event"
|
||||||
"github.com/demodesk/neko/pkg/types/message"
|
"m1k1o/neko/pkg/types/message"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (h *MessageHandlerCtx) sendUnicast(session types.Session, payload *message.SendUnicast) error {
|
func (h *MessageHandlerCtx) sendUnicast(session types.Session, payload *message.SendUnicast) error {
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
package handler
|
package handler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
"github.com/demodesk/neko/pkg/types/event"
|
"m1k1o/neko/pkg/types/event"
|
||||||
"github.com/demodesk/neko/pkg/types/message"
|
"m1k1o/neko/pkg/types/message"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (h *MessageHandlerCtx) SessionCreated(session types.Session) error {
|
func (h *MessageHandlerCtx) SessionCreated(session types.Session) error {
|
||||||
|
|
|
@ -3,9 +3,10 @@ package handler
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
"github.com/demodesk/neko/pkg/types/event"
|
"m1k1o/neko/pkg/types/event"
|
||||||
"github.com/demodesk/neko/pkg/types/message"
|
"m1k1o/neko/pkg/types/message"
|
||||||
|
|
||||||
"github.com/pion/webrtc/v3"
|
"github.com/pion/webrtc/v3"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -4,9 +4,9 @@ import (
|
||||||
"github.com/rs/zerolog"
|
"github.com/rs/zerolog"
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
"github.com/demodesk/neko/pkg/types/event"
|
"m1k1o/neko/pkg/types/event"
|
||||||
"github.com/demodesk/neko/pkg/types/message"
|
"m1k1o/neko/pkg/types/message"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (h *MessageHandlerCtx) systemInit(session types.Session) error {
|
func (h *MessageHandlerCtx) systemInit(session types.Session) error {
|
||||||
|
|
|
@ -11,11 +11,11 @@ import (
|
||||||
"github.com/rs/zerolog"
|
"github.com/rs/zerolog"
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
|
|
||||||
"github.com/demodesk/neko/internal/websocket/handler"
|
"m1k1o/neko/internal/websocket/handler"
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
"github.com/demodesk/neko/pkg/types/event"
|
"m1k1o/neko/pkg/types/event"
|
||||||
"github.com/demodesk/neko/pkg/types/message"
|
"m1k1o/neko/pkg/types/message"
|
||||||
"github.com/demodesk/neko/pkg/utils"
|
"m1k1o/neko/pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
// send pings to peer with this period - must be less than pongWait
|
// send pings to peer with this period - must be less than pongWait
|
||||||
|
|
|
@ -8,10 +8,10 @@ import (
|
||||||
"github.com/gorilla/websocket"
|
"github.com/gorilla/websocket"
|
||||||
"github.com/rs/zerolog"
|
"github.com/rs/zerolog"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
"github.com/demodesk/neko/pkg/types/event"
|
"m1k1o/neko/pkg/types/event"
|
||||||
"github.com/demodesk/neko/pkg/types/message"
|
"m1k1o/neko/pkg/types/message"
|
||||||
"github.com/demodesk/neko/pkg/utils"
|
"m1k1o/neko/pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
type WebSocketPeerCtx struct {
|
type WebSocketPeerCtx struct {
|
||||||
|
|
|
@ -5,8 +5,8 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
"github.com/demodesk/neko/pkg/utils"
|
"m1k1o/neko/pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
type key int
|
type key int
|
||||||
|
|
|
@ -6,9 +6,9 @@ import (
|
||||||
"reflect"
|
"reflect"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/demodesk/neko/internal/config"
|
"m1k1o/neko/internal/config"
|
||||||
"github.com/demodesk/neko/internal/session"
|
"m1k1o/neko/internal/session"
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
var i = 0
|
var i = 0
|
||||||
|
|
|
@ -16,7 +16,7 @@ import (
|
||||||
"github.com/rs/zerolog"
|
"github.com/rs/zerolog"
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -8,8 +8,9 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"m1k1o/neko/pkg/types/codec"
|
||||||
|
|
||||||
"github.com/PaesslerAG/gval"
|
"github.com/PaesslerAG/gval"
|
||||||
"github.com/demodesk/neko/pkg/types/codec"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -3,7 +3,7 @@ package message
|
||||||
import (
|
import (
|
||||||
"github.com/pion/webrtc/v3"
|
"github.com/pion/webrtc/v3"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
/////////////////////////////
|
/////////////////////////////
|
||||||
|
|
|
@ -5,7 +5,8 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/utils"
|
"m1k1o/neko/pkg/utils"
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ import (
|
||||||
"time"
|
"time"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
|
|
||||||
"github.com/demodesk/neko/pkg/types"
|
"m1k1o/neko/pkg/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
//go:generate ./keysymdef.sh
|
//go:generate ./keysymdef.sh
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
# xf86-input-neko
|
# xf86-input-neko
|
||||||
[X.org](https://x.org/) [neko](http://github.com/demodesk/neko) input driver
|
[X.org](https://x.org/) [neko](http://m1k1o/neko) input driver
|
||||||
|
|
||||||
### how to use
|
### how to use
|
||||||
xf86-input-neko assumes you have only one virtual touchscreen device available, see
|
xf86-input-neko assumes you have only one virtual touchscreen device available, see
|
||||||
`80-neko.conf`. If there are multiple in your system, please specify one config
|
`80-neko.conf`. If there are multiple in your system, please specify one config
|
||||||
section for each.
|
section for each.
|
||||||
xf86-input-neko aims to make [neko](http://github.com/demodesk/neko) easy to use and doesn't
|
xf86-input-neko aims to make [neko](http://m1k1o/neko) easy to use and doesn't
|
||||||
offer special configuration options.
|
offer special configuration options.
|
||||||
|
|
||||||
* `./configure --prefix=/usr`
|
* `./configure --prefix=/usr`
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
# Process this file with autoconf to produce a configure script
|
# Process this file with autoconf to produce a configure script
|
||||||
|
|
||||||
AC_PREREQ(2.59)
|
AC_PREREQ(2.59)
|
||||||
AC_INIT([xf86-input-neko],[0.0.1],[https://github.com/demodesk/neko/issues],[xf86-input-neko],[https://github.com/demodesk/neko])
|
AC_INIT([xf86-input-neko],[0.0.1],[https://github.com/m1k1o/neko/issues],[xf86-input-neko],[https://github.com/m1k1o/neko])
|
||||||
|
|
||||||
AC_CONFIG_SRCDIR([Makefile.am])
|
AC_CONFIG_SRCDIR([Makefile.am])
|
||||||
AC_CONFIG_AUX_DIR(.)
|
AC_CONFIG_AUX_DIR(.)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue