session

package
v1.14.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {
	mock.Mock
}

Driver is an autogenerated mock type for the Driver type

func NewDriver

func NewDriver(t interface {
	mock.TestingT
	Cleanup(func())
}) *Driver

NewDriver creates a new instance of Driver. 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 (*Driver) Close

func (_m *Driver) Close() error

Close provides a mock function with given fields:

func (*Driver) Destroy

func (_m *Driver) Destroy(id string) error

Destroy provides a mock function with given fields: id

func (*Driver) EXPECT

func (_m *Driver) EXPECT() *Driver_Expecter

func (*Driver) Gc

func (_m *Driver) Gc(maxLifetime int) error

Gc provides a mock function with given fields: maxLifetime

func (*Driver) Open

func (_m *Driver) Open(path string, name string) error

Open provides a mock function with given fields: path, name

func (*Driver) Read

func (_m *Driver) Read(id string) (string, error)

Read provides a mock function with given fields: id

func (*Driver) Write

func (_m *Driver) Write(id string, data string) error

Write provides a mock function with given fields: id, data

type Driver_Close_Call

type Driver_Close_Call struct {
	*mock.Call
}

Driver_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'

func (*Driver_Close_Call) Return

func (_c *Driver_Close_Call) Return(_a0 error) *Driver_Close_Call

func (*Driver_Close_Call) Run

func (_c *Driver_Close_Call) Run(run func()) *Driver_Close_Call

func (*Driver_Close_Call) RunAndReturn

func (_c *Driver_Close_Call) RunAndReturn(run func() error) *Driver_Close_Call

type Driver_Destroy_Call

type Driver_Destroy_Call struct {
	*mock.Call
}

Driver_Destroy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Destroy'

func (*Driver_Destroy_Call) Return

func (*Driver_Destroy_Call) Run

func (_c *Driver_Destroy_Call) Run(run func(id string)) *Driver_Destroy_Call

func (*Driver_Destroy_Call) RunAndReturn

func (_c *Driver_Destroy_Call) RunAndReturn(run func(string) error) *Driver_Destroy_Call

type Driver_Expecter

type Driver_Expecter struct {
	// contains filtered or unexported fields
}

func (*Driver_Expecter) Close

func (_e *Driver_Expecter) Close() *Driver_Close_Call

Close is a helper method to define mock.On call

func (*Driver_Expecter) Destroy

func (_e *Driver_Expecter) Destroy(id interface{}) *Driver_Destroy_Call

Destroy is a helper method to define mock.On call

  • id string

func (*Driver_Expecter) Gc

func (_e *Driver_Expecter) Gc(maxLifetime interface{}) *Driver_Gc_Call

Gc is a helper method to define mock.On call

  • maxLifetime int

func (*Driver_Expecter) Open

func (_e *Driver_Expecter) Open(path interface{}, name interface{}) *Driver_Open_Call

Open is a helper method to define mock.On call

  • path string
  • name string

func (*Driver_Expecter) Read

func (_e *Driver_Expecter) Read(id interface{}) *Driver_Read_Call

Read is a helper method to define mock.On call

  • id string

func (*Driver_Expecter) Write

func (_e *Driver_Expecter) Write(id interface{}, data interface{}) *Driver_Write_Call

Write is a helper method to define mock.On call

  • id string
  • data string

type Driver_Gc_Call

type Driver_Gc_Call struct {
	*mock.Call
}

Driver_Gc_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Gc'

func (*Driver_Gc_Call) Return

func (_c *Driver_Gc_Call) Return(_a0 error) *Driver_Gc_Call

func (*Driver_Gc_Call) Run

func (_c *Driver_Gc_Call) Run(run func(maxLifetime int)) *Driver_Gc_Call

func (*Driver_Gc_Call) RunAndReturn

func (_c *Driver_Gc_Call) RunAndReturn(run func(int) error) *Driver_Gc_Call

type Driver_Open_Call

type Driver_Open_Call struct {
	*mock.Call
}

