Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 2.55 KB

File metadata and controls

34 lines (27 loc) · 2.55 KB

Go SDK Reference

The Go SDK covers the server-side Channel app responsibilities provided by the TypeScript SDK, using Go builders, generics, structs, and Gin instead of decorators, Zod, and NestJS.

Verified release: github.com/channel-io/app-sdk/go v0.14.0, requiring Go 1.25.

Reference Map

TypeScript To Go Mapping

Responsibility TypeScript Go
App registry ChannelAppModule discovery appsdk.App
Typed Function @Func with schema decorators appsdk.Register / appsdk.MustRegister
Standard Extension @Extension extension/* builder
Input/output schema Zod Go struct/schema tags or explicit schema
Function route NestJS controller server or server/gin
Request signature SignatureGuard server.WithSignature
App/channel token TokenManager native.TokenManager
Native client NativeFunctionClient native.Client
Test helper SDK testing utilities testkit
WAM frontend @channel.io/app-sdk-wam Same TypeScript/React package

The public Go package source is the contract. When this reference and an example disagree, follow exported Go APIs and tests first, then this reference and the Go tutorial.