|
|
||
|---|---|---|
| .. | ||
| build | ||
| testdata | ||
| vendor | ||
| CHANGELOG.md | ||
| Gopkg.lock | ||
| Gopkg.toml | ||
| Makefile | ||
| README.md | ||
| auth.go | ||
| authgrpc.go | ||
| authgrpc_test.go | ||
| client.go | ||
| client_test.go | ||
| config.go | ||
README.md
MTInfo - API Client
This repository contains a ready-to-go API client written in Go. It enables easy access to the MTInfo cloud environment.
Currently it only provided authentication related operations.
Start using mtinfo-go by creating a client:
cfg := mtinfo.Config{
Auth: mtinfo.AuthConfig{
PublicKey: "/etc/key_rsa.pub",
Grpc: mtinfo.GrpcEndpoint{
Host: "api.mtinfo.com",
Port: "3000",
},
},
client, err := mtinfo.NewClient(mtinfo.GRPC, cfg)
if err != nil {
panic(err)
}
Typically, mtinfo.Config could be read from a configuration file.