Driver_Open_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Open'

func (*Driver_Open_Call) Return

func (_c *Driver_Open_Call) Return(_a0 error) *Driver_Open_Call

func (*Driver_Open_Call) Run

func (_c *Driver_Open_Call) Run(run func(path string, name string)) *Driver_Open_Call

func (*Driver_Open_Call) RunAndReturn

func (_c *Driver_Open_Call) RunAndReturn(run func(string, string) error) *Driver_Open_Call

type Driver_Read_Call

type Driver_Read_Call struct {
	*mock.Call
}

Driver_Read_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Read'

func (*Driver_Read_Call) Return

func (_c *Driver_Read_Call) Return(_a0 string, _a1 error) *Driver_Read_Call

func (*Driver_Read_Call) Run

func (_c *Driver_Read_Call) Run(run func(id string)) *Driver_Read_Call

func (*Driver_Read_Call) RunAndReturn

func (_c *Driver_Read_Call) RunAndReturn(run func(string) (string, error)) *Driver_Read_Call

type Driver_Write_Call

type Driver_Write_Call struct {
	*mock.Call
}

Driver_Write_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Write'

func (*Driver_Write_Call) Return

func (_c *Driver_Write_Call) Return(_a0 error) *Driver_Write_Call

func (*Driver_Write_Call) Run

func (_c *Driver_Write_Call) Run(run func(id string, data string)) *Driver_Write_Call

func (*Driver_Write_Call) RunAndReturn

func (_c *Driver_Write_Call) RunAndReturn(run func(string, string) error) *Driver_Write_Call

type Manager

type Manager struct {
	mock.Mock
}

Manager is an autogenerated mock type for the Manager type

func NewManager

func NewManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *Manager

NewManager creates a new instance of Manager. 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 (*Manager) BuildSession

func (_m *Manager) BuildSession(handler session.Driver, sessionID ...string) session.Session

BuildSession provides a mock function with given fields: handler, sessionID

func (*Manager) Driver

func (_m *Manager) Driver(name ...string) (session.Driver, error)

Driver provides a mock function with given fields: name

func (*Manager) EXPECT

func (_m *Manager) EXPECT() *Manager_Expecter

func (*Manager) Extend

func (_m *Manager) Extend(driver string, handler func() session.Driver) session.Manager

Extend provides a mock function with given fields: driver, handler

type Manager_BuildSession_Call

type Manager_BuildSession_Call struct {
	*mock.Call
}

Manager_BuildSession_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BuildSession'

func (*Manager_BuildSession_Call) Return

func (*Manager_BuildSession_Call) Run

func (_c *Manager_BuildSession_Call) Run(run func(handler session.Driver, sessionID ...string)) *Manager_BuildSession_Call

func (*Manager_BuildSession_Call) RunAndReturn

type Manager_Driver_Call

type Manager_Driver_Call struct {
	*mock.Call
}

Manager_Driver_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Driver'

func (*Manager_Driver_Call) Return

func (*Manager_Driver_Call) Run

func (_c *Manager_Driver_Call) Run(run func(name ...string)) *Manager_Driver_Call

func (*Manager_Driver_Call) RunAndReturn

func (_c *Manager_Driver_Call) RunAndReturn(run func(...string) (session.Driver, error)) *Manager_Driver_Call

type Manager_Expecter

type Manager_Expecter struct {
	// contains filtered or unexported fields
}

func (*Manager_Expecter) BuildSession

func (_e *Manager_Expecter) BuildSession(handler interface{}, sessionID ...interface{}) *Manager_BuildSession_Call

BuildSession is a helper method to define mock.On call

  • handler session.Driver
  • sessionID ...string

func (*Manager_Expecter) Driver

func (_e *Manager_Expecter) Driver(name ...interface{}) *Manager_Driver_Call

Driver is a helper method to define mock.On call

  • name ...string

func (*Manager_Expecter) Extend

func (_e *Manager_Expecter) Extend(driver interface{}, handler interface{}) *Manager_Extend_Call

