Documentation ¶
Index ¶
- func Send(ctx context.Context, input *SendInput) error
- type Handler
- type M
- type Option
- type Request
- type RequestContext
- type Response
- type SendInput
- type Service
- func (s *Service) DELETE(path string, handler Handler)
- func (s *Service) GET(path string, handler Handler)
- func (s *Service) Handler(ctx context.Context, request Request) (Response, error)
- func (s *Service) PATCH(path string, handler Handler)
- func (s *Service) POST(path string, handler Handler)
- func (s *Service) PUT(path string, handler Handler)
- func (s *Service) Start()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Request ¶
type Request struct { Body string `json:"body"` Headers map[string]string `json:"headers"` HTTPMethod string `json:"httpMethod"` Path string `json:"path"` Resource string `json:"resource"` MultiValueHeaders map[string][]string `json:"multiValueHeaders"` QueryParams map[string]string `json:"queryStringParameters"` MultiValueQueryParams map[string][]string `json:"multiValueQueryStringParameters"` RequestContext RequestContext `json:"requestContext"` PathParams map[string]string `json:"pathParameters"` }
func (Request) GetRequestID ¶
type RequestContext ¶
type Response ¶
type Response struct { StatusCode int `json:"statusCode"` Body interface{} `json:"body"` }
Click to show internal directories.
Click to hide internal directories.