# Functions
NewClient create a new OPA client with the specified host & service.
NewClientFromEnv create a new opa client using environnement variables
OPA_HOST for the host
SERVICE_NAME For the current (requests) service name.
NewMock create a new portal mock client.
# Structs
Authorization struct for authz "result": { "authorized": false, "data": { "userIds": [ "00004" ] }, "route": "tidewhisperer-get" }.
ClientStruct used to store infos for this API.
HTTPInput struct sent to OPA.
MockClient The mocked interface to portal-api.
# Interfaces
Client is the interface to opa.