Extend is a helper method to define mock.On call

  • driver string
  • handler func() session.Driver

type Manager_Extend_Call

type Manager_Extend_Call struct {
	*mock.Call
}

Manager_Extend_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Extend'

func (*Manager_Extend_Call) Return

func (*Manager_Extend_Call) Run

func (_c *Manager_Extend_Call) Run(run func(driver string, handler func() session.Driver)) *Manager_Extend_Call

func (*Manager_Extend_Call) RunAndReturn

func (_c *Manager_Extend_Call) RunAndReturn(run func(string, func() session.Driver) session.Manager) *Manager_Extend_Call

type Session

type Session struct {
	mock.Mock
}

Session is an autogenerated mock type for the Session type

func NewSession

func NewSession(t interface {
	mock.TestingT
	Cleanup(func())
}) *Session

NewSession creates a new instance of Session. 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 (*Session) All

func (_m *Session) All() map[string]interface{}

All provides a mock function with given fields:

func (*Session) EXPECT

func (_m *Session) EXPECT() *Session_Expecter

func (*Session) Exists

func (_m *Session) Exists(key string) bool

Exists provides a mock function with given fields: key

func (*Session) Flash

func (_m *Session) Flash(key string, value interface{}) session.Session

Flash provides a mock function with given fields: key, value

func (*Session) Flush

func (_m *Session) Flush() session.Session

Flush provides a mock function with given fields:

func (*Session) Forget

func (_m *Session) Forget(keys ...string) session.Session

Forget provides a mock function with given fields: keys

func (*Session) Get

func (_m *Session) Get(key string, defaultValue ...interface{}) interface{}

Get provides a mock function with given fields: key, defaultValue

func (*Session) GetID

func (_m *Session) GetID() string

GetID provides a mock function with given fields:

func (*Session) GetName

func (_m *Session) GetName() string

GetName provides a mock function with given fields:

func (*Session) Has

func (_m *Session) Has(key string) bool

Has provides a mock function with given fields: key

func (*Session) Invalidate

func (_m *Session) Invalidate() error

Invalidate provides a mock function with given fields:

func (*Session) Keep

func (_m *Session) Keep(keys ...string) session.Session

Keep provides a mock function with given fields: keys

func (*Session) Missing

func (_m *Session) Missing(key string) bool

Missing provides a mock function with given fields: key

func (*Session) Now

func (_m *Session) Now(key string, value interface{}) session.Session

Now provides a mock function with given fields: key, value

func (*Session) Only

func (_m *Session) Only(keys []string) map[string]interface{}

Only provides a mock function with given fields: keys

func (*Session) Pull

func (_m *Session) Pull(key string, defaultValue ...interface{}) interface{}

Pull provides a mock function with given fields: key, defaultValue

func (*Session) Put

func (_m *Session) Put(key string, value interface{}) session.Session

Put provides a mock function with given fields: key, value

func (*Session) Reflash

func (_m *Session) Reflash() session.Session

Reflash provides a mock function with given fields:

func (*Session) Regenerate

func (_m *Session) Regenerate(destroy ...bool) error

Regenerate provides a mock function with given fields: destroy

func (*Session) Remove

func (_m *Session) Remove(key string) interface{}

Remove provides a mock function with given fields: key

func (*Session) Save

func (_m *Session) Save() error

Save provides a mock function with given fields:

func (*Session) SetID

func (_m *Session) SetID(id string) session.Session

SetID provides a mock function with given fields: id

func (*Session) SetName

func (_m *Session) SetName(name string) session.Session

SetName provides a mock function with given fields: name

func (*Session) Start

func (_m *Session) Start() bool

Start provides a mock function with given fields:

func (*Session) Token

func (_m *Session) Token() string

Token provides a mock function with given fields:

type Session_All_Call

type Session_All_Call struct {
	*mock.Call
}

Session_All_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'All'

func (*Session_All_Call) Return

