Switch to standard req/res name

This commit is contained in:
some 2024-10-01 17:31:18 -04:00
parent 4c69ddb99f
commit 2f0e19ced9
Signed by: some
GPG Key ID: 65D0589220B9BFC8
2 changed files with 6 additions and 6 deletions

View File

@ -100,13 +100,13 @@ type UnimplementedCallbackServer struct{}
func (u UnimplementedCallbackServer) mustEmbedUnimplementedCallbackServer() {}
func (u UnimplementedCallbackServer) Callback(callback *CallbackRequest) (callbackResp *CallbackResponse, callbackErr *CallbackError) {
func (u UnimplementedCallbackServer) Callback(req *CallbackRequest) (res *CallbackResponse, errRes *CallbackError) {
ce := CallbackErrorUnimplemented
callbackErr = &ce
errRes = &ce
return
}
type CallbackServer interface {
mustEmbedUnimplementedCallbackServer()
Callback(callback *CallbackRequest) (callbackResp *CallbackResponse, callbackErr *CallbackError)
Callback(*CallbackRequest) (*CallbackResponse, *CallbackError)
}

View File

@ -117,13 +117,13 @@ type UnimplementedTokenServer struct{}
func (u UnimplementedTokenServer) mustEmbedUnimplementedTokenServer() {}
func (u UnimplementedTokenServer) Token(token *TokenRequest) (tokenResp *TokenResponse, tokenErr *TokenError) {
func (u UnimplementedTokenServer) Token(req *TokenRequest) (res *TokenResponse, errRes *TokenError) {
te := TokenErrorUnimplemented
tokenErr = &te
errRes = &te
return
}
type TokenServer interface {
mustEmbedUnimplementedTokenServer()
Token(token *TokenRequest) (tokenResp *TokenResponse, tokenErr *TokenError)
Token(*TokenRequest) (*TokenResponse, *TokenError)
}