Skip to main content

Golang SDK Initialization

Last updated on

Before using the Notifications service from the Golang SDK, you will need to initialize the SDK by following the steps below:

notificationService := &service.NotificationServiceWebsocket{
Client: &repository.ConfigRepositoryImpl{},
TokenRepository: &repository.TokenRepositoryImpl{},
ConnectionManager: &utils.ConnectionManagerImpl{},
}

Once completed, you can use the Golang SDK to create, read, update, and delete Notifications from your serverless app.