func (_c *Session_All_Call) Return(_a0 map[string]interface{}) *Session_All_Call

func (*Session_All_Call) Run

func (_c *Session_All_Call) Run(run func()) *Session_All_Call

func (*Session_All_Call) RunAndReturn

func (_c *Session_All_Call) RunAndReturn(run func() map[string]interface{}) *Session_All_Call

type Session_Exists_Call

type Session_Exists_Call struct {
	*mock.Call
}

Session_Exists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Exists'

func (*Session_Exists_Call) Return

func (_c *Session_Exists_Call) Return(_a0 bool) *Session_Exists_Call

func (*Session_Exists_Call) Run

func (_c *Session_Exists_Call) Run(run func(key string)) *Session_Exists_Call

func (*Session_Exists_Call) RunAndReturn

func (_c *Session_Exists_Call) RunAndReturn(run func(string) bool) *Session_Exists_Call

type Session_Expecter

type Session_Expecter struct {
	// contains filtered or unexported fields
}

func (*Session_Expecter) All

All is a helper method to define mock.On call

func (*Session_Expecter) Exists

func (_e *Session_Expecter) Exists(key interface{}) *Session_Exists_Call

Exists is a helper method to define mock.On call

  • key string

func (*Session_Expecter) Flash

func (_e *Session_Expecter) Flash(key interface{}, value interface{}) *Session_Flash_Call

Flash is a helper method to define mock.On call

  • key string
  • value interface{}

func (*Session_Expecter) Flush

func (_e *Session_Expecter) Flush() *Session_Flush_Call

Flush is a helper method to define mock.On call

func (*Session_Expecter) Forget

func (_e *Session_Expecter) Forget(keys ...interface{}) *Session_Forget_Call

Forget is a helper method to define mock.On call

  • keys ...string

func (*Session_Expecter) Get

func (_e *Session_Expecter) Get(key interface{}, defaultValue ...interface{}) *Session_Get_Call

Get is a helper method to define mock.On call

  • key string
  • defaultValue ...interface{}

func (*Session_Expecter) GetID

func (_e *Session_Expecter) GetID() *Session_GetID_Call

GetID is a helper method to define mock.On call

func (*Session_Expecter) GetName

func (_e *Session_Expecter) GetName() *Session_GetName_Call

GetName is a helper method to define mock.On call

func (*Session_Expecter) Has

func (_e *Session_Expecter) Has(key interface{}) *Session_Has_Call

Has is a helper method to define mock.On call

  • key string

func (*Session_Expecter) Invalidate

func (_e *Session_Expecter) Invalidate() *Session_Invalidate_Call

Invalidate is a helper method to define mock.On call

func (*Session_Expecter) Keep

func (_e *Session_Expecter) Keep(keys ...interface{}) *Session_Keep_Call

Keep is a helper method to define mock.On call

  • keys ...string

func (*Session_Expecter) Missing

func (_e *Session_Expecter) Missing(key interface{}) *Session_Missing_Call

Missing is a helper method to define mock.On call

  • key string

func (*Session_Expecter) Now

func (_e *Session_Expecter) Now(key interface{}, value interface{}) *Session_Now_Call

Now is a helper method to define mock.On call

  • key string
  • value interface{}

func (*Session_Expecter) Only

func (_e *Session_Expecter) Only(keys interface{}) *Session_Only_Call

Only is a helper method to define mock.On call

  • keys []string

func (*Session_Expecter) Pull

func (_e *Session_Expecter) Pull(key interface{}, defaultValue ...interface{}) *Session_Pull_Call

Pull is a helper method to define mock.On call

  • key string
  • defaultValue ...interface{}

func (*Session_Expecter) Put

func (_e *Session_Expecter) Put(key interface{}, value interface{}) *Session_Put_Call

Put is a helper method to define mock.On call

  • key string
  • value interface{}

func (*Session_Expecter) Reflash

func (_e *Session_Expecter) Reflash() *Session_Reflash_Call

Reflash is a helper method to define mock.On call

