An open API service indexing awesome lists of open source software.

https://github.com/tiny-systems/platform-go

Generated Go gRPC clients for the Tiny Systems platform
https://github.com/tiny-systems/platform-go

Last synced: 12 days ago
JSON representation

Generated Go gRPC clients for the Tiny Systems platform

Awesome Lists containing this project

README

          

# platform-go

Generated Go gRPC clients + message types for the Tiny Systems platform API. Used by `mcp-server` and other external clients that talk to a Tiny Systems platform deployment over gRPC.

## Install

```sh
go get github.com/tiny-systems/platform-go
```

## Usage

```go
import (
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
platform "github.com/tiny-systems/platform-go"
)

creds := credentials.NewTLS(nil)
conn, _ := grpc.NewClient("grpc-api.tinysystems.io:443",
grpc.WithTransportCredentials(creds),
)

projects := platform.NewProjectServiceClient(conn)
resp, err := projects.List(ctx, &platform.ProjectListRequest{}, grpc.Header(metadata.Pairs(
"authorization", "Bearer " + devKey,
)))
```

Authentication is via a developer key issued from the Tiny Systems dashboard (Settings → Developer keys), sent as an `Authorization: Bearer ` gRPC metadata header.

## Regenerate

This package is regenerated from the proto files under `proto/`:

```sh
buf generate
```

Requires the [buf CLI](https://buf.build/docs/installation).

## License

MIT.