Skip to content

v0.1.0 — Production-Ready OctaSpace Go SDK

Choose a tag to compare

@secretpray secretpray released this 15 Apr 09:22
· 14 commits to main since this release
b2ad8dd

✨ Features

Core Client

  • Multi-URL failover — automatic failover to backup hosts on network errors (connection refused, DNS, TLS)
  • Connection pooling — tuned http.Transport with MaxIdleConnsPerHost=10 for connection reuse
  • Configurable timeout — per-request timeout via WithTimeout option
  • Automatic retries — exponential backoff (500ms, 1s, 2s) with configurable max retries
  • Pluggable logging — integrate with your logger via NewStdLogger or custom adapter

API Coverage

  • Full resource support: Network, Accounts, Apps, Nodes, Services (MR/VPN/Render), Sessions
  • Type-safe data structures with custom JSON unmarshaling (FlexInt64, BigInt)
  • Comprehensive error handling with typed errors (APIError, NetworkError) and helper functions

Developer Experience

  • Example functions — godoc examples for all major use cases
  • Well-tested — 40+ unit and integration tests covering core flows
  • CI/CD ready — GitHub Actions matrix testing (Go 1.20–1.23 × ubuntu/macos)

📦 What's Included

  • Complete OctaSpace API client library
  • Smoke test tool for validating against live API
  • Configurable retry/failover strategies for production workloads
  • Comprehensive documentation with inline examples

🔗 Links