package
0.4.0
Repository: https://github.com/monetha/mth-core.git
Documentation: pkg.go.dev

# Functions

NewRestAPIClient creates a new Tyk REST API client.
NewRestAPIStub creates a new stub.
NewSession creates a new Tyk session object with our default settings.

# Variables

ErrBadRequest is returned when request was incorrect.
ErrForbidden is returned when access is denied.
ErrNotFound is returned when a key is not found.
ErrUnauthorized is returned when authentication information is missing.

# Structs

AllowedURL defines an allowed URL in an API.
APIAccessRules is used while defining what an auth token has access to.
JWTData contains JWT secret.
RestAPIClient makes requests to Tyk REST API.
RestAPIStub is a stub which implements RestAPI.
Session is incomplete definition of Tyk session object, to cover our needs while managing Tyk sessions.

# Interfaces

RestAPI defines methods to access Tyk REST API.