adapter

package
v0.0.0-...-dcd54df Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2020 License: Apache-2.0 Imports: 30 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInfo

func GetInfo() adapter.Info

GetInfo returns the adapter.Info associated with this implementation.

Types

type ApigeeHandler

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

ApigeeHandler handles a single tenant (org/env)

func (*ApigeeHandler) HandleAnalytics

func (h *ApigeeHandler) HandleAnalytics(ctx context.Context, im []*analytics.InstanceMsg) error

HandleAnalytics is in the context of a single tenant

func (*ApigeeHandler) HandleAuthorization

func (h *ApigeeHandler) HandleAuthorization(ctx context.Context, im *authorization.InstanceMsg) (*model.CheckResult, error)

HandleAuthorization is in the context of a single tenant

type GRPCAdapter

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

GRPCAdapter handles multi-tenancy

func NewGRPCAdapter

func NewGRPCAdapter(addr string) (*GRPCAdapter, error)

NewGRPCAdapter creates a new no session server from given args.

func (*GRPCAdapter) Addr

func (g *GRPCAdapter) Addr() string

Addr returns the listening address of the server

func (*GRPCAdapter) Close

func (g *GRPCAdapter) Close() error

Close gracefully shuts down the server; used for testing

func (*GRPCAdapter) HandleAnalytics

HandleAnalytics is a gRPC endpoint

func (*GRPCAdapter) HandleAuthorization

HandleAuthorization is a gRPC endpoint

func (*GRPCAdapter) Run

func (g *GRPCAdapter) Run(shutdown chan error)

Run starts the server run

type Server

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

Server is the gRPC server instance

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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