Unmeshed Logo

Language SDKs

Unmeshed Go SDK

This README will guide you on how to set up Unmeshed credentials, run workers, and get started with the Unmeshed platform using the Go SDK.


Installation

Initialize a Go module and add the SDK dependency:

bash

Quickstart Example

go

Configuration

You can tune the client for your workload with options like:

  • Client ID & Auth Token for authentication
  • Port (optional for HTTPS)
  • Base URL of your Unmeshed server
  • Batch Size, Delays, Timeouts, Max Workers for performance tuning

Example:

go

Writing & Registering Workers

A worker is a Go function that takes input and returns output. You can use different input/output types, including multiple return values.

go

Register workers:

go

Accessing Current Work Request

To get the currently executing work request:

go

Running the Client

go

The client will start polling for jobs and dispatching them to your workers asynchronously.


Process Definition Management

Create a Process Definition

go

Update a Process Definition

go

Get Process Definitions

go

Delete Process Definitions

go

Visit Unmeshed to get started.