-
-
Notifications
You must be signed in to change notification settings - Fork 564
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
41 changed files
with
339 additions
and
264 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,4 +59,4 @@ type ( | |
{{- end }} | ||
{{- end }} | ||
) | ||
{{- end }} | ||
{{- end }} |
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
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
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
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
15 changes: 9 additions & 6 deletions
15
...ervice/testdata/interceptors/interceptor-with-read-payload_interceptor_wrappers.go.golden
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,29 @@ | ||
|
||
// wrapValidation applies the validation interceptor to endpoints. | ||
func wrapValidation(endpoint goa.Endpoint, i ServerInterceptors, method string) goa.Endpoint { | ||
|
||
// wrapValidationMethod applies the validation server interceptor to endpoints. | ||
func wrapMethodValidation(endpoint goa.Endpoint, i ServerInterceptors) goa.Endpoint { | ||
return func(ctx context.Context, req any) (any, error) { | ||
info := &ValidationInfo{ | ||
Service: "InterceptorWithReadPayload", | ||
Method: method, | ||
Method: "Method", | ||
Endpoint: endpoint, | ||
RawPayload: req, | ||
} | ||
return i.Validation(ctx, info, endpoint) | ||
} | ||
} | ||
|
||
// wrapClientValidation applies the validation interceptor to endpoints. | ||
func wrapClientValidation(endpoint goa.Endpoint, i ClientInterceptors, method string) goa.Endpoint { | ||
// wrapClientValidationMethod applies the validation client interceptor to | ||
// endpoints. | ||
func wrapClientMethodValidation(endpoint goa.Endpoint, i ClientInterceptors) goa.Endpoint { | ||
return func(ctx context.Context, req any) (any, error) { | ||
info := &ValidationInfo{ | ||
Service: "InterceptorWithReadPayload", | ||
Method: method, | ||
Method: "Method", | ||
Endpoint: endpoint, | ||
RawPayload: req, | ||
} | ||
return i.Validation(ctx, info, endpoint) | ||
} | ||
} | ||
|
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
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
14 changes: 8 additions & 6 deletions
14
...service/testdata/interceptors/interceptor-with-read-result_interceptor_wrappers.go.golden
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,28 @@ | ||
|
||
// wrapCaching applies the caching interceptor to endpoints. | ||
func wrapCaching(endpoint goa.Endpoint, i ServerInterceptors, method string) goa.Endpoint { | ||
|
||
// wrapCachingMethod applies the caching server interceptor to endpoints. | ||
func wrapMethodCaching(endpoint goa.Endpoint, i ServerInterceptors) goa.Endpoint { | ||
return func(ctx context.Context, req any) (any, error) { | ||
info := &CachingInfo{ | ||
Service: "InterceptorWithReadResult", | ||
Method: method, | ||
Method: "Method", | ||
Endpoint: endpoint, | ||
RawPayload: req, | ||
} | ||
return i.Caching(ctx, info, endpoint) | ||
} | ||
} | ||
|
||
// wrapClientCaching applies the caching interceptor to endpoints. | ||
func wrapClientCaching(endpoint goa.Endpoint, i ClientInterceptors, method string) goa.Endpoint { | ||
// wrapClientCachingMethod applies the caching client interceptor to endpoints. | ||
func wrapClientMethodCaching(endpoint goa.Endpoint, i ClientInterceptors) goa.Endpoint { | ||
return func(ctx context.Context, req any) (any, error) { | ||
info := &CachingInfo{ | ||
Service: "InterceptorWithReadResult", | ||
Method: method, | ||
Method: "Method", | ||
Endpoint: endpoint, | ||
RawPayload: req, | ||
} | ||
return i.Caching(ctx, info, endpoint) | ||
} | ||
} | ||
|
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
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
Oops, something went wrong.