Move SDK server code from pkg/gameservers to a separate package #445
Labels
kind/cleanup
Refactoring code, fixing up documentation, etc
kind/design
Proposal discussing new features / fixes and how they should be implemented
Milestone
Right now
pkg/gameservers
implements two disjoint features:I think we need to keep SDK binary small and free of dependencies it does not need (to reduce attack surface and memory footprint). Right now we're relying on linker to exclude controller-related code from
sdk-server
binary. While the linker is presently doing a good job, it's very easy to accidentally add aninit()
function which will bring unwanted dependency on controller code to SDK binary.I suggest we move
sdk.go
andlocalsdk.go
and related files topkg/sdkserver
before they become entangled.The text was updated successfully, but these errors were encountered: