This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package httpserver | |
import ( | |
"encoding/json" | |
"net/http" | |
) | |
func CreateTodo(w http.ResponseWriter, r *http.Request) { | |
ctx := r.Context() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package sqs | |
import ( | |
"context" | |
"github.com/cloudevents/sdk-go/pkg/cloudevents" | |
) | |
// EventRouter can be used to route events to subscribe handlers to a specific event type | |
type EventRouter struct { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// pkg/metrics/metrics.go | |
package metrics | |
import ( | |
"log" | |
"github.com/DataDog/datadog-go/v5/statsd" | |
) | |
var s statsd.ClientInterface = &statsd.NoOpClient{} |