Set up
To interact with Lattice using the Lattice SDK, set up your authorization tokens and environment endpoint as system variables, then install the SDK in a language of your choice. Lattice provides the following canonical REST SDKs:
If you want to use the Lattice SDK for gRPC, see Generate the Lattice SDK for gRPC.
Before you begin
-
If you do not have access to Lattice Sandboxes, or an existing Lattice deployment configured by Anduril, request to join the Lattice SDK developer program.
-
If you are using Lattice Sandboxes, complete the steps in Developing with Lattice Sandboxes to create an environment and generate your authorization tokens.
-
If you are using another deployment of Lattice, verify access to Lattice using your environment endpoint. If you can’t access the environment, contact your Anduril representative for help.
Set system variables
If you are using Lattice Sandboxes
Add your Sandboxes token. If you do not have one, create a new token.
Get the SDK for REST
Lattice provides REST SDK support in the following languages:
Go
Java
Python
TypeScript
Download the latest version of Go.
Generate the SDK for gRPC
To generate your own gRPC artifacts, choose a language from the Lattice SDK Buf Schema Registry. For additional information of using the Buf Schema Registry, please refer to their guide
For example, to generate the gRPC client and required server stubs in Go, do the following:
Install the latest versions of Go,
Create a new folder and initialize your project:
This generates a go.mod
file in the project directory.
Generate the client and server stubs using the grpc/go
framework.
This creates a go.sum
file in the project directory.
What’s next?
- Start building and publishing entities into Lattice.
- Learn how to watch entities, stream specific components, and apply filters.
- See the Lattice sample applications.