https://github.com/gameworkstore/async-network-engine-go
Go repository of async engine UPM
https://github.com/gameworkstore/async-network-engine-go
Last synced: about 1 year ago
JSON representation
Go repository of async engine UPM
- Host: GitHub
- URL: https://github.com/gameworkstore/async-network-engine-go
- Owner: GameWorkstore
- License: mit
- Created: 2021-02-28T03:08:26.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-12-11T23:59:52.000Z (over 2 years ago)
- Last Synced: 2025-01-12T05:12:20.721Z (over 1 year ago)
- Language: Go
- Size: 30.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Async Network Engine Go
Unity http requests made easy to interoperability with Go Lang + Google Protobuf functions!
Supported Cloud Functions:
- Google Cloud Functions
- Amazon Web Services Lambdas
Use at your own risk!
# Repository
[Async Network Engine Go](https://github.com/GameWorkstore/async-network-engine-go) is a go module developed side-by-side with UnityEngine open-source module [Async Network Engine](https://github.com/GameWorkstore/async-network-engine).
Is intended to be used together, but it suitable be used with any custom GoogleProtobuf client.
# How to install
At go.mod, add async network engine:
```json
module example.com/module
go 1.13
require github.com/GameWorkstore/async-network-engine-go v0.1.3
```
and execute
> go mod tidy
to download it into your machine.
or use
> go get github.com/GameWorkstore/async-network-engine-go
on the case want to use it in many projects.
# Implementation
## GCP Troubleshoot
> My function is returning ErrorProtocol for any input.
if you don't give access public for your function it might fail
## AWS Troubleshoot
> CloudFormation is returning errors
Verify all variables, !Ref and links, you might be forgetting something. CloudFormations is very sensitive to linkage errors.
> My lambda is returning error 500 Internal Server error.
If you are receiving this and error object is returning null, it might be a bad configuration causing your lambda to not run.
Verify if you function is running by adding a fmt.Println("test") at main() function to ensure the function is starting.
Some issues that may prevent the start of function:
- The functions ins't at correct path when extracted from the zip.
- The function package name isn't main where main() function is declared.
- lambda.Start() is never begin called to initialize the function.
- The function is crashing upon initialization
If the function is working normally, them you might receive error 500 - ErrorInternalServer with AWSError, when specified by the programmer.
# Future Work
Integrate with gRPC may be the natural evolution of this package, but it's production ready at current state.
# Contributions
If you are using this library and want to submit a change, go ahead! Overall, this project accepts contributions if:
- Is a bug fix;
- Or, is a generalization of a well-known issue;
- Or is performance improvement;
- Or is an improvement to already supported feature.
Also, you can donate to allow us to drink coffee while we improve it for you!