Open
Conversation
Full-featured Go SDK for InsForge with feature parity to the JS SDK: - Auth: sign up, sign in (password + OAuth), sign out, session refresh, profile management, email verification, password reset - Database: fluent PostgREST-style query builder (select/insert/update/delete with filters), RPC calls, raw SQL - Storage: upload (direct + S3 presigned multipart), download (direct + presigned), list, remove, public URLs - AI: chat completions (streaming + non-streaming), embeddings, image generation - Realtime: Socket.IO v4 WebSocket pub/sub with subscribe/publish/on/off/once - Functions: serverless edge function invocation - Email: transactional email sending Includes unit tests for Auth, Database, and Storage modules.
Author
|
@tonychang04 kindly review |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
How did you test this change?
insforge/): net/http/httptest in-process server covering Auth (sign up success/error, sign in token storage, sign out), Database (SELECT, INSERT, RPC), and Storage (public URL, list, remove)Note
Add InsForge Go SDK with auth, database, storage, AI, realtime, functions, and email modules
github.com/InsForge/insforge-go(Go 1.21) with a top-levelClientthat wires all service modules via a shared internal HTTP client.Authwith full user lifecycle flows (sign-up, sign-in, OAuth, session refresh, password reset);Databasewith a PostgREST-style query builder (select, filter, insert, update, delete, RPC); andStoragewith bucket-scoped upload, download, list, and delete.AIwith non-streaming and SSE streaming chat completions, embeddings, and image generation;Realtimeusing gorilla/websocket for pub/sub event handling;Functionsfor invoking edge functions; andEmailsfor sending transactional email.InsForgeErrortype and a genericResult[T]for structured responses.httptestservers.Macroscope summarized 47c6c68.