endpoints.go (473B)
1 package imds 2 3 import ( 4 "context" 5 "github.com/aws/smithy-go/middleware" 6 ) 7 8 type resolveEndpointV2Middleware struct { 9 options Options 10 } 11 12 func (*resolveEndpointV2Middleware) ID() string { 13 return "ResolveEndpointV2" 14 } 15 16 func (m *resolveEndpointV2Middleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) ( 17 out middleware.FinalizeOutput, metadata middleware.Metadata, err error, 18 ) { 19 return next.HandleFinalize(ctx, in) 20 }