gamray
81592af770
Using transaction instead of normal handle to do multiple queries
2024-05-13 00:32:54 +02:00
gamray
64bbaed3ed
removed unusued code
2024-05-13 00:24:04 +02:00
gamray
cf1b33e170
fixed bad copy paste (200 ok should be sent on success)
2024-05-13 00:21:00 +02:00
gamray
4567108da8
Added separate endpoints to handle eggs (get, update and delete)
2024-05-12 22:37:43 +02:00
Up
8439519d8e
start on splitting api call handler function
2024-05-12 20:42:07 +02:00
Up
d70c082aa9
simplify json response writing
2024-05-12 20:05:46 +02:00
Up
f0c283af42
merge token and uuid lookups to reduce roundtrips
2024-05-12 19:44:04 +02:00
Up
81853b1863
forgot to update stats column
2024-05-12 08:38:57 +02:00
Up
a44a6c382f
save data when applying vouchers
2024-05-12 08:30:46 +02:00
Up
c06b1496a3
add watchtower in example compose file
2024-05-12 08:11:36 +02:00
Up
4430a18dae
update example compose file
2024-05-12 08:05:40 +02:00
Up
5d6bfe0c22
add accounts activity index
2024-05-12 05:12:46 +02:00
Up
2700afafdb
cleanup
2024-05-12 04:41:56 +02:00
Up
94df201bf7
update endpoint name
2024-05-12 03:42:35 +02:00
Up
884bb88cd3
add combined update endpoint
2024-05-12 03:34:08 +02:00
Up
ab69d940e6
update action step name
2024-05-12 01:23:29 +02:00
Up
43f2f5a163
Merge pull request #11 from slsyy/run-golangci-lint-in-CI
2024-05-12 00:28:46 +02:00
Krystian Chmura
03865f9b94
run golangci-lint in CI
2024-05-11 14:41:25 +02:00
maru
36f353b8a6
Clean up db.go
2024-05-11 02:30:20 -04:00
maru
5656fb96d1
Use log.Fatal isntead of panic
2024-05-11 02:24:20 -04:00
Up
dd013a1626
Merge pull request #8 from cgnetsec/master
2024-05-11 05:44:57 +02:00
ser3n1ty
8c209163db
Update README.md
2024-05-10 20:38:28 -07:00
ser3n1ty
1cec1d313d
Update README.md
2024-05-10 20:36:03 -07:00
Flashfyre
2704e64e38
Add newclear endpoint
2024-05-10 18:07:14 -04:00
maru
e97e5f73d5
Update ghcr.yml
2024-05-10 16:00:47 -04:00
maru
d4a906a0f1
Move HTTPS-related flags in rogueserver.go
2024-05-10 15:50:19 -04:00
maru
693663103b
Run formatter on files
2024-05-10 15:49:26 -04:00
Up
a8502fcd3f
add GitHub actions workflows and build docker image ( #9 )
...
* add default values for CLI args
* add development docker compose file
* prevent crash if userdata dir does not exist
* accounts, acccountStats
* account stats and create db indices
* compensations and daily runs
* ensure uniqueness of daily seed
* start on port 8001 by default for client parity
* add GitHub actions scripts and dockerfile
* add os architecture
* only build docker image on main repo
* add example compose file
2024-05-10 15:47:22 -04:00
maru
b5e8094039
Don't return INVALID on seed-related function error
2024-05-10 15:44:35 -04:00
maru
eea2266920
Remove unneeded assertion check in handleSaveData
2024-05-10 15:40:22 -04:00
maru
17294e5179
Fix handleDailySeed
2024-05-10 15:37:24 -04:00
maru
b91c169b16
endpoints.go consistency
2024-05-10 15:33:37 -04:00
Up
3ed5f41d58
make server automatically create DB schema if not exists ( #5 )
...
* add default values for CLI args
* add development docker compose file
* prevent crash if userdata dir does not exist
* accounts, acccountStats
* account stats and create db indices
* compensations and daily runs
* ensure uniqueness of daily seed
* start on port 8001 by default for client parity
* make generated schema match production
* sort imports
2024-05-10 15:30:47 -04:00
maru
8a32efeaa3
Clean up rogueserver.go
2024-05-10 13:40:00 -04:00
maru
633142eb29
Allow serving HTTPS
2024-05-10 13:16:35 -04:00
maru
fadd10602a
Don't log ErrNoRows in savedata
2024-05-09 14:26:54 -04:00
maru
e4de7c2391
Update database limiting code more
2024-05-09 14:22:20 -04:00
maru
de0bd74dc2
Update database limits
2024-05-09 14:13:19 -04:00
maru
59ea469fb6
Don't import legacy saves if system exists in database
2024-05-09 05:59:48 -04:00
ser3n1ty
e01364e1a6
Update README.md
2024-05-09 01:44:04 -07:00
ser3n1ty
d5e7b438f3
Update README.md
...
added updated information for the docker compose container that is being implemented
2024-05-09 00:57:07 -07:00
ser3n1ty
b00321f501
Update README.md
2024-05-09 00:51:44 -07:00
maru
4971ad9d42
Add new database limits
2024-05-08 20:19:33 -04:00
maru
192b777ac3
Set ArgonMaxInstances to number of cores
2024-05-08 20:08:10 -04:00
maru
7dbcb18ebf
Use INSERT instead of REPLACE for savedata storage functions
2024-05-08 17:23:07 -04:00
maru
0ead2da2da
Remove unused endpoint game/playercount
2024-05-08 15:47:56 -04:00
maru
6cb179b553
Clean up savedata.go
2024-05-07 20:38:12 -04:00
Up
405a578e8c
manually parse all save states for now
2024-05-07 19:33:21 -04:00
Up
0d6539a87b
continue on existing save ( #3 )
...
* long blob
* fix continue
* one slot only?
* fallback if there is no slot data yet
* Revert "one slot only?"
This reverts commit 20997e9cd8
.
2024-05-07 19:14:07 -04:00
Up
1f95f7c042
hotfix: move save data to DB ( #2 )
...
* start reading save data from DB
* finish migration code
* remove leftover dir creation
* fix import cycle
* remove more dir creation
* update gitignore
* fix pk
* better table creation
* use REPLACE INTO
* fix typo
2024-05-07 17:10:33 -04:00