rename package.

This commit is contained in:
Miroslav Šedivý 2021-10-05 22:38:24 +02:00
parent 3342dc6819
commit 1ff743c598
27 changed files with 70 additions and 67 deletions

View File

@ -7,4 +7,4 @@ GIT_COMMIT=`git rev-parse --short HEAD`
GIT_BRANCH=`git rev-parse --symbolic-full-name --abbrev-ref HEAD` GIT_BRANCH=`git rev-parse --symbolic-full-name --abbrev-ref HEAD`
GIT_DIRTY=`git diff-index --quiet HEAD -- || echo "✗-"` GIT_DIRTY=`git diff-index --quiet HEAD -- || echo "✗-"`
go build -o bin/neko -ldflags "-s -X 'n.eko.moe/neko.buildDate=${BUILD_TIME}' -X 'n.eko.moe/neko.gitCommit=${GIT_DIRTY}${GIT_COMMIT}' -X 'n.eko.moe/neko.gitBranch=${GIT_BRANCH}'" -i cmd/neko/main.go go build -o bin/neko -ldflags "-s -X 'm1k1o/neko.buildDate=${BUILD_TIME}' -X 'm1k1o/neko.gitCommit=${GIT_DIRTY}${GIT_COMMIT}' -X 'm1k1o/neko.gitBranch=${GIT_BRANCH}'" -i cmd/neko/main.go

View File

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

View File

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

View File

