adapter

package
v0.0.0-...-08357c7 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2020 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server interface {
	Addr() string
	Close() error
	Run(shutdown chan error)
}

Server is basic server interface

type TykGRPCAdapter

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

TykGrpcAdapter supports authorization template.

func NewTykGrpcAdapter

func NewTykGrpcAdapter(addr string) (*TykGRPCAdapter, error)

TODO: extend config inputs

func (*TykGRPCAdapter) Addr

func (s *TykGRPCAdapter) Addr() string

Addr returns the listening address of the server

func (*TykGRPCAdapter) Close

func (s *TykGRPCAdapter) Close() error

Close gracefully shuts down the server; used for testing

func (*TykGRPCAdapter) HandleAuthorization

HandleAuthorization handles receiving an auth header from mixer and sending it to a Tyk Gateway for policy validation TODO The API Key can be a valid JWT with a corresponding API setup in Tyk TODO see: https://tyk.io/docs/basic-config-and-security/security/your-apis/json-web-tokens/ The key may be a plain bearer token but it needs to have been issued the Tyk Management Dashboard

func (*TykGRPCAdapter) Run

func (s *TykGRPCAdapter) Run(shutdown chan error)

Run starts the server run

Jump to

Keyboard shortcuts

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