d1-client-go

module
v0.1.30-ci.64 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2022 License: Apache-2.0

README

Go Client Library for CYBERCRYPT D1 and K1;

Go client libraries for

Usage

In order to use the client you will need credentials for the D1 Generic server. When setting up the server the first time, you need to bootstrap an initial user with credentials either through the executable as described here. Subsequent users can be created through the API as described here.

The easiest way to use the D1 Generic client is through the NewGenericClientWR constructor. The resulting client will automatically refresh the user's access token when it expires. A similar constructor, NewStorageClientWR, exists for D1 Storage. For specific code examples, see the godocs.

Development

Make targets are provided for various tasks. To get an overview run make help. To build the clients run make build.

The D1 Generic and Storage clients can be tested against a docker deployment of the services by running make docker-generic-test and make docker-storage-test.

License

The software in the CYBERCRYPT d1-client-go repository is licensed under the Apache License 2.0.

Directories

Path Synopsis
Package client contains clients for the CYBERCRYPT D1 Generic service.
Package client contains clients for the CYBERCRYPT D1 Generic service.
Package client contains clients for the CYBERCRYPT D1 Storage service.
Package client contains clients for the CYBERCRYPT D1 Storage service.
d1-client-go/k1 is a client library for CYBERCRYPT K1.
d1-client-go/k1 is a client library for CYBERCRYPT K1.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL