forked from ory/fosite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
access_response.go
112 lines (87 loc) · 3.21 KB
/
access_response.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
// Automatically generated by MockGen. DO NOT EDIT!
// Source: github.com/ory-am/fosite (interfaces: AccessResponder)
package internal
import (
time "time"
gomock "github.com/golang/mock/gomock"
fosite "github.com/ory-am/fosite"
)
// Mock of AccessResponder interface
type MockAccessResponder struct {
ctrl *gomock.Controller
recorder *_MockAccessResponderRecorder
}
// Recorder for MockAccessResponder (not exported)
type _MockAccessResponderRecorder struct {
mock *MockAccessResponder
}
func NewMockAccessResponder(ctrl *gomock.Controller) *MockAccessResponder {
mock := &MockAccessResponder{ctrl: ctrl}
mock.recorder = &_MockAccessResponderRecorder{mock}
return mock
}
func (_m *MockAccessResponder) EXPECT() *_MockAccessResponderRecorder {
return _m.recorder
}
func (_m *MockAccessResponder) GetAccessToken() string {
ret := _m.ctrl.Call(_m, "GetAccessToken")
ret0, _ := ret[0].(string)
return ret0
}
func (_mr *_MockAccessResponderRecorder) GetAccessToken() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "GetAccessToken")
}
func (_m *MockAccessResponder) GetExtra(_param0 string) interface{} {
ret := _m.ctrl.Call(_m, "GetExtra", _param0)
ret0, _ := ret[0].(interface{})
return ret0
}
func (_mr *_MockAccessResponderRecorder) GetExtra(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "GetExtra", arg0)
}
func (_m *MockAccessResponder) GetTokenType() string {
ret := _m.ctrl.Call(_m, "GetTokenType")
ret0, _ := ret[0].(string)
return ret0
}
func (_mr *_MockAccessResponderRecorder) GetTokenType() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "GetTokenType")
}
func (_m *MockAccessResponder) SetAccessToken(_param0 string) {
_m.ctrl.Call(_m, "SetAccessToken", _param0)
}
func (_mr *_MockAccessResponderRecorder) SetAccessToken(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "SetAccessToken", arg0)
}
func (_m *MockAccessResponder) SetExpiresIn(_param0 time.Duration) {
_m.ctrl.Call(_m, "SetExpiresIn", _param0)
}
func (_mr *_MockAccessResponderRecorder) SetExpiresIn(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "SetExpiresIn", arg0)
}
func (_m *MockAccessResponder) SetExtra(_param0 string, _param1 interface{}) {
_m.ctrl.Call(_m, "SetExtra", _param0, _param1)
}
func (_mr *_MockAccessResponderRecorder) SetExtra(arg0, arg1 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "SetExtra", arg0, arg1)
}
func (_m *MockAccessResponder) SetScopes(_param0 fosite.Arguments) {
_m.ctrl.Call(_m, "SetScopes", _param0)
}
func (_mr *_MockAccessResponderRecorder) SetScopes(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "SetScopes", arg0)
}
func (_m *MockAccessResponder) SetTokenType(_param0 string) {
_m.ctrl.Call(_m, "SetTokenType", _param0)
}
func (_mr *_MockAccessResponderRecorder) SetTokenType(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "SetTokenType", arg0)
}
func (_m *MockAccessResponder) ToMap() map[string]interface{} {
ret := _m.ctrl.Call(_m, "ToMap")
ret0, _ := ret[0].(map[string]interface{})
return ret0
}
func (_mr *_MockAccessResponderRecorder) ToMap() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "ToMap")
}