src.dualinventive.com/go/mtinfo-go/README.md

23 lines
620 B
Markdown

# 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.