Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
bb22eb7
sqlite DB interface and migration tool
SaintWish Feb 23, 2026
3567ccd
external endpoint to get character by slot and steamid
SaintWish Feb 23, 2026
d3c1564
option to turn off external auth
SaintWish Feb 23, 2026
c8c79a5
Update sqlite.go
SaintWish Feb 23, 2026
1f98fad
add db test for sqlite and fix some issues
SaintWish Feb 24, 2026
d131302
remove endpoint for getallusers
SaintWish Feb 25, 2026
736b0a7
fix pebbleDB issues and add unit test
SaintWish Feb 25, 2026
2a3b0f9
delete old database options
SaintWish Feb 25, 2026
94e3cfe
go mod tidy
SaintWish Feb 25, 2026
6b9625f
Update db.go
SaintWish Feb 25, 2026
19edba2
automatically create sub directories for SQLite
SaintWish Feb 25, 2026
f6296be
error handling stuff
SaintWish Feb 25, 2026
6cf673c
add postgreSQL schema
SaintWish Feb 25, 2026
e6f4559
fix some stuff
SaintWish Feb 25, 2026
22c3370
setup for postgres
SaintWish Feb 25, 2026
e9f1f9e
pass database logger to database struct
SaintWish Feb 25, 2026
2c0205e
wip: posgres database interface
SaintWish Feb 25, 2026
96a731e
make migration use config file instead
SaintWish Feb 25, 2026
5f4ab86
don't migrate deleted characters
SaintWish Feb 25, 2026
565a6f1
Revert "remove endpoint for getallusers"
SaintWish Feb 25, 2026
1119cdb
actually fix GetAllUsers instead of removing it
SaintWish Feb 25, 2026
cea78ac
optimize GetUser query
SaintWish Feb 26, 2026
a259c26
update insomnia scratch pad
SaintWish Feb 26, 2026
7d913a2
handle no document error for getcharacter endpoint
SaintWish Feb 26, 2026
22ede93
idk what i was doing here, but it's wrong
SaintWish Feb 26, 2026
885308e
Update character.go
SaintWish Feb 26, 2026
ec9b808
fix SQL statement
SaintWish Feb 26, 2026
6877306
get rid of unneeded test
SaintWish Feb 26, 2026
96b3ad6
fix SQLite error with GetCharacter
SaintWish Feb 26, 2026
76e4665
formatting
SaintWish Feb 26, 2026
7d11160
fix postgres GetCharacter
SaintWish Feb 26, 2026
826acc8
cleanup
SaintWish Feb 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
147 changes: 74 additions & 73 deletions Insomnia_2025-06-25.yaml → Insomnia_2026-02-25.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
type: collection.insomnia.rest/5.0
schema_version: "5.1"
name: Scratch Pad
meta:
id: wrk_scratchpad
created: 1750805884848
modified: 1750805884848
created: 1771818346679
modified: 1771818346679
description: ""
collection:
- name: Internal
meta:
id: fld_3159eb11f7294b9199cf40ce3b1ec5f3
id: fld_366cc23ffe9546379371e40c695ddfa2
created: 1702091260653
modified: 1702091260653
sortKey: -1702091260653
Expand All @@ -17,7 +18,7 @@ collection:
- url: http://127.0.0.1:1337/api/v2/internal/map/edana/1273
name: Map Verify
meta:
id: req_777bfe1f5a79487b8900774313468de8
id: req_81f6af598a504f91be75ab566ade0627
created: 1701386023339
modified: 1702091287346
isPrivate: false
Expand All @@ -38,9 +39,9 @@ collection:
- url: http://127.0.0.1:1337/api/v2/internal/character/
name: New Character
meta:
id: req_9d205813904d4fefac747ba94f21be20
id: req_b4937fca3b244d0ebc92d498b561f86b
created: 1701668372562
modified: 1750892580110
modified: 1771885637277
isPrivate: false
description: ""
sortKey: -1702091266935
Expand All @@ -49,8 +50,8 @@ collection:
mimeType: application/json
text: |-
{
"steamid": "1337",
"slot": 1,
"steamid": "76561197970271912",
"slot": 2,
"size": 180,
"data": "THIS_TEST_DATA2J____DJHDHJFJK ALTERNATE"
}
Expand All @@ -70,7 +71,7 @@ collection:
- url: http://127.0.0.1:1337/api/v2/internal/ban/21743647643
name: Ban Verify
meta:
id: req_9cb08d62e2234fdbac083dfb56afb847
id: req_a67772aef4fe4e888db727c53c810db2
created: 1701720818712
modified: 1702091289643
isPrivate: false
Expand All @@ -88,12 +89,12 @@ collection:
send: true
store: true
rebuildPath: true
- url: http://127.0.0.1:1337/api/v2/internal/character/531cdaaf-8368-47ca-b663-517af82d5ac6
- url: http://127.0.0.1:1337/api/v2/internal/character/05752e13-31f4-4641-a93a-137785a37142
name: Update Character
meta:
id: req_461281e9c7f34c1497e04d13264a5d66
id: req_644de9363b6946e9b5e9387e52f5a1b1
created: 1701855673965
modified: 1750806152058
modified: 1771819157808
isPrivate: false
description: ""
sortKey: -1702091267035
Expand All @@ -102,8 +103,8 @@ collection:
mimeType: application/json
text: |-
{
"size": 1,
"data": "UwU2"
"size": 156,
"data": "UwU2433"
}
headers:
- name: Content-Type
Expand All @@ -118,12 +119,12 @@ collection:
send: true
store: true
rebuildPath: true
- url: http://127.0.0.1:1337/api/v2/internal/character/1337/65
- url: http://127.0.0.1:1337/api/v2/internal/character/76561197970271912/0
name: Get Character
meta:
id: req_29b4de3833cd451bb96dbfabff8c75f3
id: req_251d3c7109f84c34a1143197616ff8e7
created: 1702000504553
modified: 1750896147253
modified: 1771836126507
isPrivate: false
description: ""
sortKey: -1702091266635
Expand All @@ -139,12 +140,12 @@ collection:
send: true
store: true
rebuildPath: true
- url: http://127.0.0.1:1337/api/v2/internal/character/f69ffd70-6fdb-443c-a071-7f17565291ad
- url: http://127.0.0.1:1337/api/v2/internal/character/99d08d19-e67f-48f3-beb5-a424de24270e
name: Delete Character
meta:
id: req_49f5dccb45464f7dbcdf405c0adc623a
id: req_8661af7a260e4ee3b14763a182341e9d
created: 1702014924846
modified: 1750893194066
modified: 1772004720934
isPrivate: false
description: ""
sortKey: -1702091266885
Expand All @@ -162,18 +163,18 @@ collection:
rebuildPath: true
- name: External
meta:
id: fld_e7ca6945525a4e48aef91dd05982ab8e
id: fld_1ed0be024ef849a083c6a199aeb570ff
created: 1702091446572
modified: 1702091446572
sortKey: -1702091446572
description: ""
children:
- url: http://127.0.0.1:1337/api/v2/character/7e094142-841d-48b3-b329-633c2707a593
- url: 127.0.0.1:1337/api/v2/character/99d08d19-e67f-48f3-beb5-a424de24270e
name: Get Character By ID
meta:
id: req_7fc6321551ee4ab69d8b84ad107051fc
id: req_8acaacdd253546d58c45e5ba5bef0d88
created: 1701720160986
modified: 1750892516657
modified: 1772005038219
isPrivate: false
description: ""
sortKey: -1702091526359
Expand All @@ -189,12 +190,12 @@ collection:
send: true
store: true
rebuildPath: true
- url: http://127.0.0.1:1337/api/v2/character/1337
- url: 127.0.0.1:1337/api/v2/character/76561197970271912
name: Get Characters
meta:
id: req_4dec80d0d35c4d73ae3dcdc18077cf8e
id: req_e76e2ec9e28e48dd904a7b48472e05bc
created: 1702086161941
modified: 1750806429298
modified: 1771886210189
isPrivate: false
description: ""
sortKey: -1702091526459
Expand All @@ -210,12 +211,12 @@ collection:
send: true
store: true
rebuildPath: true
- url: http://127.0.0.1:1337/api/v2/character/deleted/1337
- url: 127.0.0.1:1337/api/v2/character/deleted/76561197970271912
name: Get Deleted Characters
meta:
id: req_689e4ef6684544de881dd8cbf812bad0
id: req_b713fe47f409407f96d71ea40ea3ac72
created: 1702087289073
modified: 1706317029283
modified: 1771890691966
isPrivate: false
description: ""
sortKey: -1702091526559
Expand All @@ -231,12 +232,12 @@ collection:
send: true
store: true
rebuildPath: true
- url: http://127.0.0.1:1337/api/v2/character/lookup/21743647643/1
- url: http://127.0.0.1:1337/api/v2/character/lookup/76561197970271912/2
name: Lookup Character ID
meta:
id: req_a34d6bfabace4bdf8f5a1aaff22a5463
id: req_e5b0f88835cc47d2bdff6f4ab911a27b
created: 1702092100803
modified: 1702092128443
modified: 1771885768138
isPrivate: false
description: ""
sortKey: -1702091526659
Expand All @@ -255,7 +256,7 @@ collection:
- url: http://127.0.0.1:1337/api/v2/unsafe/character/move/c5077373-ea54-4f37-a47d-5ab5dc140ff2/to/1234/2
name: Move Character
meta:
id: req_6c1c5b72762845e4a90938705f8c8cc1
id: req_54922995ef274d5a91dcca95fb2a0b9a
created: 1702096471985
modified: 1706398471300
isPrivate: false
Expand All @@ -276,7 +277,7 @@ collection:
- url: http://127.0.0.1:1337/api/v2/unsafe/character/copy/3a362194-5783-487c-a76d-49d2c2652d21/to/1337/2
name: Copy Character
meta:
id: req_17255148af42494fbe6371dcef3e1472
id: req_990e2daa835f44b184e500af526b4719
created: 1702096766384
modified: 1706398421538
isPrivate: false
Expand All @@ -297,7 +298,7 @@ collection:
- url: http://127.0.0.1:1337/api/v2/character/restore/f69ffd70-6fdb-443c-a071-7f17565291ad
name: Restore Character
meta:
id: req_59b939ba33d5460981d6da5c9bcdf48d
id: req_30ba1d0afc43438cb9d832561704dec2
created: 1702165085087
modified: 1750895319533
isPrivate: false
Expand All @@ -315,31 +316,10 @@ collection:
send: true
store: true
rebuildPath: true
- url: http://127.0.0.1:1337/api/v2/character/504a7f9e-f7f3-47dc-9a2d-5b2f04d5fc54
name: Get Character By ID
meta:
id: req_036feda3bf1f4037905aff008c29b8f9
created: 1708814692952
modified: 1727673808306
isPrivate: false
description: ""
sortKey: -1708814692952
method: GET
headers:
- name: User-Agent
value: insomnia/8.6.1
settings:
renderRequestBody: true
encodeUrl: true
followRedirects: global
cookies:
send: true
store: true
rebuildPath: true
- url: http://127.0.0.1:1337/api/v2/user/list
name: Get All Users
meta:
id: req_fff03a9ede964b13aed660c70a89916f
id: req_8173bbe03464471fafb4aa94542009c0
created: 1727569473310
modified: 1727569546238
isPrivate: false
Expand All @@ -357,12 +337,12 @@ collection:
send: true
store: true
rebuildPath: true
- url: http://127.0.0.1:1337/api/v2/user/admin/1337
- url: http://127.0.0.1:1337/api/v2/user/admin/76561197970271912
name: Admin Steam ID
meta:
id: req_5be4ea11f82f402d8d8ae3799c3bd8f9
id: req_d49e6fc52b104164b7af4dc846391dea
created: 1727729676928
modified: 1727729784226
modified: 1772008652772
isPrivate: false
description: ""
sortKey: -1727729676928
Expand All @@ -381,7 +361,7 @@ collection:
- url: http://127.0.0.1:1337/api/v2/user/isdonor/1337
name: Is Donor SteamID
meta:
id: req_f74a697f4ec84b6d86dcae9ef3d7bb49
id: req_4852249f62884335a399d8ff36fd8538
created: 1727730248138
modified: 1727730392231
isPrivate: false
Expand All @@ -399,12 +379,12 @@ collection:
send: true
store: true
rebuildPath: true
- url: http://127.0.0.1:1337/api/v2/user/1337
- url: http://127.0.0.1:1337/api/v2/user/76561197970271912
name: Get User
meta:
id: req_d28bcd23e95e430eba1bd0b1189ebbea
id: req_cc8627bca082466e9884be61e4a4822c
created: 1727730684341
modified: 1727730713639
modified: 1772004693901
isPrivate: false
description: ""
sortKey: -1727730684341
Expand All @@ -420,20 +400,41 @@ collection:
send: true
store: true
rebuildPath: true
- url: 127.0.0.1:1337/api/v2/character/76561197970271912/2
name: Get Character By STEAMID and SLOT
meta:
id: req_45c6c0d6fdf74fe1b477ca41f6ae5290
created: 1772004912440
modified: 1772004925147
isPrivate: false
description: ""
sortKey: -1702091396797
method: GET
headers:
- name: User-Agent
value: insomnia/8.4.5
settings:
renderRequestBody: true
encodeUrl: true
followRedirects: global
cookies:
send: true
store: true
rebuildPath: true
- name: Rollback
meta:
id: fld_b07124d8afaf476eba0569c78d52217b
id: fld_256d4ddef2eb42a0a2c9b8967ec1f2c4
created: 1702169927186
modified: 1702169927186
sortKey: -1702169927187
description: ""
children:
- url: http://127.0.0.1:1337/api/v2/rollback/character/1ef7ffb5-a353-4fed-884c-49c191a78bdd
- url: 127.0.0.1:1337/api/v2/rollback/character/b07ce88f-fe4b-48fc-8b0d-e23e04d35789
name: Character Versions
meta:
id: req_e5f9fccff7d645049438ac8f9af6cc59
id: req_8ba340a74190489d8d2d3c5268198180
created: 1702169943633
modified: 1708813512893
modified: 1772006700822
isPrivate: false
description: ""
sortKey: -1702169943633
Expand All @@ -453,12 +454,12 @@ cookieJar:
name: Default Jar
meta:
id: jar_99d30891da4bdcebc63947a8fc17f076de878684
created: 1750805916193
modified: 1750805916193
created: 1771818355962
modified: 1771818355962
environments:
name: Base Environment
meta:
id: env_99d30891da4bdcebc63947a8fc17f076de878684
created: 1750805916130
modified: 1750805916130
created: 1771818355961
modified: 1771818355961
isPrivate: false
Loading