mirror of
https://github.com/0ceanSlim/grain.git
synced 2024-11-22 08:37:13 +00:00
events package renamed to kinds
This commit is contained in:
parent
567f6ec289
commit
2b0186e499
@ -1,4 +1,4 @@
|
|||||||
package events
|
package kinds
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
@ -1,4 +1,4 @@
|
|||||||
package events
|
package kinds
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
@ -1,4 +1,4 @@
|
|||||||
package events
|
package kinds
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
@ -5,7 +5,7 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"grain/server/db"
|
"grain/server/db"
|
||||||
"grain/server/events"
|
"grain/server/kinds"
|
||||||
server "grain/server/types"
|
server "grain/server/types"
|
||||||
"grain/server/utils"
|
"grain/server/utils"
|
||||||
|
|
||||||
@ -98,11 +98,11 @@ func HandleKind(ctx context.Context, evt server.Event, ws *websocket.Conn) {
|
|||||||
var err error
|
var err error
|
||||||
switch evt.Kind {
|
switch evt.Kind {
|
||||||
case 0:
|
case 0:
|
||||||
err = events.HandleKind0(ctx, evt, collection)
|
err = kinds.HandleKind0(ctx, evt, collection)
|
||||||
case 1:
|
case 1:
|
||||||
err = events.HandleKind1(ctx, evt, collection)
|
err = kinds.HandleKind1(ctx, evt, collection)
|
||||||
default:
|
default:
|
||||||
err = events.HandleUnknownKind(ctx, evt, collection)
|
err = kinds.HandleUnknownKind(ctx, evt, collection)
|
||||||
}
|
}
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user