Switch to standard req/res name
This commit is contained in:
parent
4c69ddb99f
commit
2f0e19ced9
@ -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)
|
||||
}
|
||||
|
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user