Documentation ¶
Index ¶
- type SessionRegistryService
- func (_m *SessionRegistryService) EXPECT() *SessionRegistryService_Expecter
- func (_m *SessionRegistryService) GetNodesByChain(chainId string) []*models.QosNode
- func (_m *SessionRegistryService) GetNodesMap() ...
- func (_m *SessionRegistryService) GetSession(req *pokt_v0models.GetSessionRequest) (*session_registry.Session, error)
- type SessionRegistryService_Expecter
- func (_e *SessionRegistryService_Expecter) GetNodesByChain(chainId interface{}) *SessionRegistryService_GetNodesByChain_Call
- func (_e *SessionRegistryService_Expecter) GetNodesMap() *SessionRegistryService_GetNodesMap_Call
- func (_e *SessionRegistryService_Expecter) GetSession(req interface{}) *SessionRegistryService_GetSession_Call
- type SessionRegistryService_GetNodesByChain_Call
- func (_c *SessionRegistryService_GetNodesByChain_Call) Return(_a0 []*models.QosNode) *SessionRegistryService_GetNodesByChain_Call
- func (_c *SessionRegistryService_GetNodesByChain_Call) Run(run func(chainId string)) *SessionRegistryService_GetNodesByChain_Call
- func (_c *SessionRegistryService_GetNodesByChain_Call) RunAndReturn(run func(string) []*models.QosNode) *SessionRegistryService_GetNodesByChain_Call
- type SessionRegistryService_GetNodesMap_Call
- func (_c *SessionRegistryService_GetNodesMap_Call) Return(...) *SessionRegistryService_GetNodesMap_Call
- func (_c *SessionRegistryService_GetNodesMap_Call) Run(run func()) *SessionRegistryService_GetNodesMap_Call
- func (_c *SessionRegistryService_GetNodesMap_Call) RunAndReturn(run func() ...) *SessionRegistryService_GetNodesMap_Call
- type SessionRegistryService_GetSession_Call
- func (_c *SessionRegistryService_GetSession_Call) Return(_a0 *session_registry.Session, _a1 error) *SessionRegistryService_GetSession_Call
- func (_c *SessionRegistryService_GetSession_Call) Run(run func(req *pokt_v0models.GetSessionRequest)) *SessionRegistryService_GetSession_Call
- func (_c *SessionRegistryService_GetSession_Call) RunAndReturn(run func(*pokt_v0models.GetSessionRequest) (*session_registry.Session, error)) *SessionRegistryService_GetSession_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SessionRegistryService ¶
SessionRegistryService is an autogenerated mock type for the SessionRegistryService type
func NewSessionRegistryService ¶
func NewSessionRegistryService(t interface { mock.TestingT Cleanup(func()) }) *SessionRegistryService
NewSessionRegistryService creates a new instance of SessionRegistryService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*SessionRegistryService) EXPECT ¶
func (_m *SessionRegistryService) EXPECT() *SessionRegistryService_Expecter
func (*SessionRegistryService) GetNodesByChain ¶
func (_m *SessionRegistryService) GetNodesByChain(chainId string) []*models.QosNode
GetNodesByChain provides a mock function with given fields: chainId
func (*SessionRegistryService) GetNodesMap ¶
func (_m *SessionRegistryService) GetNodesMap() map[models.SessionChainKey]*ttlcache.Item[models.SessionChainKey, []*models.QosNode]
GetNodesMap provides a mock function with given fields:
func (*SessionRegistryService) GetSession ¶
func (_m *SessionRegistryService) GetSession(req *pokt_v0models.GetSessionRequest) (*session_registry.Session, error)
GetSession provides a mock function with given fields: req
type SessionRegistryService_Expecter ¶
type SessionRegistryService_Expecter struct {
// contains filtered or unexported fields
}
func (*SessionRegistryService_Expecter) GetNodesByChain ¶
func (_e *SessionRegistryService_Expecter) GetNodesByChain(chainId interface{}) *SessionRegistryService_GetNodesByChain_Call
GetNodesByChain is a helper method to define mock.On call
- chainId string
func (*SessionRegistryService_Expecter) GetNodesMap ¶
func (_e *SessionRegistryService_Expecter) GetNodesMap() *SessionRegistryService_GetNodesMap_Call
GetNodesMap is a helper method to define mock.On call
func (*SessionRegistryService_Expecter) GetSession ¶
func (_e *SessionRegistryService_Expecter) GetSession(req interface{}) *SessionRegistryService_GetSession_Call
GetSession is a helper method to define mock.On call
- req *pokt_v0models.GetSessionRequest
type SessionRegistryService_GetNodesByChain_Call ¶
SessionRegistryService_GetNodesByChain_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetNodesByChain'
func (*SessionRegistryService_GetNodesByChain_Call) Return ¶
func (_c *SessionRegistryService_GetNodesByChain_Call) Return(_a0 []*models.QosNode) *SessionRegistryService_GetNodesByChain_Call
func (*SessionRegistryService_GetNodesByChain_Call) Run ¶
func (_c *SessionRegistryService_GetNodesByChain_Call) Run(run func(chainId string)) *SessionRegistryService_GetNodesByChain_Call
func (*SessionRegistryService_GetNodesByChain_Call) RunAndReturn ¶
func (_c *SessionRegistryService_GetNodesByChain_Call) RunAndReturn(run func(string) []*models.QosNode) *SessionRegistryService_GetNodesByChain_Call
type SessionRegistryService_GetNodesMap_Call ¶
SessionRegistryService_GetNodesMap_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetNodesMap'
func (*SessionRegistryService_GetNodesMap_Call) Return ¶
func (_c *SessionRegistryService_GetNodesMap_Call) Return(_a0 map[models.SessionChainKey]*ttlcache.Item[models.SessionChainKey, []*models.QosNode]) *SessionRegistryService_GetNodesMap_Call
func (*SessionRegistryService_GetNodesMap_Call) Run ¶
func (_c *SessionRegistryService_GetNodesMap_Call) Run(run func()) *SessionRegistryService_GetNodesMap_Call
func (*SessionRegistryService_GetNodesMap_Call) RunAndReturn ¶
func (_c *SessionRegistryService_GetNodesMap_Call) RunAndReturn(run func() map[models.SessionChainKey]*ttlcache.Item[models.SessionChainKey, []*models.QosNode]) *SessionRegistryService_GetNodesMap_Call
type SessionRegistryService_GetSession_Call ¶
SessionRegistryService_GetSession_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSession'
func (*SessionRegistryService_GetSession_Call) Return ¶
func (_c *SessionRegistryService_GetSession_Call) Return(_a0 *session_registry.Session, _a1 error) *SessionRegistryService_GetSession_Call
func (*SessionRegistryService_GetSession_Call) Run ¶
func (_c *SessionRegistryService_GetSession_Call) Run(run func(req *pokt_v0models.GetSessionRequest)) *SessionRegistryService_GetSession_Call
func (*SessionRegistryService_GetSession_Call) RunAndReturn ¶
func (_c *SessionRegistryService_GetSession_Call) RunAndReturn(run func(*pokt_v0models.GetSessionRequest) (*session_registry.Session, error)) *SessionRegistryService_GetSession_Call