Skip to content

tiny-systems/platform-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

Usage

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 <key> gRPC metadata header.

Regenerate

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

buf generate

Requires the buf CLI.

License

MIT.

About

Generated Go gRPC clients for the Tiny Systems platform

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors