kong

package
v0.0.0-...-533f09b Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrorCreatingJwt = "creating jwt"
)

Variables

View Source
var Service = NewKong()

Functions

This section is empty.

Types

type Claims

type Claims struct {
	Iss string `json:"iss"`
	jwt.StandardClaims
}

type Kong

type Kong struct {
	// contains filtered or unexported fields
}

func NewKong

func NewKong() *Kong

func (*Kong) CreateCredentials

func (k *Kong) CreateCredentials(email string) (string, error)

CreateCredentials Creates a JWT keys to a user POST to `http://konghost:8001/consumers/%s/jwt`

func (*Kong) CreateCustomer

func (k *Kong) CreateCustomer(email string) error

CreateCustomer Creates a customer on kong POST to `http://konghost:8001/consumer`

Jump to

Keyboard shortcuts

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