func (*Session_Expecter) Regenerate

func (_e *Session_Expecter) Regenerate(destroy ...interface{}) *Session_Regenerate_Call

Regenerate is a helper method to define mock.On call

  • destroy ...bool

func (*Session_Expecter) Remove

func (_e *Session_Expecter) Remove(key interface{}) *Session_Remove_Call

Remove is a helper method to define mock.On call

  • key string

func (*Session_Expecter) Save

func (_e *Session_Expecter) Save() *Session_Save_Call

Save is a helper method to define mock.On call

func (*Session_Expecter) SetID

func (_e *Session_Expecter) SetID(id interface{}) *Session_SetID_Call

SetID is a helper method to define mock.On call

  • id string

func (*Session_Expecter) SetName

func (_e *Session_Expecter) SetName(name interface{}) *Session_SetName_Call

SetName is a helper method to define mock.On call

  • name string

func (*Session_Expecter) Start

func (_e *Session_Expecter) Start() *Session_Start_Call

Start is a helper method to define mock.On call

func (*Session_Expecter) Token

func (_e *Session_Expecter) Token() *Session_Token_Call

Token is a helper method to define mock.On call

type Session_Flash_Call

type Session_Flash_Call struct {
	*mock.Call
}

Session_Flash_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Flash'

func (*Session_Flash_Call) Return

func (*Session_Flash_Call) Run

func (_c *Session_Flash_Call) Run(run func(key string, value interface{})) *Session_Flash_Call

func (*Session_Flash_Call) RunAndReturn

func (_c *Session_Flash_Call) RunAndReturn(run func(string, interface{}) session.Session) *Session_Flash_Call

type Session_Flush_Call

type Session_Flush_Call struct {
	*mock.Call
}

Session_Flush_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Flush'

func (*Session_Flush_Call) Return

func (*Session_Flush_Call) Run

func (_c *Session_Flush_Call) Run(run func()) *Session_Flush_Call

func (*Session_Flush_Call) RunAndReturn

func (_c *Session_Flush_Call) RunAndReturn(run func() session.Session) *Session_Flush_Call

type Session_Forget_Call

type Session_Forget_Call struct {
	*mock.Call
}

Session_Forget_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Forget'

func (*Session_Forget_Call) Return

func (*Session_Forget_Call) Run

func (_c *Session_Forget_Call) Run(run func(keys ...string)) *Session_Forget_Call

func (*Session_Forget_Call) RunAndReturn

func (_c *Session_Forget_Call) RunAndReturn(run func(...string) session.Session) *Session_Forget_Call

type Session_GetID_Call

type Session_GetID_Call struct {
	*mock.Call
}

Session_GetID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetID'

func (*Session_GetID_Call) Return

func (_c *Session_GetID_Call) Return(_a0 string) *Session_GetID_Call

func (*Session_GetID_Call) Run

func (_c *Session_GetID_Call) Run(run func()) *Session_GetID_Call

func (*Session_GetID_Call) RunAndReturn

func (_c *Session_GetID_Call) RunAndReturn(run func() string) *Session_GetID_Call

type Session_GetName_Call

type Session_GetName_Call struct {
	*mock.Call
}

Session_GetName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetName'

func (*Session_GetName_Call) Return

func (*Session_GetName_Call) Run

func (_c *Session_GetName_Call) Run(run func()) *Session_GetName_Call

func (*Session_GetName_Call) RunAndReturn

func (_c *Session_GetName_Call) RunAndReturn(run func() string) *Session_GetName_Call

type Session_Get_Call

type Session_Get_Call struct {
	*mock.Call
}

Session_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'

func (*Session_Get_Call) Return

func (_c *Session_Get_Call) Return(_a0 interface{}) *Session_Get_Call

func (*Session_Get_Call) Run

func (_c *Session_Get_Call) Run(run func(key string, defaultValue ...interface{})) *Session_Get_Call

func (*Session_Get_Call) RunAndReturn

