NewClient returns a Lambda Extensions API client
(awsLambdaRuntimeAPI string)
| 63 | |
| 64 | // NewClient returns a Lambda Extensions API client |
| 65 | func NewClient(awsLambdaRuntimeAPI string) *Client { |
| 66 | baseURL := fmt.Sprintf("http://%s/2020-01-01/extension", awsLambdaRuntimeAPI) |
| 67 | return &Client{ |
| 68 | baseURL: baseURL, |
| 69 | httpClient: &http.Client{}, |
| 70 | } |
| 71 | } |
| 72 | |
| 73 | // Register will register the extension with the Extensions API |
| 74 | func (e *Client) Register(ctx context.Context, filename string) (*RegisterResponse, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected