Documentation ¶
Index ¶
- func APIGateway(payload []byte, endpoint, region, method string, ...) ([]byte, error)
- func APIGatewayWithContext(ctx context.Context, payload []byte, endpoint, region, method string, ...) ([]byte, error)
- func AppSync(payload []byte, endpoint, region string, creds *credentials.Credentials) ([]byte, error)
- func AppSyncWithContext(ctx context.Context, payload []byte, endpoint, region string, ...) ([]byte, error)
- func ParseGraphQLResponse(body io.ReadCloser) (json.RawMessage, error)
- type AWSService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func APIGateway ¶
func APIGateway(payload []byte, endpoint, region, method string, creds *credentials.Credentials) ([]byte, error)
APIGateway signs and sends a request to API Gateway
func APIGatewayWithContext ¶
func APIGatewayWithContext(ctx context.Context, payload []byte, endpoint, region, method string, creds *credentials.Credentials) ([]byte, error)
APIGatewayWithContext does the same as APIGatewayDeliver, with a context.Context object
func AppSync ¶
func AppSync(payload []byte, endpoint, region string, creds *credentials.Credentials) ([]byte, error)
AppSync signs and send a request to appsync. It also parse the response and looks for graphql errors
func AppSyncWithContext ¶
func AppSyncWithContext(ctx context.Context, payload []byte, endpoint, region string, creds *credentials.Credentials) ([]byte, error)
AppSyncWithContext does the same as AppSyncDeliver, with a context.Context object
func ParseGraphQLResponse ¶
func ParseGraphQLResponse(body io.ReadCloser) (json.RawMessage, error)
ParseGraphQLResponse attempts to read the response, and extract grpahql-formatted errors
Types ¶
type AWSService ¶
type AWSService string
const ( AppSyncService AWSService = "appsync" APIGatewayService AWSService = "execute-api" )
Click to show internal directories.
Click to hide internal directories.