func (_c *Session_Get_Call) RunAndReturn(run func(string, ...interface{}) interface{}) *Session_Get_Call

type Session_Has_Call

type Session_Has_Call struct {
	*mock.Call
}

Session_Has_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Has'

func (*Session_Has_Call) Return

func (_c *Session_Has_Call) Return(_a0 bool) *Session_Has_Call

func (*Session_Has_Call) Run

func (_c *Session_Has_Call) Run(run func(key string)) *Session_Has_Call

func (*Session_Has_Call) RunAndReturn

func (_c *Session_Has_Call) RunAndReturn(run func(string) bool) *Session_Has_Call

type Session_Invalidate_Call

type Session_Invalidate_Call struct {
	*mock.Call
}

Session_Invalidate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Invalidate'

func (*Session_Invalidate_Call) Return

func (*Session_Invalidate_Call) Run

func (_c *Session_Invalidate_Call) Run(run func()) *Session_Invalidate_Call

func (*Session_Invalidate_Call) RunAndReturn

func (_c *Session_Invalidate_Call) RunAndReturn(run func() error) *Session_Invalidate_Call

type Session_Keep_Call

type Session_Keep_Call struct {
	*mock.Call
}

Session_Keep_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Keep'

func (*Session_Keep_Call) Return

func (*Session_Keep_Call) Run

func (_c *Session_Keep_Call) Run(run func(keys ...string)) *Session_Keep_Call

func (*Session_Keep_Call) RunAndReturn

func (_c *Session_Keep_Call) RunAndReturn(run func(...string) session.Session) *Session_Keep_Call

type Session_Missing_Call

type Session_Missing_Call struct {
	*mock.Call
}

Session_Missing_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Missing'

func (*Session_Missing_Call) Return

func (*Session_Missing_Call) Run

func (_c *Session_Missing_Call) Run(run func(key string)) *Session_Missing_Call

func (*Session_Missing_Call) RunAndReturn

func (_c *Session_Missing_Call) RunAndReturn(run func(string) bool) *Session_Missing_Call

type Session_Now_Call

type Session_Now_Call struct {
	*mock.Call
}

Session_Now_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Now'

func (*Session_Now_Call) Return

func (*Session_Now_Call) Run

func (_c *Session_Now_Call) Run(run func(key string, value interface{})) *Session_Now_Call

func (*Session_Now_Call) RunAndReturn

func (_c *Session_Now_Call) RunAndReturn(run func(string, interface{}) session.Session) *Session_Now_Call

type Session_Only_Call

type Session_Only_Call struct {
	*mock.Call
}

Session_Only_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Only'

func (*Session_Only_Call) Return

func (_c *Session_Only_Call) Return(_a0 map[string]interface{}) *Session_Only_Call

func (*Session_Only_Call) Run

func (_c *Session_Only_Call) Run(run func(keys []string)) *Session_Only_Call

func (*Session_Only_Call) RunAndReturn

func (_c *Session_Only_Call) RunAndReturn(run func([]string) map[string]interface{}) *Session_Only_Call

type Session_Pull_Call

type Session_Pull_Call struct {
	*mock.Call
}

Session_Pull_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Pull'

func (*Session_Pull_Call) Return

func (_c *Session_Pull_Call) Return(_a0 interface{}) *Session_Pull_Call

func (*Session_Pull_Call) Run

func (_c *Session_Pull_Call) Run(run func(key string, defaultValue ...interface{})) *Session_Pull_Call

func (*Session_Pull_Call) RunAndReturn

func (_c *Session_Pull_Call) RunAndReturn(run func(string, ...interface{}) interface{}) *Session_Pull_Call

type Session_Put_Call

type Session_Put_Call struct {
	*mock.Call
}

Session_Put_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Put'

func (*Session_Put_Call) Return

func (*Session_Put_Call) Run

func (_c *Session_Put_Call) Run(run func(key string, value interface{})) *Session_Put_Call

func (*Session_Put_Call) RunAndReturn

