gateway

package
v0.0.0-...-a7bfd2f Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotStarted = errors.New("timeout exceeded starting Cerbos")

Functions

func MkGatewayResponse

func MkGatewayResponse(hresp *http.Response) (res *events.APIGatewayV2HTTPResponse, err error)

Types

type Gateway

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

func NewGateway

func NewGateway(addr string) (*Gateway, error)

NewGateway creates a new Gateway instance.

func (*Gateway) Invoke

func (g *Gateway) Invoke(ctx context.Context, payload []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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