Skip to content

Commit

Permalink
golint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
skotambkar committed Oct 22, 2020
1 parent c7ef00b commit b44559b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion service/internal/s3shared/update_endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,20 @@ import (
"github.com/awslabs/smithy-go/transport/http"
)

// EnableDualstackMiddleware represents middleware struct for enabling dualstack support
type EnableDualstackMiddleware struct {
// UseDualstack indicates if dualstack endpoint resolving is to be enabled
UseDualstack bool
ServiceID string

// ServiceID is the service id prefix used in endpoint resolving
// by default service-id is 's3' and 's3-control' for service s3, s3control.
ServiceID string
}

// ID returns the middleware ID.
func (*EnableDualstackMiddleware) ID() string { return "EnableDualstackMiddleware" }

// HandleSerialize handles serializer middleware behavior when middleware is executed
func (u *EnableDualstackMiddleware) HandleSerialize(
ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler,
) (
Expand Down

0 comments on commit b44559b

Please sign in to comment.