rename package to github name.

This commit is contained in:
Miroslav Šedivý 2025-03-26 23:51:19 +01:00
parent 9f480f5581
commit 51bbad7650
95 changed files with 250 additions and 250 deletions

View file

@ -5,9 +5,9 @@ import (
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"m1k1o/neko" neko "github.com/m1k1o/neko/server"
"m1k1o/neko/cmd" "github.com/m1k1o/neko/server/cmd"
"m1k1o/neko/pkg/utils" "github.com/m1k1o/neko/server/pkg/utils"
) )
func main() { func main() {

View file

@ -4,8 +4,8 @@ import (
"encoding/json" "encoding/json"
"os" "os"
"m1k1o/neko/internal/config" "github.com/m1k1o/neko/server/internal/config"
"m1k1o/neko/internal/plugins" "github.com/m1k1o/neko/server/internal/plugins"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"github.com/spf13/cobra" "github.com/spf13/cobra"

View file

@ -15,8 +15,8 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/spf13/viper" "github.com/spf13/viper"
"m1k1o/neko" neko "github.com/m1k1o/neko/server"
"m1k1o/neko/internal/config" "github.com/m1k1o/neko/server/internal/config"
) )
func Execute() error { func Execute() error {

View file

@ -9,16 +9,16 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/spf13/viper" "github.com/spf13/viper"
"m1k1o/neko/internal/api" "github.com/m1k1o/neko/server/internal/api"
"m1k1o/neko/internal/capture" "github.com/m1k1o/neko/server/internal/capture"
"m1k1o/neko/internal/config" "github.com/m1k1o/neko/server/internal/config"
"m1k1o/neko/internal/desktop" "github.com/m1k1o/neko/server/internal/desktop"
"m1k1o/neko/internal/http" "github.com/m1k1o/neko/server/internal/http"
"m1k1o/neko/internal/member" "github.com/m1k1o/neko/server/internal/member"
"m1k1o/neko/internal/plugins" "github.com/m1k1o/neko/server/internal/plugins"
"m1k1o/neko/internal/session" "github.com/m1k1o/neko/server/internal/session"
"m1k1o/neko/internal/webrtc" "github.com/m1k1o/neko/server/internal/webrtc"
"m1k1o/neko/internal/websocket" "github.com/m1k1o/neko/server/internal/websocket"
) )
func init() { func init() {

View file

@ -1,4 +1,4 @@
module m1k1o/neko module github.com/m1k1o/neko/server
go 1.21 go 1.21

View file

@ -5,8 +5,8 @@ import (
"io" "io"
"net/http" "net/http"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"m1k1o/neko/pkg/utils" "github.com/m1k1o/neko/server/pkg/utils"
) )
type MemberBulkUpdatePayload struct { type MemberBulkUpdatePayload struct {

View file

@ -5,8 +5,8 @@ import (
"net/http" "net/http"
"strconv" "strconv"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"m1k1o/neko/pkg/utils" "github.com/m1k1o/neko/server/pkg/utils"
) )
type MemberDataPayload struct { type MemberDataPayload struct {

View file

@ -7,9 +7,9 @@ import (
"github.com/go-chi/chi" "github.com/go-chi/chi"
"m1k1o/neko/pkg/auth" "github.com/m1k1o/neko/server/pkg/auth"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"m1k1o/neko/pkg/utils" "github.com/m1k1o/neko/server/pkg/utils"
) )
type key int type key int

View file

@ -3,9 +3,9 @@ package room
import ( import (
"net/http" "net/http"
"m1k1o/neko/pkg/types/event" "github.com/m1k1o/neko/server/pkg/types/event"
"m1k1o/neko/pkg/types/message" "github.com/m1k1o/neko/server/pkg/types/message"
"m1k1o/neko/pkg/utils" "github.com/m1k1o/neko/server/pkg/utils"
) )
type BroadcastStatusPayload struct { type BroadcastStatusPayload struct {

View file

@ -7,8 +7,8 @@ import (
"net/http" "net/http"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"m1k1o/neko/pkg/utils" "github.com/m1k1o/neko/server/pkg/utils"
) )
type ClipboardPayload struct { type ClipboardPayload struct {

View file

@ -5,10 +5,10 @@ import (
"github.com/go-chi/chi" "github.com/go-chi/chi"
"m1k1o/neko/pkg/auth" "github.com/m1k1o/neko/server/pkg/auth"
"m1k1o/neko/pkg/types/event" "github.com/m1k1o/neko/server/pkg/types/event"
"m1k1o/neko/pkg/types/message" "github.com/m1k1o/neko/server/pkg/types/message"
"m1k1o/neko/pkg/utils" "github.com/m1k1o/neko/server/pkg/utils"
) )
type ControlStatusPayload struct { type ControlStatusPayload struct {

View file

@ -6,9 +6,9 @@ import (
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"m1k1o/neko/pkg/auth" "github.com/m1k1o/neko/server/pkg/auth"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"m1k1o/neko/pkg/utils" "github.com/m1k1o/neko/server/pkg/utils"
) )
type RoomHandler struct { type RoomHandler struct {

View file

@ -3,8 +3,8 @@ package room
import ( import (
"net/http" "net/http"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"m1k1o/neko/pkg/utils" "github.com/m1k1o/neko/server/pkg/utils"
) )
func (h *RoomHandler) keyboardMapSet(w http.ResponseWriter, r *http.Request) error { func (h *RoomHandler) keyboardMapSet(w http.ResponseWriter, r *http.Request) error {

View file

@ -4,11 +4,11 @@ import (
"net/http" "net/http"
"strconv" "strconv"
"m1k1o/neko/pkg/auth" "github.com/m1k1o/neko/server/pkg/auth"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"m1k1o/neko/pkg/types/event" "github.com/m1k1o/neko/server/pkg/types/event"
"m1k1o/neko/pkg/types/message" "github.com/m1k1o/neko/server/pkg/types/message"
"m1k1o/neko/pkg/utils" "github.com/m1k1o/neko/server/pkg/utils"
) )
func (h *RoomHandler) screenConfiguration(w http.ResponseWriter, r *http.Request) error { func (h *RoomHandler) screenConfiguration(w http.ResponseWriter, r *http.Request) error {

View file

@ -5,9 +5,9 @@ import (
"io" "io"
"net/http" "net/http"
"m1k1o/neko/pkg/auth" "github.com/m1k1o/neko/server/pkg/auth"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"m1k1o/neko/pkg/utils" "github.com/m1k1o/neko/server/pkg/utils"
) )
func (h *RoomHandler) settingsGet(w http.ResponseWriter, r *http.Request) error { func (h *RoomHandler) settingsGet(w http.ResponseWriter, r *http.Request) error {

View file

@ -7,7 +7,7 @@ import (
"path" "path"
"strconv" "strconv"
"m1k1o/neko/pkg/utils" "github.com/m1k1o/neko/server/pkg/utils"
) )
// TODO: Extract file uploading to custom utility. // TODO: Extract file uploading to custom utility.

View file

@ -5,12 +5,12 @@ import (
"errors" "errors"
"net/http" "net/http"
"m1k1o/neko/internal/api/members" "github.com/m1k1o/neko/server/internal/api/members"
"m1k1o/neko/internal/api/room" "github.com/m1k1o/neko/server/internal/api/room"
"m1k1o/neko/internal/api/sessions" "github.com/m1k1o/neko/server/internal/api/sessions"
"m1k1o/neko/pkg/auth" "github.com/m1k1o/neko/server/pkg/auth"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"m1k1o/neko/pkg/utils" "github.com/m1k1o/neko/server/pkg/utils"
) )
type ApiManagerCtx struct { type ApiManagerCtx struct {

View file

@ -4,9 +4,9 @@ import (
"errors" "errors"
"net/http" "net/http"
"m1k1o/neko/pkg/auth" "github.com/m1k1o/neko/server/pkg/auth"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"m1k1o/neko/pkg/utils" "github.com/m1k1o/neko/server/pkg/utils"
) )
type SessionLoginPayload struct { type SessionLoginPayload struct {

View file

@ -4,9 +4,9 @@ import (
"errors" "errors"
"net/http" "net/http"
"m1k1o/neko/pkg/auth" "github.com/m1k1o/neko/server/pkg/auth"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"m1k1o/neko/pkg/utils" "github.com/m1k1o/neko/server/pkg/utils"
"github.com/go-chi/chi" "github.com/go-chi/chi"
) )

View file

@ -1,8 +1,8 @@
package sessions package sessions
import ( import (
"m1k1o/neko/pkg/auth" "github.com/m1k1o/neko/server/pkg/auth"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
) )
type SessionsHandler struct { type SessionsHandler struct {

View file

@ -8,8 +8,8 @@ import (
"github.com/rs/zerolog" "github.com/rs/zerolog"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"m1k1o/neko/pkg/gst" "github.com/m1k1o/neko/server/pkg/gst"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
) )
type BroacastManagerCtx struct { type BroacastManagerCtx struct {

View file

@ -8,9 +8,9 @@ import (
"github.com/rs/zerolog" "github.com/rs/zerolog"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"m1k1o/neko/internal/config" "github.com/m1k1o/neko/server/internal/config"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"m1k1o/neko/pkg/types/codec" "github.com/m1k1o/neko/server/pkg/types/codec"
) )
type CaptureManagerCtx struct { type CaptureManagerCtx struct {

View file

@ -11,8 +11,8 @@ import (
"github.com/rs/zerolog" "github.com/rs/zerolog"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"m1k1o/neko/pkg/gst" "github.com/m1k1o/neko/server/pkg/gst"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
) )
// timeout between intervals, when screencast pipeline is checked // timeout between intervals, when screencast pipeline is checked

View file

@ -7,8 +7,8 @@ import (
"github.com/rs/zerolog" "github.com/rs/zerolog"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"m1k1o/neko/pkg/types/codec" "github.com/m1k1o/neko/server/pkg/types/codec"
) )
type StreamSelectorManagerCtx struct { type StreamSelectorManagerCtx struct {

View file

@ -12,9 +12,9 @@ import (
"github.com/rs/zerolog" "github.com/rs/zerolog"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"m1k1o/neko/pkg/gst" "github.com/m1k1o/neko/server/pkg/gst"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"m1k1o/neko/pkg/types/codec" "github.com/m1k1o/neko/server/pkg/types/codec"
) )
var moveSinkListenerMu = sync.Mutex{} var moveSinkListenerMu = sync.Mutex{}

View file

@ -9,9 +9,9 @@ import (
"github.com/rs/zerolog" "github.com/rs/zerolog"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"m1k1o/neko/pkg/gst" "github.com/m1k1o/neko/server/pkg/gst"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"m1k1o/neko/pkg/types/codec" "github.com/m1k1o/neko/server/pkg/types/codec"
) )
type StreamSrcManagerCtx struct { type StreamSrcManagerCtx struct {

View file

@ -9,9 +9,9 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/spf13/viper" "github.com/spf13/viper"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"m1k1o/neko/pkg/types/codec" "github.com/m1k1o/neko/server/pkg/types/codec"
"m1k1o/neko/pkg/utils" "github.com/m1k1o/neko/server/pkg/utils"
) )
// Legacy capture configuration // Legacy capture configuration

View file

@ -5,8 +5,8 @@ import (
"fmt" "fmt"
"strings" "strings"
"m1k1o/neko/pkg/gst" "github.com/m1k1o/neko/server/pkg/gst"
"m1k1o/neko/pkg/types/codec" "github.com/m1k1o/neko/server/pkg/types/codec"
) )
/* /*

View file

@ -9,7 +9,7 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/spf13/viper" "github.com/spf13/viper"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
) )
type Desktop struct { type Desktop struct {

View file

@ -5,11 +5,11 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/spf13/viper" "github.com/spf13/viper"
"m1k1o/neko/internal/member/file" "github.com/m1k1o/neko/server/internal/member/file"
"m1k1o/neko/internal/member/multiuser" "github.com/m1k1o/neko/server/internal/member/multiuser"
"m1k1o/neko/internal/member/object" "github.com/m1k1o/neko/server/internal/member/object"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"m1k1o/neko/pkg/utils" "github.com/m1k1o/neko/server/pkg/utils"
) )
type Member struct { type Member struct {

View file

@ -7,7 +7,7 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/spf13/viper" "github.com/spf13/viper"
"m1k1o/neko/pkg/utils" "github.com/m1k1o/neko/server/pkg/utils"
) )
type Server struct { type Server struct {

View file

@ -10,8 +10,8 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/spf13/viper" "github.com/spf13/viper"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"m1k1o/neko/pkg/utils" "github.com/m1k1o/neko/server/pkg/utils"
) )
// default stun server // default stun server

View file

@ -6,8 +6,8 @@ import (
"os/exec" "os/exec"
"strings" "strings"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"m1k1o/neko/pkg/xevent" "github.com/m1k1o/neko/server/pkg/xevent"
) )
func (manager *DesktopManagerCtx) ClipboardGetText() (*types.ClipboardText, error) { func (manager *DesktopManagerCtx) ClipboardGetText() (*types.ClipboardText, error) {

View file

@ -3,7 +3,7 @@ package desktop
import ( import (
"time" "time"
"m1k1o/neko/pkg/drop" "github.com/m1k1o/neko/server/pkg/drop"
) )
// repeat move event multiple times // repeat move event multiple times

View file

@ -4,7 +4,7 @@ import (
"errors" "errors"
"os/exec" "os/exec"
"m1k1o/neko/pkg/xorg" "github.com/m1k1o/neko/server/pkg/xorg"
) )
// name of the window that is being controlled // name of the window that is being controlled

View file

@ -8,11 +8,11 @@ import (
"github.com/rs/zerolog" "github.com/rs/zerolog"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"m1k1o/neko/internal/config" "github.com/m1k1o/neko/server/internal/config"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"m1k1o/neko/pkg/xevent" "github.com/m1k1o/neko/server/pkg/xevent"
"m1k1o/neko/pkg/xinput" "github.com/m1k1o/neko/server/pkg/xinput"
"m1k1o/neko/pkg/xorg" "github.com/m1k1o/neko/server/pkg/xorg"
) )
var mu = sync.Mutex{} var mu = sync.Mutex{}

View file

@ -1,7 +1,7 @@
package desktop package desktop
import ( import (
"m1k1o/neko/pkg/xevent" "github.com/m1k1o/neko/server/pkg/xevent"
) )
func (manager *DesktopManagerCtx) OnCursorChanged(listener func(serial uint64)) { func (manager *DesktopManagerCtx) OnCursorChanged(listener func(serial uint64)) {

View file

@ -1,6 +1,6 @@
package desktop package desktop
import "m1k1o/neko/pkg/xinput" import "github.com/m1k1o/neko/server/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

View file

@ -6,8 +6,8 @@ import (
"regexp" "regexp"
"time" "time"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"m1k1o/neko/pkg/xorg" "github.com/m1k1o/neko/server/pkg/xorg"
) )
func (manager *DesktopManagerCtx) Move(x, y int) { func (manager *DesktopManagerCtx) Move(x, y int) {

View file

@ -7,8 +7,8 @@ import (
"net/http" "net/http"
"strings" "strings"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"m1k1o/neko/pkg/utils" "github.com/m1k1o/neko/server/pkg/utils"
) )
type BatchRequest struct { type BatchRequest struct {

View file

@ -6,7 +6,7 @@ import (
"github.com/go-chi/chi" "github.com/go-chi/chi"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
) )
func pprofHandler(r types.Router) { func pprofHandler(r types.Router) {

View file

@ -10,15 +10,15 @@ import (
"net/url" "net/url"
"strings" "strings"
"m1k1o/neko/internal/api" "github.com/m1k1o/neko/server/internal/api"
oldEvent "m1k1o/neko/internal/http/legacy/event" oldEvent "github.com/m1k1o/neko/server/internal/http/legacy/event"
oldMessage "m1k1o/neko/internal/http/legacy/message" oldMessage "github.com/m1k1o/neko/server/internal/http/legacy/message"
oldTypes "m1k1o/neko/internal/http/legacy/types" oldTypes "github.com/m1k1o/neko/server/internal/http/legacy/types"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"m1k1o/neko/pkg/types/event" "github.com/m1k1o/neko/server/pkg/types/event"
"m1k1o/neko/pkg/types/message" "github.com/m1k1o/neko/server/pkg/types/message"
"m1k1o/neko/pkg/utils" "github.com/m1k1o/neko/server/pkg/utils"
"github.com/gorilla/websocket" "github.com/gorilla/websocket"
"github.com/rs/zerolog" "github.com/rs/zerolog"

View file

@ -1,7 +1,7 @@
package message package message
import ( import (
"m1k1o/neko/internal/http/legacy/types" "github.com/m1k1o/neko/server/internal/http/legacy/types"
"github.com/pion/webrtc/v3" "github.com/pion/webrtc/v3"
) )

View file

@ -9,10 +9,10 @@ import (
"strings" "strings"
"sync" "sync"
oldTypes "m1k1o/neko/internal/http/legacy/types" oldTypes "github.com/m1k1o/neko/server/internal/http/legacy/types"
"m1k1o/neko/internal/api" "github.com/m1k1o/neko/server/internal/api"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"github.com/gorilla/websocket" "github.com/gorilla/websocket"
"github.com/rs/zerolog" "github.com/rs/zerolog"

View file

@ -7,15 +7,15 @@ import (
"github.com/pion/webrtc/v3" "github.com/pion/webrtc/v3"
oldEvent "m1k1o/neko/internal/http/legacy/event" oldEvent "github.com/m1k1o/neko/server/internal/http/legacy/event"
oldMessage "m1k1o/neko/internal/http/legacy/message" oldMessage "github.com/m1k1o/neko/server/internal/http/legacy/message"
"m1k1o/neko/internal/api/room" "github.com/m1k1o/neko/server/internal/api/room"
"m1k1o/neko/internal/plugins/chat" "github.com/m1k1o/neko/server/internal/plugins/chat"
"m1k1o/neko/internal/plugins/filetransfer" "github.com/m1k1o/neko/server/internal/plugins/filetransfer"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"m1k1o/neko/pkg/types/event" "github.com/m1k1o/neko/server/pkg/types/event"
"m1k1o/neko/pkg/types/message" "github.com/m1k1o/neko/server/pkg/types/message"
) )
func (s *session) wsToBackend(msg []byte) error { func (s *session) wsToBackend(msg []byte) error {

View file

@ -8,15 +8,15 @@ import (
"github.com/pion/webrtc/v3" "github.com/pion/webrtc/v3"
"github.com/spf13/viper" "github.com/spf13/viper"
oldEvent "m1k1o/neko/internal/http/legacy/event" oldEvent "github.com/m1k1o/neko/server/internal/http/legacy/event"
oldMessage "m1k1o/neko/internal/http/legacy/message" oldMessage "github.com/m1k1o/neko/server/internal/http/legacy/message"
oldTypes "m1k1o/neko/internal/http/legacy/types" oldTypes "github.com/m1k1o/neko/server/internal/http/legacy/types"
"m1k1o/neko/internal/plugins/chat" "github.com/m1k1o/neko/server/internal/plugins/chat"
"m1k1o/neko/internal/plugins/filetransfer" "github.com/m1k1o/neko/server/internal/plugins/filetransfer"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"m1k1o/neko/pkg/types/event" "github.com/m1k1o/neko/server/pkg/types/event"
"m1k1o/neko/pkg/types/message" "github.com/m1k1o/neko/server/pkg/types/message"
) )
func profileToMember(id string, profile types.MemberProfile) (*oldTypes.Member, error) { func profileToMember(id string, profile types.MemberProfile) (*oldTypes.Member, error) {

View file

@ -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"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"m1k1o/neko/pkg/utils" "github.com/m1k1o/neko/server/pkg/utils"
) )
type logFormatter struct { type logFormatter struct {

View file

@ -10,9 +10,9 @@ import (
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"github.com/spf13/viper" "github.com/spf13/viper"
"m1k1o/neko/internal/config" "github.com/m1k1o/neko/server/internal/config"
"m1k1o/neko/internal/http/legacy" "github.com/m1k1o/neko/server/internal/http/legacy"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
) )
type HttpManagerCtx struct { type HttpManagerCtx struct {

View file

@ -8,9 +8,9 @@ import (
"github.com/go-chi/cors" "github.com/go-chi/cors"
"github.com/rs/zerolog" "github.com/rs/zerolog"
"m1k1o/neko/pkg/auth" "github.com/m1k1o/neko/server/pkg/auth"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"m1k1o/neko/pkg/utils" "github.com/m1k1o/neko/server/pkg/utils"
) )
type RouterOption func(*router) type RouterOption func(*router)

View file

@ -7,7 +7,7 @@ import (
"io" "io"
"os" "os"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
) )
func New(config Config) types.MemberProvider { func New(config Config) types.MemberProvider {

View file

@ -4,7 +4,7 @@ import (
"encoding/json" "encoding/json"
"testing" "testing"
"m1k1o/neko/pkg/utils" "github.com/m1k1o/neko/server/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

View file

@ -1,7 +1,7 @@
package file package file
import ( import (
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
) )
type MemberEntry struct { type MemberEntry struct {

View file

@ -7,12 +7,12 @@ import (
"github.com/rs/zerolog" "github.com/rs/zerolog"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"m1k1o/neko/internal/config" "github.com/m1k1o/neko/server/internal/config"
"m1k1o/neko/internal/member/file" "github.com/m1k1o/neko/server/internal/member/file"
"m1k1o/neko/internal/member/multiuser" "github.com/m1k1o/neko/server/internal/member/multiuser"
"m1k1o/neko/internal/member/noauth" "github.com/m1k1o/neko/server/internal/member/noauth"
"m1k1o/neko/internal/member/object" "github.com/m1k1o/neko/server/internal/member/object"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
) )
func New(sessions types.SessionManager, config *config.Member) *MemberManagerCtx { func New(sessions types.SessionManager, config *config.Member) *MemberManagerCtx {

View file

@ -4,8 +4,8 @@ import (
"errors" "errors"
"fmt" "fmt"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"m1k1o/neko/pkg/utils" "github.com/m1k1o/neko/server/pkg/utils"
) )
func New(config Config) types.MemberProvider { func New(config Config) types.MemberProvider {

View file

@ -1,6 +1,6 @@
package multiuser package multiuser
import "m1k1o/neko/pkg/types" import "github.com/m1k1o/neko/server/pkg/types"
type Config struct { type Config struct {
AdminPassword string AdminPassword string

View file

@ -4,8 +4,8 @@ import (
"errors" "errors"
"fmt" "fmt"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"m1k1o/neko/pkg/utils" "github.com/m1k1o/neko/server/pkg/utils"
) )
func New() types.MemberProvider { func New() types.MemberProvider {

View file

@ -1,7 +1,7 @@
package object package object
import ( import (
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
) )
func New(config Config) types.MemberProvider { func New(config Config) types.MemberProvider {

View file

@ -1,7 +1,7 @@
package object package object
import ( import (
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
) )
type memberEntry struct { type memberEntry struct {

View file

@ -10,9 +10,9 @@ import (
"github.com/rs/zerolog" "github.com/rs/zerolog"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"m1k1o/neko/pkg/auth" "github.com/m1k1o/neko/server/pkg/auth"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"m1k1o/neko/pkg/utils" "github.com/m1k1o/neko/server/pkg/utils"
) )
func NewManager( func NewManager(

View file

@ -1,7 +1,7 @@
package chat package chat
import ( import (
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
) )
type Plugin struct { type Plugin struct {

View file

@ -5,7 +5,7 @@ import (
"github.com/rs/zerolog" "github.com/rs/zerolog"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
) )
type dependency struct { type dependency struct {

View file

@ -4,7 +4,7 @@ import (
"reflect" "reflect"
"testing" "testing"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
) )
func Test_deps_addPlugin(t *testing.T) { func Test_deps_addPlugin(t *testing.T) {

View file

@ -11,9 +11,9 @@ import (
"sync" "sync"
"time" "time"
"m1k1o/neko/pkg/auth" "github.com/m1k1o/neko/server/pkg/auth"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"m1k1o/neko/pkg/utils" "github.com/m1k1o/neko/server/pkg/utils"
"github.com/fsnotify/fsnotify" "github.com/fsnotify/fsnotify"
"github.com/rs/zerolog" "github.com/rs/zerolog"

View file

@ -1,7 +1,7 @@
package filetransfer package filetransfer
import ( import (
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
) )
type Plugin struct { type Plugin struct {

View file

@ -10,10 +10,10 @@ import (
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"m1k1o/neko/internal/config" "github.com/m1k1o/neko/server/internal/config"
"m1k1o/neko/internal/plugins/chat" "github.com/m1k1o/neko/server/internal/plugins/chat"
"m1k1o/neko/internal/plugins/filetransfer" "github.com/m1k1o/neko/server/internal/plugins/filetransfer"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
) )
type ManagerCtx struct { type ManagerCtx struct {

View file

@ -6,7 +6,7 @@ import (
"strings" "strings"
"time" "time"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
) )
func (manager *SessionManagerCtx) CookieSetToken(w http.ResponseWriter, token string) { func (manager *SessionManagerCtx) CookieSetToken(w http.ResponseWriter, token string) {

View file

@ -10,9 +10,9 @@ import (
"github.com/rs/zerolog" "github.com/rs/zerolog"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"m1k1o/neko/internal/config" "github.com/m1k1o/neko/server/internal/config"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"m1k1o/neko/pkg/utils" "github.com/m1k1o/neko/server/pkg/utils"
) )
func New(config *config.Session) *SessionManagerCtx { func New(config *config.Session) *SessionManagerCtx {

View file

@ -5,7 +5,7 @@ import (
"errors" "errors"
"os" "os"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
) )
func (manager *SessionManagerCtx) save() { func (manager *SessionManagerCtx) save() {

View file

@ -6,8 +6,8 @@ import (
"github.com/rs/zerolog" "github.com/rs/zerolog"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"m1k1o/neko/pkg/types/event" "github.com/m1k1o/neko/server/pkg/types/event"
) )
// client is expected to reconnect within 5 second // client is expected to reconnect within 5 second

View file

@ -6,8 +6,8 @@ import (
"github.com/rs/zerolog" "github.com/rs/zerolog"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"m1k1o/neko/pkg/utils" "github.com/m1k1o/neko/server/pkg/utils"
) )
type ImageListener interface { type ImageListener interface {

View file

@ -6,8 +6,8 @@ import (
"math" "math"
"time" "time"
"m1k1o/neko/internal/webrtc/payload" "github.com/m1k1o/neko/server/internal/webrtc/payload"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"github.com/pion/webrtc/v3" "github.com/pion/webrtc/v3"
"github.com/rs/zerolog" "github.com/rs/zerolog"

View file

@ -5,7 +5,7 @@ import (
"encoding/binary" "encoding/binary"
"strconv" "strconv"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"github.com/rs/zerolog" "github.com/rs/zerolog"
) )

View file

@ -18,14 +18,14 @@ import (
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"github.com/spf13/viper" "github.com/spf13/viper"
"m1k1o/neko/internal/config" "github.com/m1k1o/neko/server/internal/config"
"m1k1o/neko/internal/webrtc/cursor" "github.com/m1k1o/neko/server/internal/webrtc/cursor"
"m1k1o/neko/internal/webrtc/pionlog" "github.com/m1k1o/neko/server/internal/webrtc/pionlog"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"m1k1o/neko/pkg/types/codec" "github.com/m1k1o/neko/server/pkg/types/codec"
"m1k1o/neko/pkg/types/event" "github.com/m1k1o/neko/server/pkg/types/event"
"m1k1o/neko/pkg/types/message" "github.com/m1k1o/neko/server/pkg/types/message"
"m1k1o/neko/pkg/utils" "github.com/m1k1o/neko/server/pkg/utils"
) )
const ( const (

View file

@ -4,7 +4,7 @@ import (
"sync" "sync"
"time" "time"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"github.com/pion/rtcp" "github.com/pion/rtcp"
"github.com/pion/webrtc/v3" "github.com/pion/webrtc/v3"

View file

@ -11,11 +11,11 @@ import (
"github.com/pion/webrtc/v3" "github.com/pion/webrtc/v3"
"github.com/rs/zerolog" "github.com/rs/zerolog"
"m1k1o/neko/internal/config" "github.com/m1k1o/neko/server/internal/config"
"m1k1o/neko/internal/webrtc/payload" "github.com/m1k1o/neko/server/internal/webrtc/payload"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"m1k1o/neko/pkg/types/event" "github.com/m1k1o/neko/server/pkg/types/event"
"m1k1o/neko/pkg/utils" "github.com/m1k1o/neko/server/pkg/utils"
) )
type WebRTCPeerCtx struct { type WebRTCPeerCtx struct {

View file

@ -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"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"m1k1o/neko/pkg/types/codec" "github.com/m1k1o/neko/server/pkg/types/codec"
) )
type Track struct { type Track struct {

View file

@ -1,9 +1,9 @@
package websocket package websocket
import ( import (
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"m1k1o/neko/pkg/types/event" "github.com/m1k1o/neko/server/pkg/types/event"
"m1k1o/neko/pkg/types/message" "github.com/m1k1o/neko/server/pkg/types/message"
) )
func (manager *WebSocketManagerCtx) fileChooserDialogEvents() { func (manager *WebSocketManagerCtx) fileChooserDialogEvents() {

View file

@ -3,8 +3,8 @@ package handler
import ( import (
"errors" "errors"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"m1k1o/neko/pkg/types/message" "github.com/m1k1o/neko/server/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 {

View file

@ -3,10 +3,10 @@ package handler
import ( import (
"errors" "errors"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"m1k1o/neko/pkg/types/event" "github.com/m1k1o/neko/server/pkg/types/event"
"m1k1o/neko/pkg/types/message" "github.com/m1k1o/neko/server/pkg/types/message"
"m1k1o/neko/pkg/xorg" "github.com/m1k1o/neko/server/pkg/xorg"
) )
var ( var (

View file

@ -4,10 +4,10 @@ import (
"github.com/rs/zerolog" "github.com/rs/zerolog"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"m1k1o/neko/pkg/types/event" "github.com/m1k1o/neko/server/pkg/types/event"
"m1k1o/neko/pkg/types/message" "github.com/m1k1o/neko/server/pkg/types/message"
"m1k1o/neko/pkg/utils" "github.com/m1k1o/neko/server/pkg/utils"
) )
func New( func New(

View file

@ -3,8 +3,8 @@ package handler
import ( import (
"errors" "errors"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"m1k1o/neko/pkg/types/message" "github.com/m1k1o/neko/server/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 {

View file

@ -3,9 +3,9 @@ package handler
import ( import (
"errors" "errors"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"m1k1o/neko/pkg/types/event" "github.com/m1k1o/neko/server/pkg/types/event"
"m1k1o/neko/pkg/types/message" "github.com/m1k1o/neko/server/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 {

View file

@ -3,9 +3,9 @@ package handler
import ( import (
"errors" "errors"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"m1k1o/neko/pkg/types/event" "github.com/m1k1o/neko/server/pkg/types/event"
"m1k1o/neko/pkg/types/message" "github.com/m1k1o/neko/server/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 {

View file

@ -1,9 +1,9 @@
package handler package handler
import ( import (
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"m1k1o/neko/pkg/types/event" "github.com/m1k1o/neko/server/pkg/types/event"
"m1k1o/neko/pkg/types/message" "github.com/m1k1o/neko/server/pkg/types/message"
) )
func (h *MessageHandlerCtx) SessionCreated(session types.Session) error { func (h *MessageHandlerCtx) SessionCreated(session types.Session) error {

View file

@ -3,9 +3,9 @@ package handler
import ( import (
"errors" "errors"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"m1k1o/neko/pkg/types/event" "github.com/m1k1o/neko/server/pkg/types/event"
"m1k1o/neko/pkg/types/message" "github.com/m1k1o/neko/server/pkg/types/message"
"github.com/pion/webrtc/v3" "github.com/pion/webrtc/v3"
) )

View file

@ -4,9 +4,9 @@ import (
"github.com/rs/zerolog" "github.com/rs/zerolog"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"m1k1o/neko/pkg/types/event" "github.com/m1k1o/neko/server/pkg/types/event"
"m1k1o/neko/pkg/types/message" "github.com/m1k1o/neko/server/pkg/types/message"
) )
func (h *MessageHandlerCtx) systemInit(session types.Session) error { func (h *MessageHandlerCtx) systemInit(session types.Session) error {

View file

@ -11,11 +11,11 @@ import (
"github.com/rs/zerolog" "github.com/rs/zerolog"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"m1k1o/neko/internal/websocket/handler" "github.com/m1k1o/neko/server/internal/websocket/handler"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"m1k1o/neko/pkg/types/event" "github.com/m1k1o/neko/server/pkg/types/event"
"m1k1o/neko/pkg/types/message" "github.com/m1k1o/neko/server/pkg/types/message"
"m1k1o/neko/pkg/utils" "github.com/m1k1o/neko/server/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

View file

@ -8,10 +8,10 @@ import (
"github.com/gorilla/websocket" "github.com/gorilla/websocket"
"github.com/rs/zerolog" "github.com/rs/zerolog"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"m1k1o/neko/pkg/types/event" "github.com/m1k1o/neko/server/pkg/types/event"
"m1k1o/neko/pkg/types/message" "github.com/m1k1o/neko/server/pkg/types/message"
"m1k1o/neko/pkg/utils" "github.com/m1k1o/neko/server/pkg/utils"
) )
type WebSocketPeerCtx struct { type WebSocketPeerCtx struct {

View file

@ -5,8 +5,8 @@ import (
"fmt" "fmt"
"net/http" "net/http"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
"m1k1o/neko/pkg/utils" "github.com/m1k1o/neko/server/pkg/utils"
) )
type key int type key int

View file

@ -6,9 +6,9 @@ import (
"reflect" "reflect"
"testing" "testing"
"m1k1o/neko/internal/config" "github.com/m1k1o/neko/server/internal/config"
"m1k1o/neko/internal/session" "github.com/m1k1o/neko/server/internal/session"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
) )
var i = 0 var i = 0

View file

@ -16,7 +16,7 @@ import (
"github.com/rs/zerolog" "github.com/rs/zerolog"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
) )
var ( var (

View file

@ -8,7 +8,7 @@ import (
"strings" "strings"
"time" "time"
"m1k1o/neko/pkg/types/codec" "github.com/m1k1o/neko/server/pkg/types/codec"
"github.com/PaesslerAG/gval" "github.com/PaesslerAG/gval"
) )

View file

@ -3,7 +3,7 @@ package message
import ( import (
"github.com/pion/webrtc/v3" "github.com/pion/webrtc/v3"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
) )
///////////////////////////// /////////////////////////////

View file

@ -5,7 +5,7 @@ import (
"fmt" "fmt"
"strings" "strings"
"m1k1o/neko/pkg/utils" "github.com/m1k1o/neko/server/pkg/utils"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View file

@ -16,7 +16,7 @@ import (
"time" "time"
"unsafe" "unsafe"
"m1k1o/neko/pkg/types" "github.com/m1k1o/neko/server/pkg/types"
) )
//go:generate ./keysymdef.sh //go:generate ./keysymdef.sh