@ -4,8 +4,8 @@ import (
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"n.eko.moe/neko" "m1k1o/neko"
"n.eko.moe/neko/internal/types/config" "m1k1o/neko/internal/types/config"
) )
func init() { func init() {

View File

@ -1,4 +1,4 @@
module n.eko.moe/neko module m1k1o/neko
go 1.17 go 1.17

View File

@ -6,8 +6,8 @@ import (
"github.com/rs/zerolog" "github.com/rs/zerolog"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"n.eko.moe/neko/internal/gst" "m1k1o/neko/internal/gst"
"n.eko.moe/neko/internal/types/config" "m1k1o/neko/internal/types/config"
) )
type BroadcastManager struct { type BroadcastManager struct {

View File

@ -14,7 +14,7 @@ import (
"time" "time"
"unsafe" "unsafe"
"n.eko.moe/neko/internal/types" "m1k1o/neko/internal/types"
) )
/* /*

View File

@ -11,9 +11,9 @@ import (
"github.com/rs/zerolog" "github.com/rs/zerolog"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"n.eko.moe/neko/internal/http/middleware" "m1k1o/neko/internal/http/middleware"
"n.eko.moe/neko/internal/types" "m1k1o/neko/internal/types"
"n.eko.moe/neko/internal/types/config" "m1k1o/neko/internal/types/config"
) )
type Server struct { type Server struct {

View File

@ -6,7 +6,7 @@ package middleware
import ( import (
"net/http" "net/http"
"n.eko.moe/neko/internal/http/endpoint" "m1k1o/neko/internal/http/endpoint"
) )
func Recoverer(next http.Handler) http.Handler { func Recoverer(next http.Handler) http.Handler {

View File

@ -4,7 +4,7 @@ import (
"encoding/json" "encoding/json"
"net/http" "net/http"
"n.eko.moe/neko/internal/http/endpoint" "m1k1o/neko/internal/http/endpoint"
) )
// JSON encodes data to rw in JSON format. Returns a pointer to a // JSON encodes data to rw in JSON format. Returns a pointer to a

View File

@ -5,13 +5,14 @@ import (
"os/exec" "os/exec"
"time" "time"
"m1k1o/neko/internal/gst"
"m1k1o/neko/internal/types"
"m1k1o/neko/internal/types/config"
"m1k1o/neko/internal/xorg"
"github.com/kataras/go-events" "github.com/kataras/go-events"
"github.com/rs/zerolog" "github.com/rs/zerolog"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"n.eko.moe/neko/internal/gst"
"n.eko.moe/neko/internal/types"
"n.eko.moe/neko/internal/types/config"
"n.eko.moe/neko/internal/xorg"
) )
type RemoteManager struct { type RemoteManager 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"
"n.eko.moe/neko/internal/types" "m1k1o/neko/internal/types"
"n.eko.moe/neko/internal/utils" "m1k1o/neko/internal/utils"
) )
func New(remote types.RemoteManager) *SessionManager { func New(remote types.RemoteManager) *SessionManager {

View File

@ -1,10 +1,11 @@
package session package session
import ( import (
"m1k1o/neko/internal/types"
"m1k1o/neko/internal/types/event"
"m1k1o/neko/internal/types/message"
"github.com/rs/zerolog" "github.com/rs/zerolog"
"n.eko.moe/neko/internal/types"
"n.eko.moe/neko/internal/types/event"
"n.eko.moe/neko/internal/types/message"
) )
type Session struct { type Session struct {

View File

@ -5,10 +5,11 @@ import (
"strconv" "strconv"
"strings" "strings"
"m1k1o/neko/internal/utils"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/spf13/viper" "github.com/spf13/viper"
"n.eko.moe/neko/internal/utils"
"github.com/pion/webrtc/v3" "github.com/pion/webrtc/v3"
) )

View File

@ -1,7 +1,7 @@
package message package message
import ( import (
"n.eko.moe/neko/internal/types" "m1k1o/neko/internal/types"
"github.com/pion/webrtc/v3" "github.com/pion/webrtc/v3"
) )

View File

@ -13,8 +13,8 @@ import (
"github.com/rs/zerolog" "github.com/rs/zerolog"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"n.eko.moe/neko/internal/types" "m1k1o/neko/internal/types"
"n.eko.moe/neko/internal/types/config" "m1k1o/neko/internal/types/config"
) )
func New(sessions types.SessionManager, remote types.RemoteManager, config *config.WebRTC) *WebRTCManager { func New(sessions types.SessionManager, remote types.RemoteManager, config *config.WebRTC) *WebRTCManager {

View File

@ -3,9 +3,9 @@ package websocket
import ( import (
"strings" "strings"
"n.eko.moe/neko/internal/types" "m1k1o/neko/internal/types"
"n.eko.moe/neko/internal/types/event" "m1k1o/neko/internal/types/event"
"n.eko.moe/neko/internal/types/message" "m1k1o/neko/internal/types/message"
) )
func (h *MessageHandler) adminLock(id string, session types.Session) error { func (h *MessageHandler) adminLock(id string, session types.Session) error {

View File

@ -1,9 +1,9 @@
package websocket package websocket
import ( import (
"n.eko.moe/neko/internal/types" "m1k1o/neko/internal/types"
"n.eko.moe/neko/internal/types/event" "m1k1o/neko/internal/types/event"
"n.eko.moe/neko/internal/types/message" "m1k1o/neko/internal/types/message"
) )
func (h *MessageHandler) boradcastCreate(session types.Session, payload *message.BroadcastCreate) error { func (h *MessageHandler) boradcastCreate(session types.Session, payload *message.BroadcastCreate) error {

View File

@ -1,9 +1,9 @@
package websocket package websocket
import ( import (
"n.eko.moe/neko/internal/types" "m1k1o/neko/internal/types"
"n.eko.moe/neko/internal/types/event" "m1k1o/neko/internal/types/event"
"n.eko.moe/neko/internal/types/message" "m1k1o/neko/internal/types/message"
) )
func (h *MessageHandler) chat(id string, session types.Session, payload *message.ChatReceive) error { func (h *MessageHandler) chat(id string, session types.Session, payload *message.ChatReceive) error {

View File

@ -1,9 +1,9 @@
package websocket package websocket
import ( import (
"n.eko.moe/neko/internal/types" "m1k1o/neko/internal/types"
"n.eko.moe/neko/internal/types/event" "m1k1o/neko/internal/types/event"
"n.eko.moe/neko/internal/types/message" "m1k1o/neko/internal/types/message"
) )
func (h *MessageHandler) controlRelease(id string, session types.Session) error { func (h *MessageHandler) controlRelease(id string, session types.Session) error {

View File

@ -6,10 +6,10 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/rs/zerolog" "github.com/rs/zerolog"
"n.eko.moe/neko/internal/types" "m1k1o/neko/internal/types"
"n.eko.moe/neko/internal/types/event" "m1k1o/neko/internal/types/event"
"n.eko.moe/neko/internal/types/message" "m1k1o/neko/internal/types/message"
"n.eko.moe/neko/internal/utils" "m1k1o/neko/internal/utils"
) )
type MessageHandler struct { type MessageHandler struct {

View File

@ -1,9 +1,9 @@
package websocket package websocket
import ( import (
"n.eko.moe/neko/internal/types" "m1k1o/neko/internal/types"
"n.eko.moe/neko/internal/types/event" "m1k1o/neko/internal/types/event"
"n.eko.moe/neko/internal/types/message" "m1k1o/neko/internal/types/message"
) )
func (h *MessageHandler) screenSet(id string, session types.Session, payload *message.ScreenResolution) error { func (h *MessageHandler) screenSet(id string, session types.Session, payload *message.ScreenResolution) error {

View File

@ -1,9 +1,9 @@
package websocket package websocket
import ( import (
"n.eko.moe/neko/internal/types" "m1k1o/neko/internal/types"
"n.eko.moe/neko/internal/types/event" "m1k1o/neko/internal/types/event"
"n.eko.moe/neko/internal/types/message" "m1k1o/neko/internal/types/message"
) )
func (h *MessageHandler) SessionCreated(id string, session types.Session) error { func (h *MessageHandler) SessionCreated(id string, session types.Session) error {

View File

@ -1,9 +1,9 @@
package websocket package websocket
import ( import (
"n.eko.moe/neko/internal/types" "m1k1o/neko/internal/types"
"n.eko.moe/neko/internal/types/event" "m1k1o/neko/internal/types/event"
"n.eko.moe/neko/internal/types/message" "m1k1o/neko/internal/types/message"
) )
func (h *MessageHandler) signalProvide(id string, session types.Session) error { func (h *MessageHandler) signalProvide(id string, 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"
"n.eko.moe/neko/internal/types" "m1k1o/neko/internal/types"
"n.eko.moe/neko/internal/types/config" "m1k1o/neko/internal/types/config"
"n.eko.moe/neko/internal/types/event" "m1k1o/neko/internal/types/event"
"n.eko.moe/neko/internal/types/message" "m1k1o/neko/internal/types/message"
"n.eko.moe/neko/internal/utils" "m1k1o/neko/internal/utils"
) )
func New(sessions types.SessionManager, remote types.RemoteManager, broadcast types.BroadcastManager, webrtc types.WebRTCManager, conf *config.WebSocket) *WebSocketHandler { func New(sessions types.SessionManager, remote types.RemoteManager, broadcast types.BroadcastManager, webrtc types.WebRTCManager, conf *config.WebSocket) *WebSocketHandler {

View File

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

View File

@ -6,13 +6,13 @@ import (
"os/signal" "os/signal"
"runtime" "runtime"
"n.eko.moe/neko/internal/broadcast" "m1k1o/neko/internal/broadcast"
"n.eko.moe/neko/internal/http" "m1k1o/neko/internal/http"
"n.eko.moe/neko/internal/remote" "m1k1o/neko/internal/remote"
"n.eko.moe/neko/internal/session" "m1k1o/neko/internal/session"
"n.eko.moe/neko/internal/types/config" "m1k1o/neko/internal/types/config"
"n.eko.moe/neko/internal/webrtc" "m1k1o/neko/internal/webrtc"
"n.eko.moe/neko/internal/websocket" "m1k1o/neko/internal/websocket"
"github.com/rs/zerolog" "github.com/rs/zerolog"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"