apigw

package
v1.9.4 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Endpoint string
	Region   string
	AWS      *aws.Config
}

type Router

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

func NewRouter

func NewRouter(routes []*gateway.Route) *Router

func (*Router) FindRoute

func (c *Router) FindRoute(request *http.Request) (*gateway.Route, error)

type Service

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

func New

func New(router *Router, cfg *Config) *Service

func (*Service) CallLambda

func (s *Service) CallLambda(ctx context.Context, route *gateway.Resource, anEvent interface{}) ([]byte, error)

func (*Service) Do

func (s *Service) Do(writer http.ResponseWriter, request *http.Request)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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