func (_c *Session_Put_Call) RunAndReturn(run func(string, interface{}) session.Session) *Session_Put_Call

type Session_Reflash_Call

type Session_Reflash_Call struct {
	*mock.Call
}

Session_Reflash_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Reflash'

func (*Session_Reflash_Call) Return

func (*Session_Reflash_Call) Run

func (_c *Session_Reflash_Call) Run(run func()) *Session_Reflash_Call

func (*Session_Reflash_Call) RunAndReturn

func (_c *Session_Reflash_Call) RunAndReturn(run func() session.Session) *Session_Reflash_Call

type Session_Regenerate_Call

type Session_Regenerate_Call struct {
	*mock.Call
}

Session_Regenerate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Regenerate'

func (*Session_Regenerate_Call) Return

func (*Session_Regenerate_Call) Run

func (_c *Session_Regenerate_Call) Run(run func(destroy ...bool)) *Session_Regenerate_Call

func (*Session_Regenerate_Call) RunAndReturn

func (_c *Session_Regenerate_Call) RunAndReturn(run func(...bool) error) *Session_Regenerate_Call

type Session_Remove_Call

type Session_Remove_Call struct {
	*mock.Call
}

Session_Remove_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Remove'

func (*Session_Remove_Call) Return

func (_c *Session_Remove_Call) Return(_a0 interface{}) *Session_Remove_Call

func (*Session_Remove_Call) Run

func (_c *Session_Remove_Call) Run(run func(key string)) *Session_Remove_Call

func (*Session_Remove_Call) RunAndReturn

func (_c *Session_Remove_Call) RunAndReturn(run func(string) interface{}) *Session_Remove_Call

type Session_Save_Call

type Session_Save_Call struct {
	*mock.Call
}

Session_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'

func (*Session_Save_Call) Return

func (_c *Session_Save_Call) Return(_a0 error) *Session_Save_Call

func (*Session_Save_Call) Run

func (_c *Session_Save_Call) Run(run func()) *Session_Save_Call

func (*Session_Save_Call) RunAndReturn

func (_c *Session_Save_Call) RunAndReturn(run func() error) *Session_Save_Call

type Session_SetID_Call

type Session_SetID_Call struct {
	*mock.Call
}

Session_SetID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetID'

func (*Session_SetID_Call) Return

func (*Session_SetID_Call) Run

func (_c *Session_SetID_Call) Run(run func(id string)) *Session_SetID_Call

func (*Session_SetID_Call) RunAndReturn

func (_c *Session_SetID_Call) RunAndReturn(run func(string) session.Session) *Session_SetID_Call

type Session_SetName_Call

type Session_SetName_Call struct {
	*mock.Call
}

Session_SetName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetName'

func (*Session_SetName_Call) Return

func (*Session_SetName_Call) Run

func (_c *Session_SetName_Call) Run(run func(name string)) *Session_SetName_Call

func (*Session_SetName_Call) RunAndReturn

func (_c *Session_SetName_Call) RunAndReturn(run func(string) session.Session) *Session_SetName_Call

type Session_Start_Call

type Session_Start_Call struct {
	*mock.Call
}

Session_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'

func (*Session_Start_Call) Return

func (_c *Session_Start_Call) Return(_a0 bool) *Session_Start_Call

func (*Session_Start_Call) Run

func (_c *Session_Start_Call) Run(run func()) *Session_Start_Call

func (*Session_Start_Call) RunAndReturn

func (_c *Session_Start_Call) RunAndReturn(run func() bool) *Session_Start_Call

type Session_Token_Call

type Session_Token_Call struct {
	*mock.Call
}

Session_Token_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Token'

func (*Session_Token_Call) Return

func (_c *Session_Token_Call) Return(_a0 string) *Session_Token_Call

func (*Session_Token_Call) Run

func (_c *Session_Token_Call) Run(run func()) *Session_Token_Call

func (*Session_Token_Call) RunAndReturn

func (_c *Session_Token_Call) RunAndReturn(run func() string) *Session_Token_Call

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL