// Code generated by mockery v1.0.0. DO NOT EDIT.

package mocks

import mock "github.com/stretchr/testify/mock"

// DB is an autogenerated mock type for the DB type
type DB struct {
	mock.Mock
}

// Close provides a mock function with given fields:
func (_m *DB) Close() error {
	ret := _m.Called()

	var r0 error
	if rf, ok := ret.Get(0).(func() error); ok {
		r0 = rf()
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// GetAllSessionIDs provides a mock function with given fields:
func (_m *DB) GetAllSessionIDs() ([]string, error) {
	ret := _m.Called()

	var r0 []string
	if rf, ok := ret.Get(0).(func() []string); ok {
		r0 = rf()
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).([]string)
		}
	}

	var r1 error
	if rf, ok := ret.Get(1).(func() error); ok {
		r1 = rf()
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// GetHostIP provides a mock function with given fields: sessID
func (_m *DB) GetHostIP(sessID string) (string, error) {
	ret := _m.Called(sessID)

	var r0 string
	if rf, ok := ret.Get(0).(func(string) string); ok {
		r0 = rf(sessID)
	} else {
		r0 = ret.Get(0).(string)
	}

	var r1 error
	if rf, ok := ret.Get(1).(func(string) error); ok {
		r1 = rf(sessID)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// RemoveSessionID provides a mock function with given fields: sessID
func (_m *DB) RemoveSessionID(sessID string) error {
	ret := _m.Called(sessID)

	var r0 error
	if rf, ok := ret.Get(0).(func(string) error); ok {
		r0 = rf(sessID)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// UpdateSessionExpiration provides a mock function with given fields: sessID
func (_m *DB) UpdateSessionExpiration(sessID string) error {
	ret := _m.Called(sessID)

	var r0 error
	if rf, ok := ret.Get(0).(func(string) error); ok {
		r0 = rf(sessID)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// WriteSession provides a mock function with given fields: sessID, nodeIP
func (_m *DB) WriteSession(sessID string, nodeIP string) error {
	ret := _m.Called(sessID, nodeIP)

	var r0 error
	if rf, ok := ret.Get(0).(func(string, string) error); ok {
		r0 = rf(sessID, nodeIP)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}
