Compare commits
1 Commits
Author | SHA1 | Date |
---|---|---|
Etzelia | b18309002a |
|
@ -8,9 +8,9 @@ package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"git.canopymc.net/Etzelia/go-mcm"
|
"go.etztech.xyz/go-mcm"
|
||||||
"git.canopymc.net/Etzelia/go-mcm/model"
|
"go.etztech.xyz/go-mcm/model"
|
||||||
"git.canopymc.net/Etzelia/go-mcm/model/django"
|
"go.etztech.xyz/go-mcm/model/django"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
2
go.mod
2
go.mod
|
@ -1,3 +1,3 @@
|
||||||
module git.jojodev.com/Minecraft/go-mcm
|
module go.etztech.xyz/go-mcm
|
||||||
|
|
||||||
go 1.13
|
go 1.13
|
||||||
|
|
4
mcm.go
4
mcm.go
|
@ -4,8 +4,8 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"git.jojodev.com/Minecraft/go-mcm/model"
|
"go.etztech.xyz/go-mcm/model"
|
||||||
"git.jojodev.com/Minecraft/go-mcm/web"
|
"go.etztech.xyz/go-mcm/web"
|
||||||
)
|
)
|
||||||
|
|
||||||
type MCM struct {
|
type MCM struct {
|
||||||
|
|
|
@ -3,8 +3,8 @@ package model
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
|
||||||
"git.jojodev.com/Minecraft/go-mcm/internal"
|
"go.etztech.xyz/go-mcm/internal"
|
||||||
"git.jojodev.com/Minecraft/go-mcm/model/django"
|
"go.etztech.xyz/go-mcm/model/django"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Alert struct {
|
type Alert struct {
|
||||||
|
|
|
@ -3,8 +3,8 @@ package model
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
|
||||||
"git.jojodev.com/Minecraft/go-mcm/internal"
|
"go.etztech.xyz/go-mcm/internal"
|
||||||
"git.jojodev.com/Minecraft/go-mcm/model/django"
|
"go.etztech.xyz/go-mcm/model/django"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Application struct {
|
type Application struct {
|
||||||
|
|
|
@ -8,6 +8,5 @@ const (
|
||||||
PlayerApplicationID Field = "application_id"
|
PlayerApplicationID Field = "application_id"
|
||||||
PlayerFirstSeen Field = "first_seen"
|
PlayerFirstSeen Field = "first_seen"
|
||||||
PlayerLastSeen Field = "last_seen"
|
PlayerLastSeen Field = "last_seen"
|
||||||
PlayerDiscordID Field = "discord_id"
|
|
||||||
PlayerLink = Link
|
PlayerLink = Link
|
||||||
)
|
)
|
||||||
|
|
|
@ -3,8 +3,8 @@ package model
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
|
||||||
"git.jojodev.com/Minecraft/go-mcm/internal"
|
"go.etztech.xyz/go-mcm/internal"
|
||||||
"git.jojodev.com/Minecraft/go-mcm/model/django"
|
"go.etztech.xyz/go-mcm/model/django"
|
||||||
)
|
)
|
||||||
|
|
||||||
type IP struct {
|
type IP struct {
|
||||||
|
|
|
@ -6,7 +6,7 @@ import (
|
||||||
"reflect"
|
"reflect"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"git.jojodev.com/Minecraft/go-mcm/model/django"
|
"go.etztech.xyz/go-mcm/model/django"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Model struct {
|
type Model struct {
|
||||||
|
|
|
@ -3,8 +3,8 @@ package model
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
|
||||||
"git.jojodev.com/Minecraft/go-mcm/internal"
|
"go.etztech.xyz/go-mcm/internal"
|
||||||
"git.jojodev.com/Minecraft/go-mcm/model/django"
|
"go.etztech.xyz/go-mcm/model/django"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Importance string
|
type Importance string
|
||||||
|
|
|
@ -3,8 +3,8 @@ package model
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
|
||||||
"git.jojodev.com/Minecraft/go-mcm/internal"
|
"go.etztech.xyz/go-mcm/internal"
|
||||||
"git.jojodev.com/Minecraft/go-mcm/model/django"
|
"go.etztech.xyz/go-mcm/model/django"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Player struct {
|
type Player struct {
|
||||||
|
@ -15,7 +15,6 @@ type Player struct {
|
||||||
ApplicationID int64 `json:"application_id"`
|
ApplicationID int64 `json:"application_id"`
|
||||||
FirstSeen string `json:"first_seen"`
|
FirstSeen string `json:"first_seen"`
|
||||||
LastSeen string `json:"last_seen"`
|
LastSeen string `json:"last_seen"`
|
||||||
DiscordID string `json:"discord_id"`
|
|
||||||
Link string `json:"link"`
|
Link string `json:"link"`
|
||||||
|
|
||||||
model *Model `json:"-"`
|
model *Model `json:"-"`
|
||||||
|
|
|
@ -3,8 +3,8 @@ package model
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
|
||||||
"git.jojodev.com/Minecraft/go-mcm/internal"
|
"go.etztech.xyz/go-mcm/internal"
|
||||||
"git.jojodev.com/Minecraft/go-mcm/model/django"
|
"go.etztech.xyz/go-mcm/model/django"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Priority string
|
type Priority string
|
||||||
|
|
|
@ -3,8 +3,8 @@ package model
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
|
||||||
"git.jojodev.com/Minecraft/go-mcm/internal"
|
"go.etztech.xyz/go-mcm/internal"
|
||||||
"git.jojodev.com/Minecraft/go-mcm/model/django"
|
"go.etztech.xyz/go-mcm/model/django"
|
||||||
)
|
)
|
||||||
|
|
||||||
type TicketNote struct {
|
type TicketNote struct {
|
||||||
|
|
|
@ -3,8 +3,8 @@ package model
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
|
||||||
"git.jojodev.com/Minecraft/go-mcm/internal"
|
"go.etztech.xyz/go-mcm/internal"
|
||||||
"git.jojodev.com/Minecraft/go-mcm/model/django"
|
"go.etztech.xyz/go-mcm/model/django"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Results int64
|
type Results int64
|
||||||
|
|
|
@ -3,7 +3,7 @@ package web
|
||||||
import (
|
import (
|
||||||
"net/url"
|
"net/url"
|
||||||
|
|
||||||
"git.jojodev.com/Minecraft/go-mcm/internal"
|
"go.etztech.xyz/go-mcm/internal"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (web *Web) Alert(message string, ping bool) (*internal.Status, error) {
|
func (web *Web) Alert(message string, ping bool) (*internal.Status, error) {
|
||||||
|
|
|
@ -3,7 +3,7 @@ package web
|
||||||
import (
|
import (
|
||||||
"net/url"
|
"net/url"
|
||||||
|
|
||||||
"git.jojodev.com/Minecraft/go-mcm/internal"
|
"go.etztech.xyz/go-mcm/internal"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (web *Web) Discord(message string, ping bool) (*internal.Status, error) {
|
func (web *Web) Discord(message string, ping bool) (*internal.Status, error) {
|
||||||
|
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"git.jojodev.com/Minecraft/go-mcm/internal"
|
"go.etztech.xyz/go-mcm/internal"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Log struct {
|
type Log struct {
|
||||||
|
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"git.jojodev.com/Minecraft/go-mcm/internal"
|
"go.etztech.xyz/go-mcm/internal"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Online struct {
|
type Online struct {
|
||||||
|
|
Loading…
Reference in New Issue