package
0.1.2
Repository: https://github.com/threefoldtech/zosbase.git
Documentation: pkg.go.dev

# Functions

Accepted response.
AsHandlerFunc is a helper wrapper to make implementing actions easier.
BadRequest result.
Conflict response.
Created return a created response.
Error generic error response.
Forbidden response.
NewAuthMiddleware creates a new AuthMiddleware using jwt signed by the caller.
NewUserMap create a new UserMap that uses the users collection to find the key.
NoContent response.
NotFound response.
Ok return a ok response.
PaymentRequired result.
TwinID extracts twin id from request.
TwinPublicKey extracts twin public key from request.
UnAuthorized response.
Unavailable returned when server is too busy.

# Interfaces

Response interface.

# Type aliases

Action interface.
UserMap implements provision.Twins for the users collections.