mirror of
https://github.com/m1k1o/neko.git
synced 2025-04-28 09:56:20 +02:00
rename package to github name.
This commit is contained in:
parent
9f480f5581
commit
51bbad7650
95 changed files with 250 additions and 250 deletions
|
@ -5,9 +5,9 @@ import (
|
|||
|
||||
"github.com/rs/zerolog/log"
|
||||
|
||||
"m1k1o/neko"
|
||||
"m1k1o/neko/cmd"
|
||||
"m1k1o/neko/pkg/utils"
|
||||
neko "github.com/m1k1o/neko/server"
|
||||
"github.com/m1k1o/neko/server/cmd"
|
||||
"github.com/m1k1o/neko/server/pkg/utils"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
@ -4,8 +4,8 @@ import (
|
|||
"encoding/json"
|
||||
"os"
|
||||
|
||||
"m1k1o/neko/internal/config"
|
||||
"m1k1o/neko/internal/plugins"
|
||||
"github.com/m1k1o/neko/server/internal/config"
|
||||
"github.com/m1k1o/neko/server/internal/plugins"
|
||||
|
||||
"github.com/rs/zerolog/log"
|
||||
"github.com/spf13/cobra"
|
||||
|
|
|
@ -15,8 +15,8 @@ import (
|
|||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/viper"
|
||||
|
||||
"m1k1o/neko"
|
||||
"m1k1o/neko/internal/config"
|
||||
neko "github.com/m1k1o/neko/server"
|
||||
"github.com/m1k1o/neko/server/internal/config"
|
||||
)
|
||||
|
||||
func Execute() error {
|
||||
|
|
|
@ -9,16 +9,16 @@ import (
|
|||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/viper"
|
||||
|
||||
"m1k1o/neko/internal/api"
|
||||
"m1k1o/neko/internal/capture"
|
||||
"m1k1o/neko/internal/config"
|
||||
"m1k1o/neko/internal/desktop"
|
||||
"m1k1o/neko/internal/http"
|
||||
"m1k1o/neko/internal/member"
|
||||
"m1k1o/neko/internal/plugins"
|
||||
"m1k1o/neko/internal/session"
|
||||
"m1k1o/neko/internal/webrtc"
|
||||
"m1k1o/neko/internal/websocket"
|
||||
"github.com/m1k1o/neko/server/internal/api"
|
||||
"github.com/m1k1o/neko/server/internal/capture"
|
||||
"github.com/m1k1o/neko/server/internal/config"
|
||||
"github.com/m1k1o/neko/server/internal/desktop"
|
||||
"github.com/m1k1o/neko/server/internal/http"
|
||||
"github.com/m1k1o/neko/server/internal/member"
|
||||
"github.com/m1k1o/neko/server/internal/plugins"
|
||||
"github.com/m1k1o/neko/server/internal/session"
|
||||
"github.com/m1k1o/neko/server/internal/webrtc"
|
||||
"github.com/m1k1o/neko/server/internal/websocket"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module m1k1o/neko
|
||||
module github.com/m1k1o/neko/server
|
||||
|
||||
go 1.21
|
||||
|
||||
|
|
|
@ -5,8 +5,8 @@ import (
|
|||
"io"
|
||||
"net/http"
|
||||
|
||||
"m1k1o/neko/pkg/types"
|
||||
"m1k1o/neko/pkg/utils"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/utils"
|
||||
)
|
||||
|
||||
type MemberBulkUpdatePayload struct {
|
||||
|
|
|
@ -5,8 +5,8 @@ import (
|
|||
"net/http"
|
||||
"strconv"
|
||||
|
||||
"m1k1o/neko/pkg/types"
|
||||
"m1k1o/neko/pkg/utils"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/utils"
|
||||
)
|
||||
|
||||
type MemberDataPayload struct {
|
||||
|
|
|
@ -7,9 +7,9 @@ import (
|
|||
|
||||
"github.com/go-chi/chi"
|
||||
|
||||
"m1k1o/neko/pkg/auth"
|
||||
"m1k1o/neko/pkg/types"
|
||||
"m1k1o/neko/pkg/utils"
|
||||
"github.com/m1k1o/neko/server/pkg/auth"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/utils"
|
||||
)
|
||||
|
||||
type key int
|
||||
|
|
|
@ -3,9 +3,9 @@ package room
|
|||
import (
|
||||
"net/http"
|
||||
|
||||
"m1k1o/neko/pkg/types/event"
|
||||
"m1k1o/neko/pkg/types/message"
|
||||
"m1k1o/neko/pkg/utils"
|
||||
"github.com/m1k1o/neko/server/pkg/types/event"
|
||||
"github.com/m1k1o/neko/server/pkg/types/message"
|
||||
"github.com/m1k1o/neko/server/pkg/utils"
|
||||
)
|
||||
|
||||
type BroadcastStatusPayload struct {
|
||||
|
|
|
@ -7,8 +7,8 @@ import (
|
|||
|
||||
"net/http"
|
||||
|
||||
"m1k1o/neko/pkg/types"
|
||||
"m1k1o/neko/pkg/utils"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/utils"
|
||||
)
|
||||
|
||||
type ClipboardPayload struct {
|
||||
|
|
|
@ -5,10 +5,10 @@ import (
|
|||
|
||||
"github.com/go-chi/chi"
|
||||
|
||||
"m1k1o/neko/pkg/auth"
|
||||
"m1k1o/neko/pkg/types/event"
|
||||
"m1k1o/neko/pkg/types/message"
|
||||
"m1k1o/neko/pkg/utils"
|
||||
"github.com/m1k1o/neko/server/pkg/auth"
|
||||
"github.com/m1k1o/neko/server/pkg/types/event"
|
||||
"github.com/m1k1o/neko/server/pkg/types/message"
|
||||
"github.com/m1k1o/neko/server/pkg/utils"
|
||||
)
|
||||
|
||||
type ControlStatusPayload struct {
|
||||
|
|
|
@ -6,9 +6,9 @@ import (
|
|||
|
||||
"github.com/rs/zerolog/log"
|
||||
|
||||
"m1k1o/neko/pkg/auth"
|
||||
"m1k1o/neko/pkg/types"
|
||||
"m1k1o/neko/pkg/utils"
|
||||
"github.com/m1k1o/neko/server/pkg/auth"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/utils"
|
||||
)
|
||||
|
||||
type RoomHandler struct {
|
||||
|
|
|
@ -3,8 +3,8 @@ package room
|
|||
import (
|
||||
"net/http"
|
||||
|
||||
"m1k1o/neko/pkg/types"
|
||||
"m1k1o/neko/pkg/utils"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/utils"
|
||||
)
|
||||
|
||||
func (h *RoomHandler) keyboardMapSet(w http.ResponseWriter, r *http.Request) error {
|
||||
|
|
|
@ -4,11 +4,11 @@ import (
|
|||
"net/http"
|
||||
"strconv"
|
||||
|
||||
"m1k1o/neko/pkg/auth"
|
||||
"m1k1o/neko/pkg/types"
|
||||
"m1k1o/neko/pkg/types/event"
|
||||
"m1k1o/neko/pkg/types/message"
|
||||
"m1k1o/neko/pkg/utils"
|
||||
"github.com/m1k1o/neko/server/pkg/auth"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/types/event"
|
||||
"github.com/m1k1o/neko/server/pkg/types/message"
|
||||
"github.com/m1k1o/neko/server/pkg/utils"
|
||||
)
|
||||
|
||||
func (h *RoomHandler) screenConfiguration(w http.ResponseWriter, r *http.Request) error {
|
||||
|
|
|
@ -5,9 +5,9 @@ import (
|
|||
"io"
|
||||
"net/http"
|
||||
|
||||
"m1k1o/neko/pkg/auth"
|
||||
"m1k1o/neko/pkg/types"
|
||||
"m1k1o/neko/pkg/utils"
|
||||
"github.com/m1k1o/neko/server/pkg/auth"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/utils"
|
||||
)
|
||||
|
||||
func (h *RoomHandler) settingsGet(w http.ResponseWriter, r *http.Request) error {
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
"path"
|
||||
"strconv"
|
||||
|
||||
"m1k1o/neko/pkg/utils"
|
||||
"github.com/m1k1o/neko/server/pkg/utils"
|
||||
)
|
||||
|
||||
// TODO: Extract file uploading to custom utility.
|
||||
|
|
|
@ -5,12 +5,12 @@ import (
|
|||
"errors"
|
||||
"net/http"
|
||||
|
||||
"m1k1o/neko/internal/api/members"
|
||||
"m1k1o/neko/internal/api/room"
|
||||
"m1k1o/neko/internal/api/sessions"
|
||||
"m1k1o/neko/pkg/auth"
|
||||
"m1k1o/neko/pkg/types"
|
||||
"m1k1o/neko/pkg/utils"
|
||||
"github.com/m1k1o/neko/server/internal/api/members"
|
||||
"github.com/m1k1o/neko/server/internal/api/room"
|
||||
"github.com/m1k1o/neko/server/internal/api/sessions"
|
||||
"github.com/m1k1o/neko/server/pkg/auth"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/utils"
|
||||
)
|
||||
|
||||
type ApiManagerCtx struct {
|
||||
|
|
|
@ -4,9 +4,9 @@ import (
|
|||
"errors"
|
||||
"net/http"
|
||||
|
||||
"m1k1o/neko/pkg/auth"
|
||||
"m1k1o/neko/pkg/types"
|
||||
"m1k1o/neko/pkg/utils"
|
||||
"github.com/m1k1o/neko/server/pkg/auth"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/utils"
|
||||
)
|
||||
|
||||
type SessionLoginPayload struct {
|
||||
|
|
|
@ -4,9 +4,9 @@ import (
|
|||
"errors"
|
||||
"net/http"
|
||||
|
||||
"m1k1o/neko/pkg/auth"
|
||||
"m1k1o/neko/pkg/types"
|
||||
"m1k1o/neko/pkg/utils"
|
||||
"github.com/m1k1o/neko/server/pkg/auth"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/utils"
|
||||
|
||||
"github.com/go-chi/chi"
|
||||
)
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
package sessions
|
||||
|
||||
import (
|
||||
"m1k1o/neko/pkg/auth"
|
||||
"m1k1o/neko/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/auth"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
)
|
||||
|
||||
type SessionsHandler struct {
|
||||
|
|
|
@ -8,8 +8,8 @@ import (
|
|||
"github.com/rs/zerolog"
|
||||
"github.com/rs/zerolog/log"
|
||||
|
||||
"m1k1o/neko/pkg/gst"
|
||||
"m1k1o/neko/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/gst"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
)
|
||||
|
||||
type BroacastManagerCtx struct {
|
||||
|
|
|
@ -8,9 +8,9 @@ import (
|
|||
"github.com/rs/zerolog"
|
||||
"github.com/rs/zerolog/log"
|
||||
|
||||
"m1k1o/neko/internal/config"
|
||||
"m1k1o/neko/pkg/types"
|
||||
"m1k1o/neko/pkg/types/codec"
|
||||
"github.com/m1k1o/neko/server/internal/config"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/types/codec"
|
||||
)
|
||||
|
||||
type CaptureManagerCtx struct {
|
||||
|
|
|
@ -11,8 +11,8 @@ import (
|
|||
"github.com/rs/zerolog"
|
||||
"github.com/rs/zerolog/log"
|
||||
|
||||
"m1k1o/neko/pkg/gst"
|
||||
"m1k1o/neko/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/gst"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
)
|
||||
|
||||
// timeout between intervals, when screencast pipeline is checked
|
||||
|
|
|
@ -7,8 +7,8 @@ import (
|
|||
"github.com/rs/zerolog"
|
||||
"github.com/rs/zerolog/log"
|
||||
|
||||
"m1k1o/neko/pkg/types"
|
||||
"m1k1o/neko/pkg/types/codec"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/types/codec"
|
||||
)
|
||||
|
||||
type StreamSelectorManagerCtx struct {
|
||||
|
|
|
@ -12,9 +12,9 @@ import (
|
|||
"github.com/rs/zerolog"
|
||||
"github.com/rs/zerolog/log"
|
||||
|
||||
"m1k1o/neko/pkg/gst"
|
||||
"m1k1o/neko/pkg/types"
|
||||
"m1k1o/neko/pkg/types/codec"
|
||||
"github.com/m1k1o/neko/server/pkg/gst"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/types/codec"
|
||||
)
|
||||
|
||||
var moveSinkListenerMu = sync.Mutex{}
|
||||
|
|
|
@ -9,9 +9,9 @@ import (
|
|||
"github.com/rs/zerolog"
|
||||
"github.com/rs/zerolog/log"
|
||||
|
||||
"m1k1o/neko/pkg/gst"
|
||||
"m1k1o/neko/pkg/types"
|
||||
"m1k1o/neko/pkg/types/codec"
|
||||
"github.com/m1k1o/neko/server/pkg/gst"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/types/codec"
|
||||
)
|
||||
|
||||
type StreamSrcManagerCtx struct {
|
||||
|
|
|
@ -9,9 +9,9 @@ import (
|
|||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/viper"
|
||||
|
||||
"m1k1o/neko/pkg/types"
|
||||
"m1k1o/neko/pkg/types/codec"
|
||||
"m1k1o/neko/pkg/utils"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/types/codec"
|
||||
"github.com/m1k1o/neko/server/pkg/utils"
|
||||
)
|
||||
|
||||
// Legacy capture configuration
|
||||
|
|
|
@ -5,8 +5,8 @@ import (
|
|||
"fmt"
|
||||
"strings"
|
||||
|
||||
"m1k1o/neko/pkg/gst"
|
||||
"m1k1o/neko/pkg/types/codec"
|
||||
"github.com/m1k1o/neko/server/pkg/gst"
|
||||
"github.com/m1k1o/neko/server/pkg/types/codec"
|
||||
)
|
||||
|
||||
/*
|
||||
|
|
|
@ -9,7 +9,7 @@ import (
|
|||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/viper"
|
||||
|
||||
"m1k1o/neko/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
)
|
||||
|
||||
type Desktop struct {
|
||||
|
|
|
@ -5,11 +5,11 @@ import (
|
|||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/viper"
|
||||
|
||||
"m1k1o/neko/internal/member/file"
|
||||
"m1k1o/neko/internal/member/multiuser"
|
||||
"m1k1o/neko/internal/member/object"
|
||||
"m1k1o/neko/pkg/types"
|
||||
"m1k1o/neko/pkg/utils"
|
||||
"github.com/m1k1o/neko/server/internal/member/file"
|
||||
"github.com/m1k1o/neko/server/internal/member/multiuser"
|
||||
"github.com/m1k1o/neko/server/internal/member/object"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/utils"
|
||||
)
|
||||
|
||||
type Member struct {
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/viper"
|
||||
|
||||
"m1k1o/neko/pkg/utils"
|
||||
"github.com/m1k1o/neko/server/pkg/utils"
|
||||
)
|
||||
|
||||
type Server struct {
|
||||
|
|
|
@ -10,8 +10,8 @@ import (
|
|||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/viper"
|
||||
|
||||
"m1k1o/neko/pkg/types"
|
||||
"m1k1o/neko/pkg/utils"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/utils"
|
||||
)
|
||||
|
||||
// default stun server
|
||||
|
|
|
@ -6,8 +6,8 @@ import (
|
|||
"os/exec"
|
||||
"strings"
|
||||
|
||||
"m1k1o/neko/pkg/types"
|
||||
"m1k1o/neko/pkg/xevent"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/xevent"
|
||||
)
|
||||
|
||||
func (manager *DesktopManagerCtx) ClipboardGetText() (*types.ClipboardText, error) {
|
||||
|
|
|
@ -3,7 +3,7 @@ package desktop
|
|||
import (
|
||||
"time"
|
||||
|
||||
"m1k1o/neko/pkg/drop"
|
||||
"github.com/m1k1o/neko/server/pkg/drop"
|
||||
)
|
||||
|
||||
// repeat move event multiple times
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"errors"
|
||||
"os/exec"
|
||||
|
||||
"m1k1o/neko/pkg/xorg"
|
||||
"github.com/m1k1o/neko/server/pkg/xorg"
|
||||
)
|
||||
|
||||
// name of the window that is being controlled
|
||||
|
|
|
@ -8,11 +8,11 @@ import (
|
|||
"github.com/rs/zerolog"
|
||||
"github.com/rs/zerolog/log"
|
||||
|
||||
"m1k1o/neko/internal/config"
|
||||
"m1k1o/neko/pkg/types"
|
||||
"m1k1o/neko/pkg/xevent"
|
||||
"m1k1o/neko/pkg/xinput"
|
||||
"m1k1o/neko/pkg/xorg"
|
||||
"github.com/m1k1o/neko/server/internal/config"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/xevent"
|
||||
"github.com/m1k1o/neko/server/pkg/xinput"
|
||||
"github.com/m1k1o/neko/server/pkg/xorg"
|
||||
)
|
||||
|
||||
var mu = sync.Mutex{}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package desktop
|
||||
|
||||
import (
|
||||
"m1k1o/neko/pkg/xevent"
|
||||
"github.com/m1k1o/neko/server/pkg/xevent"
|
||||
)
|
||||
|
||||
func (manager *DesktopManagerCtx) OnCursorChanged(listener func(serial uint64)) {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package desktop
|
||||
|
||||
import "m1k1o/neko/pkg/xinput"
|
||||
import "github.com/m1k1o/neko/server/pkg/xinput"
|
||||
|
||||
func (manager *DesktopManagerCtx) inputRelToAbs(x, y int) (int, int) {
|
||||
return (x * xinput.AbsX) / manager.screenSize.Width, (y * xinput.AbsY) / manager.screenSize.Height
|
||||
|
|
|
@ -6,8 +6,8 @@ import (
|
|||
"regexp"
|
||||
"time"
|
||||
|
||||
"m1k1o/neko/pkg/types"
|
||||
"m1k1o/neko/pkg/xorg"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/xorg"
|
||||
)
|
||||
|
||||
func (manager *DesktopManagerCtx) Move(x, y int) {
|
||||
|
|
|
@ -7,8 +7,8 @@ import (
|
|||
"net/http"
|
||||
"strings"
|
||||
|
||||
"m1k1o/neko/pkg/types"
|
||||
"m1k1o/neko/pkg/utils"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/utils"
|
||||
)
|
||||
|
||||
type BatchRequest struct {
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
|
||||
"github.com/go-chi/chi"
|
||||
|
||||
"m1k1o/neko/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
)
|
||||
|
||||
func pprofHandler(r types.Router) {
|
||||
|
|
|
@ -10,15 +10,15 @@ import (
|
|||
"net/url"
|
||||
"strings"
|
||||
|
||||
"m1k1o/neko/internal/api"
|
||||
oldEvent "m1k1o/neko/internal/http/legacy/event"
|
||||
oldMessage "m1k1o/neko/internal/http/legacy/message"
|
||||
oldTypes "m1k1o/neko/internal/http/legacy/types"
|
||||
"github.com/m1k1o/neko/server/internal/api"
|
||||
oldEvent "github.com/m1k1o/neko/server/internal/http/legacy/event"
|
||||
oldMessage "github.com/m1k1o/neko/server/internal/http/legacy/message"
|
||||
oldTypes "github.com/m1k1o/neko/server/internal/http/legacy/types"
|
||||
|
||||
"m1k1o/neko/pkg/types"
|
||||
"m1k1o/neko/pkg/types/event"
|
||||
"m1k1o/neko/pkg/types/message"
|
||||
"m1k1o/neko/pkg/utils"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/types/event"
|
||||
"github.com/m1k1o/neko/server/pkg/types/message"
|
||||
"github.com/m1k1o/neko/server/pkg/utils"
|
||||
|
||||
"github.com/gorilla/websocket"
|
||||
"github.com/rs/zerolog"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package message
|
||||
|
||||
import (
|
||||
"m1k1o/neko/internal/http/legacy/types"
|
||||
"github.com/m1k1o/neko/server/internal/http/legacy/types"
|
||||
|
||||
"github.com/pion/webrtc/v3"
|
||||
)
|
||||
|
|
|
@ -9,10 +9,10 @@ import (
|
|||
"strings"
|
||||
"sync"
|
||||
|
||||
oldTypes "m1k1o/neko/internal/http/legacy/types"
|
||||
oldTypes "github.com/m1k1o/neko/server/internal/http/legacy/types"
|
||||
|
||||
"m1k1o/neko/internal/api"
|
||||
"m1k1o/neko/pkg/types"
|
||||
"github.com/m1k1o/neko/server/internal/api"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
|
||||
"github.com/gorilla/websocket"
|
||||
"github.com/rs/zerolog"
|
||||
|
|
|
@ -7,15 +7,15 @@ import (
|
|||
|
||||
"github.com/pion/webrtc/v3"
|
||||
|
||||
oldEvent "m1k1o/neko/internal/http/legacy/event"
|
||||
oldMessage "m1k1o/neko/internal/http/legacy/message"
|
||||
oldEvent "github.com/m1k1o/neko/server/internal/http/legacy/event"
|
||||
oldMessage "github.com/m1k1o/neko/server/internal/http/legacy/message"
|
||||
|
||||
"m1k1o/neko/internal/api/room"
|
||||
"m1k1o/neko/internal/plugins/chat"
|
||||
"m1k1o/neko/internal/plugins/filetransfer"
|
||||
"m1k1o/neko/pkg/types"
|
||||
"m1k1o/neko/pkg/types/event"
|
||||
"m1k1o/neko/pkg/types/message"
|
||||
"github.com/m1k1o/neko/server/internal/api/room"
|
||||
"github.com/m1k1o/neko/server/internal/plugins/chat"
|
||||
"github.com/m1k1o/neko/server/internal/plugins/filetransfer"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/types/event"
|
||||
"github.com/m1k1o/neko/server/pkg/types/message"
|
||||
)
|
||||
|
||||
func (s *session) wsToBackend(msg []byte) error {
|
||||
|
|
|
@ -8,15 +8,15 @@ import (
|
|||
"github.com/pion/webrtc/v3"
|
||||
"github.com/spf13/viper"
|
||||
|
||||
oldEvent "m1k1o/neko/internal/http/legacy/event"
|
||||
oldMessage "m1k1o/neko/internal/http/legacy/message"
|
||||
oldTypes "m1k1o/neko/internal/http/legacy/types"
|
||||
oldEvent "github.com/m1k1o/neko/server/internal/http/legacy/event"
|
||||
oldMessage "github.com/m1k1o/neko/server/internal/http/legacy/message"
|
||||
oldTypes "github.com/m1k1o/neko/server/internal/http/legacy/types"
|
||||
|
||||
"m1k1o/neko/internal/plugins/chat"
|
||||
"m1k1o/neko/internal/plugins/filetransfer"
|
||||
"m1k1o/neko/pkg/types"
|
||||
"m1k1o/neko/pkg/types/event"
|
||||
"m1k1o/neko/pkg/types/message"
|
||||
"github.com/m1k1o/neko/server/internal/plugins/chat"
|
||||
"github.com/m1k1o/neko/server/internal/plugins/filetransfer"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/types/event"
|
||||
"github.com/m1k1o/neko/server/pkg/types/message"
|
||||
)
|
||||
|
||||
func profileToMember(id string, profile types.MemberProfile) (*oldTypes.Member, error) {
|
||||
|
|
|
@ -8,8 +8,8 @@ import (
|
|||
"github.com/go-chi/chi/middleware"
|
||||
"github.com/rs/zerolog"
|
||||
|
||||
"m1k1o/neko/pkg/types"
|
||||
"m1k1o/neko/pkg/utils"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/utils"
|
||||
)
|
||||
|
||||
type logFormatter struct {
|
||||
|
|
|
@ -10,9 +10,9 @@ import (
|
|||
"github.com/rs/zerolog/log"
|
||||
"github.com/spf13/viper"
|
||||
|
||||
"m1k1o/neko/internal/config"
|
||||
"m1k1o/neko/internal/http/legacy"
|
||||
"m1k1o/neko/pkg/types"
|
||||
"github.com/m1k1o/neko/server/internal/config"
|
||||
"github.com/m1k1o/neko/server/internal/http/legacy"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
)
|
||||
|
||||
type HttpManagerCtx struct {
|
||||
|
|
|
@ -8,9 +8,9 @@ import (
|
|||
"github.com/go-chi/cors"
|
||||
"github.com/rs/zerolog"
|
||||
|
||||
"m1k1o/neko/pkg/auth"
|
||||
"m1k1o/neko/pkg/types"
|
||||
"m1k1o/neko/pkg/utils"
|
||||
"github.com/m1k1o/neko/server/pkg/auth"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/utils"
|
||||
)
|
||||
|
||||
type RouterOption func(*router)
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
"io"
|
||||
"os"
|
||||
|
||||
"m1k1o/neko/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
)
|
||||
|
||||
func New(config Config) types.MemberProvider {
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"encoding/json"
|
||||
"testing"
|
||||
|
||||
"m1k1o/neko/pkg/utils"
|
||||
"github.com/m1k1o/neko/server/pkg/utils"
|
||||
)
|
||||
|
||||
// Ensure that hashes are the same after encoding and decoding using json
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package file
|
||||
|
||||
import (
|
||||
"m1k1o/neko/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
)
|
||||
|
||||
type MemberEntry struct {
|
||||
|
|
|
@ -7,12 +7,12 @@ import (
|
|||
"github.com/rs/zerolog"
|
||||
"github.com/rs/zerolog/log"
|
||||
|
||||
"m1k1o/neko/internal/config"
|
||||
"m1k1o/neko/internal/member/file"
|
||||
"m1k1o/neko/internal/member/multiuser"
|
||||
"m1k1o/neko/internal/member/noauth"
|
||||
"m1k1o/neko/internal/member/object"
|
||||
"m1k1o/neko/pkg/types"
|
||||
"github.com/m1k1o/neko/server/internal/config"
|
||||
"github.com/m1k1o/neko/server/internal/member/file"
|
||||
"github.com/m1k1o/neko/server/internal/member/multiuser"
|
||||
"github.com/m1k1o/neko/server/internal/member/noauth"
|
||||
"github.com/m1k1o/neko/server/internal/member/object"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
)
|
||||
|
||||
func New(sessions types.SessionManager, config *config.Member) *MemberManagerCtx {
|
||||
|
|
|
@ -4,8 +4,8 @@ import (
|
|||
"errors"
|
||||
"fmt"
|
||||
|
||||
"m1k1o/neko/pkg/types"
|
||||
"m1k1o/neko/pkg/utils"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/utils"
|
||||
)
|
||||
|
||||
func New(config Config) types.MemberProvider {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package multiuser
|
||||
|
||||
import "m1k1o/neko/pkg/types"
|
||||
import "github.com/m1k1o/neko/server/pkg/types"
|
||||
|
||||
type Config struct {
|
||||
AdminPassword string
|
||||
|
|
|
@ -4,8 +4,8 @@ import (
|
|||
"errors"
|
||||
"fmt"
|
||||
|
||||
"m1k1o/neko/pkg/types"
|
||||
"m1k1o/neko/pkg/utils"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/utils"
|
||||
)
|
||||
|
||||
func New() types.MemberProvider {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package object
|
||||
|
||||
import (
|
||||
"m1k1o/neko/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
)
|
||||
|
||||
func New(config Config) types.MemberProvider {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package object
|
||||
|
||||
import (
|
||||
"m1k1o/neko/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
)
|
||||
|
||||
type memberEntry struct {
|
||||
|
|
|
@ -10,9 +10,9 @@ import (
|
|||
"github.com/rs/zerolog"
|
||||
"github.com/rs/zerolog/log"
|
||||
|
||||
"m1k1o/neko/pkg/auth"
|
||||
"m1k1o/neko/pkg/types"
|
||||
"m1k1o/neko/pkg/utils"
|
||||
"github.com/m1k1o/neko/server/pkg/auth"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/utils"
|
||||
)
|
||||
|
||||
func NewManager(
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package chat
|
||||
|
||||
import (
|
||||
"m1k1o/neko/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
)
|
||||
|
||||
type Plugin struct {
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
|
||||
"github.com/rs/zerolog"
|
||||
|
||||
"m1k1o/neko/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
)
|
||||
|
||||
type dependency struct {
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"reflect"
|
||||
"testing"
|
||||
|
||||
"m1k1o/neko/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
)
|
||||
|
||||
func Test_deps_addPlugin(t *testing.T) {
|
||||
|
|
|
@ -11,9 +11,9 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
"m1k1o/neko/pkg/auth"
|
||||
"m1k1o/neko/pkg/types"
|
||||
"m1k1o/neko/pkg/utils"
|
||||
"github.com/m1k1o/neko/server/pkg/auth"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/utils"
|
||||
|
||||
"github.com/fsnotify/fsnotify"
|
||||
"github.com/rs/zerolog"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package filetransfer
|
||||
|
||||
import (
|
||||
"m1k1o/neko/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
)
|
||||
|
||||
type Plugin struct {
|
||||
|
|
|
@ -10,10 +10,10 @@ import (
|
|||
"github.com/rs/zerolog/log"
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"m1k1o/neko/internal/config"
|
||||
"m1k1o/neko/internal/plugins/chat"
|
||||
"m1k1o/neko/internal/plugins/filetransfer"
|
||||
"m1k1o/neko/pkg/types"
|
||||
"github.com/m1k1o/neko/server/internal/config"
|
||||
"github.com/m1k1o/neko/server/internal/plugins/chat"
|
||||
"github.com/m1k1o/neko/server/internal/plugins/filetransfer"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
)
|
||||
|
||||
type ManagerCtx struct {
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"m1k1o/neko/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
)
|
||||
|
||||
func (manager *SessionManagerCtx) CookieSetToken(w http.ResponseWriter, token string) {
|
||||
|
|
|
@ -10,9 +10,9 @@ import (
|
|||
"github.com/rs/zerolog"
|
||||
"github.com/rs/zerolog/log"
|
||||
|
||||
"m1k1o/neko/internal/config"
|
||||
"m1k1o/neko/pkg/types"
|
||||
"m1k1o/neko/pkg/utils"
|
||||
"github.com/m1k1o/neko/server/internal/config"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/utils"
|
||||
)
|
||||
|
||||
func New(config *config.Session) *SessionManagerCtx {
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"errors"
|
||||
"os"
|
||||
|
||||
"m1k1o/neko/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
)
|
||||
|
||||
func (manager *SessionManagerCtx) save() {
|
||||
|
|
|
@ -6,8 +6,8 @@ import (
|
|||
|
||||
"github.com/rs/zerolog"
|
||||
|
||||
"m1k1o/neko/pkg/types"
|
||||
"m1k1o/neko/pkg/types/event"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/types/event"
|
||||
)
|
||||
|
||||
// client is expected to reconnect within 5 second
|
||||
|
|
|
@ -6,8 +6,8 @@ import (
|
|||
|
||||
"github.com/rs/zerolog"
|
||||
|
||||
"m1k1o/neko/pkg/types"
|
||||
"m1k1o/neko/pkg/utils"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/utils"
|
||||
)
|
||||
|
||||
type ImageListener interface {
|
||||
|
|
|
@ -6,8 +6,8 @@ import (
|
|||
"math"
|
||||
"time"
|
||||
|
||||
"m1k1o/neko/internal/webrtc/payload"
|
||||
"m1k1o/neko/pkg/types"
|
||||
"github.com/m1k1o/neko/server/internal/webrtc/payload"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
|
||||
"github.com/pion/webrtc/v3"
|
||||
"github.com/rs/zerolog"
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"encoding/binary"
|
||||
"strconv"
|
||||
|
||||
"m1k1o/neko/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
|
||||
"github.com/rs/zerolog"
|
||||
)
|
||||
|
|
|
@ -18,14 +18,14 @@ import (
|
|||
"github.com/rs/zerolog/log"
|
||||
"github.com/spf13/viper"
|
||||
|
||||
"m1k1o/neko/internal/config"
|
||||
"m1k1o/neko/internal/webrtc/cursor"
|
||||
"m1k1o/neko/internal/webrtc/pionlog"
|
||||
"m1k1o/neko/pkg/types"
|
||||
"m1k1o/neko/pkg/types/codec"
|
||||
"m1k1o/neko/pkg/types/event"
|
||||
"m1k1o/neko/pkg/types/message"
|
||||
"m1k1o/neko/pkg/utils"
|
||||
"github.com/m1k1o/neko/server/internal/config"
|
||||
"github.com/m1k1o/neko/server/internal/webrtc/cursor"
|
||||
"github.com/m1k1o/neko/server/internal/webrtc/pionlog"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/types/codec"
|
||||
"github.com/m1k1o/neko/server/pkg/types/event"
|
||||
"github.com/m1k1o/neko/server/pkg/types/message"
|
||||
"github.com/m1k1o/neko/server/pkg/utils"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
"m1k1o/neko/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
|
||||
"github.com/pion/rtcp"
|
||||
"github.com/pion/webrtc/v3"
|
||||
|
|
|
@ -11,11 +11,11 @@ import (
|
|||
"github.com/pion/webrtc/v3"
|
||||
"github.com/rs/zerolog"
|
||||
|
||||
"m1k1o/neko/internal/config"
|
||||
"m1k1o/neko/internal/webrtc/payload"
|
||||
"m1k1o/neko/pkg/types"
|
||||
"m1k1o/neko/pkg/types/event"
|
||||
"m1k1o/neko/pkg/utils"
|
||||
"github.com/m1k1o/neko/server/internal/config"
|
||||
"github.com/m1k1o/neko/server/internal/webrtc/payload"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/types/event"
|
||||
"github.com/m1k1o/neko/server/pkg/utils"
|
||||
)
|
||||
|
||||
type WebRTCPeerCtx struct {
|
||||
|
|
|
@ -10,8 +10,8 @@ import (
|
|||
"github.com/pion/webrtc/v3/pkg/media"
|
||||
"github.com/rs/zerolog"
|
||||
|
||||
"m1k1o/neko/pkg/types"
|
||||
"m1k1o/neko/pkg/types/codec"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/types/codec"
|
||||
)
|
||||
|
||||
type Track struct {
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
package websocket
|
||||
|
||||
import (
|
||||
"m1k1o/neko/pkg/types"
|
||||
"m1k1o/neko/pkg/types/event"
|
||||
"m1k1o/neko/pkg/types/message"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/types/event"
|
||||
"github.com/m1k1o/neko/server/pkg/types/message"
|
||||
)
|
||||
|
||||
func (manager *WebSocketManagerCtx) fileChooserDialogEvents() {
|
||||
|
|
|
@ -3,8 +3,8 @@ package handler
|
|||
import (
|
||||
"errors"
|
||||
|
||||
"m1k1o/neko/pkg/types"
|
||||
"m1k1o/neko/pkg/types/message"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/types/message"
|
||||
)
|
||||
|
||||
func (h *MessageHandlerCtx) clipboardSet(session types.Session, payload *message.ClipboardData) error {
|
||||
|
|
|
@ -3,10 +3,10 @@ package handler
|
|||
import (
|
||||
"errors"
|
||||
|
||||
"m1k1o/neko/pkg/types"
|
||||
"m1k1o/neko/pkg/types/event"
|
||||
"m1k1o/neko/pkg/types/message"
|
||||
"m1k1o/neko/pkg/xorg"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/types/event"
|
||||
"github.com/m1k1o/neko/server/pkg/types/message"
|
||||
"github.com/m1k1o/neko/server/pkg/xorg"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -4,10 +4,10 @@ import (
|
|||
"github.com/rs/zerolog"
|
||||
"github.com/rs/zerolog/log"
|
||||
|
||||
"m1k1o/neko/pkg/types"
|
||||
"m1k1o/neko/pkg/types/event"
|
||||
"m1k1o/neko/pkg/types/message"
|
||||
"m1k1o/neko/pkg/utils"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/types/event"
|
||||
"github.com/m1k1o/neko/server/pkg/types/message"
|
||||
"github.com/m1k1o/neko/server/pkg/utils"
|
||||
)
|
||||
|
||||
func New(
|
||||
|
|
|
@ -3,8 +3,8 @@ package handler
|
|||
import (
|
||||
"errors"
|
||||
|
||||
"m1k1o/neko/pkg/types"
|
||||
"m1k1o/neko/pkg/types/message"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/types/message"
|
||||
)
|
||||
|
||||
func (h *MessageHandlerCtx) keyboardMap(session types.Session, payload *message.KeyboardMap) error {
|
||||
|
|
|
@ -3,9 +3,9 @@ package handler
|
|||
import (
|
||||
"errors"
|
||||
|
||||
"m1k1o/neko/pkg/types"
|
||||
"m1k1o/neko/pkg/types/event"
|
||||
"m1k1o/neko/pkg/types/message"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/types/event"
|
||||
"github.com/m1k1o/neko/server/pkg/types/message"
|
||||
)
|
||||
|
||||
func (h *MessageHandlerCtx) screenSet(session types.Session, payload *message.ScreenSize) error {
|
||||
|
|
|
@ -3,9 +3,9 @@ package handler
|
|||
import (
|
||||
"errors"
|
||||
|
||||
"m1k1o/neko/pkg/types"
|
||||
"m1k1o/neko/pkg/types/event"
|
||||
"m1k1o/neko/pkg/types/message"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/types/event"
|
||||
"github.com/m1k1o/neko/server/pkg/types/message"
|
||||
)
|
||||
|
||||
func (h *MessageHandlerCtx) sendUnicast(session types.Session, payload *message.SendUnicast) error {
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
package handler
|
||||
|
||||
import (
|
||||
"m1k1o/neko/pkg/types"
|
||||
"m1k1o/neko/pkg/types/event"
|
||||
"m1k1o/neko/pkg/types/message"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/types/event"
|
||||
"github.com/m1k1o/neko/server/pkg/types/message"
|
||||
)
|
||||
|
||||
func (h *MessageHandlerCtx) SessionCreated(session types.Session) error {
|
||||
|
|
|
@ -3,9 +3,9 @@ package handler
|
|||
import (
|
||||
"errors"
|
||||
|
||||
"m1k1o/neko/pkg/types"
|
||||
"m1k1o/neko/pkg/types/event"
|
||||
"m1k1o/neko/pkg/types/message"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/types/event"
|
||||
"github.com/m1k1o/neko/server/pkg/types/message"
|
||||
|
||||
"github.com/pion/webrtc/v3"
|
||||
)
|
||||
|
|
|
@ -4,9 +4,9 @@ import (
|
|||
"github.com/rs/zerolog"
|
||||
"github.com/rs/zerolog/log"
|
||||
|
||||
"m1k1o/neko/pkg/types"
|
||||
"m1k1o/neko/pkg/types/event"
|
||||
"m1k1o/neko/pkg/types/message"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/types/event"
|
||||
"github.com/m1k1o/neko/server/pkg/types/message"
|
||||
)
|
||||
|
||||
func (h *MessageHandlerCtx) systemInit(session types.Session) error {
|
||||
|
|
|
@ -11,11 +11,11 @@ import (
|
|||
"github.com/rs/zerolog"
|
||||
"github.com/rs/zerolog/log"
|
||||
|
||||
"m1k1o/neko/internal/websocket/handler"
|
||||
"m1k1o/neko/pkg/types"
|
||||
"m1k1o/neko/pkg/types/event"
|
||||
"m1k1o/neko/pkg/types/message"
|
||||
"m1k1o/neko/pkg/utils"
|
||||
"github.com/m1k1o/neko/server/internal/websocket/handler"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/types/event"
|
||||
"github.com/m1k1o/neko/server/pkg/types/message"
|
||||
"github.com/m1k1o/neko/server/pkg/utils"
|
||||
)
|
||||
|
||||
// send pings to peer with this period - must be less than pongWait
|
||||
|
|
|
@ -8,10 +8,10 @@ import (
|
|||
"github.com/gorilla/websocket"
|
||||
"github.com/rs/zerolog"
|
||||
|
||||
"m1k1o/neko/pkg/types"
|
||||
"m1k1o/neko/pkg/types/event"
|
||||
"m1k1o/neko/pkg/types/message"
|
||||
"m1k1o/neko/pkg/utils"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/types/event"
|
||||
"github.com/m1k1o/neko/server/pkg/types/message"
|
||||
"github.com/m1k1o/neko/server/pkg/utils"
|
||||
)
|
||||
|
||||
type WebSocketPeerCtx struct {
|
||||
|
|
|
@ -5,8 +5,8 @@ import (
|
|||
"fmt"
|
||||
"net/http"
|
||||
|
||||
"m1k1o/neko/pkg/types"
|
||||
"m1k1o/neko/pkg/utils"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/utils"
|
||||
)
|
||||
|
||||
type key int
|
||||
|
|
|
@ -6,9 +6,9 @@ import (
|
|||
"reflect"
|
||||
"testing"
|
||||
|
||||
"m1k1o/neko/internal/config"
|
||||
"m1k1o/neko/internal/session"
|
||||
"m1k1o/neko/pkg/types"
|
||||
"github.com/m1k1o/neko/server/internal/config"
|
||||
"github.com/m1k1o/neko/server/internal/session"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
)
|
||||
|
||||
var i = 0
|
||||
|
|
|
@ -16,7 +16,7 @@ import (
|
|||
"github.com/rs/zerolog"
|
||||
"github.com/rs/zerolog/log"
|
||||
|
||||
"m1k1o/neko/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"m1k1o/neko/pkg/types/codec"
|
||||
"github.com/m1k1o/neko/server/pkg/types/codec"
|
||||
|
||||
"github.com/PaesslerAG/gval"
|
||||
)
|
||||
|
|
|
@ -3,7 +3,7 @@ package message
|
|||
import (
|
||||
"github.com/pion/webrtc/v3"
|
||||
|
||||
"m1k1o/neko/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
)
|
||||
|
||||
/////////////////////////////
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"fmt"
|
||||
"strings"
|
||||
|
||||
"m1k1o/neko/pkg/utils"
|
||||
"github.com/m1k1o/neko/server/pkg/utils"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
|
|
@ -16,7 +16,7 @@ import (
|
|||
"time"
|
||||
"unsafe"
|
||||
|
||||
"m1k1o/neko/pkg/types"
|
||||
"github.com/m1k1o/neko/server/pkg/types"
|
||||
)
|
||||
|
||||
//go:generate ./keysymdef.sh
|
||||
|
|
Loading…
Add table
Reference in a new issue