Documentation
¶
Index ¶
Constants ¶
View Source
const ( Authorization = "Authorization" ContentType = "Content-Type" AmzTarget = "X-Amz-Target" )
Variables ¶
This section is empty.
Functions ¶
func NewChiMux ¶
func NewChiMux(moto MotoService, sqs SqsService, proxy Proxy) *chi.Mux
func ServiceFromRequest ¶
Types ¶
type ContextKey ¶
type ContextKey string
type MotoService ¶
type MotoService interface {
SaveRequest(ctx context.Context, request domain.MotoRequest) error
}
type SqsResponse ¶
type SqsResponse struct {
// contains filtered or unexported fields
}
func NewSqsResponse ¶
func NewSqsResponse(service SqsService, w http.ResponseWriter, payload string) SqsResponse
func (SqsResponse) Header ¶
func (s SqsResponse) Header() http.Header
func (SqsResponse) ReadFrom ¶
func (s SqsResponse) ReadFrom(r io.Reader) (int64, error)
ReadFrom is necessary because response is being decorated; otherwise io.Copy will throw a short read error
func (*SqsResponse) WriteHeader ¶
func (s *SqsResponse) WriteHeader(statusCode int)
Click to show internal directories.
Click to hide internal directories.