aboutsummaryrefslogtreecommitdiff
path: root/pkg
AgeCommit message (Collapse)Author
2022-10-15pkg/api/api0: Implement /client/serverspg9182
And it's _fast_, even with thousands of servers and hundreds of requests per second.
2022-10-15pkg/api/api0: Implement ServerListpg9182
* Efficient /client/servers JSON generation and caching. * Safe for concurrent usage. * Garbage collection model. * Simpler ghost server logic than old master server. * Reliable ID generation and server updates. * Ensures uniqueness by ID, Addr+GamePort, and Addr+AuthPort, even when reviving ghost servers.
2022-10-14pkg/api/api0: Set last server id in /client/auth_with_selfpg9182
2022-10-14pkg/api/api0: Relax /accounts/write_persistence serverId check for listen serverpg9182
2022-10-14pkg/api/api0: /accounts/write_persistence field name is pdatapg9182
Although the filename is file.pdata.
2022-10-14pkg/api/api0: Fix resp json id type for /client/auth_with_selfpg9182
2022-10-14pkg/api/api0: Implement /client/origin_authpg9182
2022-10-14pkg/origin: Use uint64 for uidspg9182
2022-10-14pkg/origin: Implement backoff for AuthMgrpg9182
2022-10-14pkg/origin: Implement AuthMgrpg9182
2022-10-14pkg/origin, cmd/origin-login-test: Return nucleus token expirypg9182
2022-10-14pkg/api/api0: Append newline to JSON responsespg9182
Makes it nicer to use with tools like curl.
2022-10-13pkg/api/api0: Implement version gatepg9182
2022-10-13pkg/api/api0: Add comment about /accounts/get_usernamepg9182
2022-10-13pkg/api/api0: Implement /client/auth_with_selfpg9182
2022-10-13pkg/api/api0: Minor log message fixpg9182
2022-10-13pkg/api/api0: Implement /client/mainmenupromospg9182
Also support varying it so things like version-specific messages can be shown.
2022-10-13pkg/api/api0/accounts: Fix OPTIONS allow headerpg9182
2022-10-13pkg/api/api0: Clear ETag when gzipping responsespg9182
2022-10-13pkg/api/api0: Reject pdata with too much trailing junkpg9182
2022-10-13pkg/storage/memstore: Implement account storagepg9182
2022-10-13pkg/api/api0/api0testutil: Add test suite for AccountStorage implspg9182
2022-10-13pkg/api/api0: Fix regression in bff9a5ca7c1ed1ab0af80d9cad17b63672f9a9fcpg9182
/player/ endpoints fall through.
2022-10-13pkg/api/api0: More descriptive docs for AccountStoragepg9182
2022-10-13pkg/api/api0: Implement account endpointspg9182
* POST /accounts/write_persistence?id&serverId multipart(file.pdata) * GET /accounts/get_username?uid * GET /accounts/lookup_uid?username
2022-10-13pkg/api/api0: Add AccountStorage interfacepg9182
2022-10-13pkg/api/api0: Refactor error message formattingpg9182
2022-10-13pkg/api/api0: Better error messages for missing paramspg9182
2022-10-13pkg/api/api0: Don't write body on error for HEAD requestspg9182
2022-10-13pkg/api/api0: Send status for OPTIONS requestpg9182
2022-10-13pkg/api/api0: Add BAD_REQUEST errorpg9182
2022-10-13pkg/api/api0: Minor improvementspg9182
2022-10-13pkg/api/api0, web: Implement static site handler, move redirectspg9182
2022-10-13pkg/api/api0: Add NotFound handlerpg9182
2022-10-13pkg/api/api0: Implement player info endpointspg9182
2022-10-13pkg/api/api0: Implement base handler and some helperspg9182
2022-10-13pkg/api/api0: Add INTERNAL_SERVER_ERRORpg9182
2022-10-13pkg/{pdata,pdef/pdefgen}: Fix string length checkpg9182
2022-10-13pkg/pdata: Embed default pdatapg9182
2022-10-13pkg/{api/api0/*,storage/*}: Add GetPdataHash method for pdata storagepg9182
2022-10-13pkg/api/api0: Import errors from ↵pg9182
R2Northstar/NorthstarMasterServer@b45ff0ef267712e8bff6cd718bb5dc1afcdec420
2022-10-13pkg/storage/memstore: Implement pdata storagepg9182
2022-10-13pkg/storage: Remove old stuffpg9182
2022-10-13pkg/api/api0/api0testutil: Add test suite for PdataStorage implspg9182
2022-10-12pkg/api/api0: Add pdata storage interfacepg9182
2022-10-12pkg/nstypes: Add basic consistency testspg9182
2022-10-12pkg/nstypes: Quote GoString value correctlypg9182
2022-10-12pkg/{pdata,pdef/pdefgen}: Remove s prefix from struct type namespg9182
2022-10-12pkg/{pdata,pdef/pdefgen}: Add support for JSON encodingpg9182
* Backwards-compatbile with old master server: * NaN/Inf floats are encoded as null. * Enums are encoded as the value name, or the number if unrecognized. * Names are the same as the pdef. * Exception: Strings don't include bytes after the null terminator. * Also supports filtering fields. * Decoding is not supported for now.
2022-10-12pkg/origin, cmd/origin-login-test: Handle auth errorspg9182