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