Go Server SDK

Golang SDK for the Chatkit service.

Functionality

This Golang SDK if provided for managing Chatkit users and interacting with roles and permissions of those users. It also contains some helper functions for creating your own JWTs for authentication with the Chatkit service.

It is not to be confused with an SDK intended to allow usage of the Chatkit API as a Chatkit user (i.e. joining a room as a user and sending messages).

Installing

1
go get github.com/pusher/chatkit-server-go

Source

The implementation source can be found on GitHub. Please direct any feature requests or raise any bugs via a GitHub issue on the project.

API

Please refer to the GoDoc reference.

Errors

Error responses returned by the API take the shape of a Hash which contains details of the error.

1
2
3
4
5
{
  "error": "unprocessable_entity/invalid_json_body",
  "error_description": "Failed to parse request body",
  "error_uri": "https://docs.pusher.com/errors/unprocessable_entity/invalid_json_body"
}