This repository contains an HTTP/2 API server implementation in Go. The server is designed with a focus on Quick Start.
api.go: Contains the core logic for the API server setup, including structures for API routes and the server itself.handlers.go: Contains public handler functions, including a basic heartbeat handler.helpers.go: Contains utility functions related to the API server.main.go: Main entry point for starting the server.
- Clone the repository:
git clone https://github.com/AndrewDonelson/go-http2-api
cd go-http2-api- Install the required Go dependencies:
go mod tidyNavigate to the root directory and run:
cd cmd/apisvr
go run main.goThe server will start on port 8080, offering HTTP/2 support.
The server provides several endpoints for zero-knowledge proofs and data broadcast:
/heartbeat: Basic endpoint to check if the service is alive.- ... (Add other endpoints as needed)
Feel free to submit pull requests or raise issues.