Documentation ¶
Index ¶
- type CallDatabase
- type CivilianDatabase
- type ClientHelper
- type CollectionHelper
- type CommunityDatabase
- type CursorHelper
- type DatabaseHelper
- type EmsDatabase
- type EmsVehicleDatabase
- type FirearmDatabase
- type LicenseDatabase
- type SingleResultHelper
- type UserDatabase
- type VehicleDatabase
- type WarrantDatabase
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallDatabase ¶
CallDatabase is an autogenerated mock type for the CallDatabase type
func (*CallDatabase) Find ¶
func (_m *CallDatabase) Find(_a0 context.Context, _a1 interface{}, _a2 ...*options.FindOptions) ([]models.Call, error)
Find provides a mock function with given fields: _a0, _a1, _a2
func (*CallDatabase) FindOne ¶
func (_m *CallDatabase) FindOne(_a0 context.Context, _a1 interface{}, _a2 ...*options.FindOneOptions) (*models.Call, error)
FindOne provides a mock function with given fields: _a0, _a1, _a2
type CivilianDatabase ¶
CivilianDatabase is an autogenerated mock type for the CivilianDatabase type
func (*CivilianDatabase) Find ¶
func (_m *CivilianDatabase) Find(_a0 context.Context, _a1 interface{}, _a2 ...*options.FindOptions) ([]models.Civilian, error)
Find provides a mock function with given fields: _a0, _a1, _a2
func (*CivilianDatabase) FindOne ¶
func (_m *CivilianDatabase) FindOne(_a0 context.Context, _a1 interface{}, _a2 ...*options.FindOneOptions) (*models.Civilian, error)
FindOne provides a mock function with given fields: _a0, _a1, _a2
type ClientHelper ¶
ClientHelper is an autogenerated mock type for the ClientHelper type
func (*ClientHelper) Connect ¶
func (_m *ClientHelper) Connect() error
Connect provides a mock function with given fields:
func (*ClientHelper) Database ¶
func (_m *ClientHelper) Database(_a0 string) databases.DatabaseHelper
Database provides a mock function with given fields: _a0
func (*ClientHelper) StartSession ¶
func (_m *ClientHelper) StartSession() (mongo.Session, error)
StartSession provides a mock function with given fields:
type CollectionHelper ¶
CollectionHelper is an autogenerated mock type for the CollectionHelper type
func (*CollectionHelper) Find ¶
func (_m *CollectionHelper) Find(_a0 context.Context, _a1 interface{}, _a2 ...*options.FindOptions) databases.CursorHelper
Find provides a mock function with given fields: _a0, _a1, _a2
func (*CollectionHelper) FindOne ¶
func (_m *CollectionHelper) FindOne(_a0 context.Context, _a1 interface{}, _a2 ...*options.FindOneOptions) databases.SingleResultHelper
FindOne provides a mock function with given fields: _a0, _a1, _a2
type CommunityDatabase ¶
CommunityDatabase is an autogenerated mock type for the CommunityDatabase type
type CursorHelper ¶
CursorHelper is an autogenerated mock type for the CursorHelper type
func (*CursorHelper) Decode ¶
func (_m *CursorHelper) Decode(v interface{}) error
Decode provides a mock function with given fields: v
type DatabaseHelper ¶
DatabaseHelper is an autogenerated mock type for the DatabaseHelper type
func (*DatabaseHelper) Client ¶
func (_m *DatabaseHelper) Client() databases.ClientHelper
Client provides a mock function with given fields:
func (*DatabaseHelper) Collection ¶
func (_m *DatabaseHelper) Collection(name string) databases.CollectionHelper
Collection provides a mock function with given fields: name
type EmsDatabase ¶
EmsDatabase is an autogenerated mock type for the EmsDatabase type
func (*EmsDatabase) Find ¶
func (_m *EmsDatabase) Find(_a0 context.Context, _a1 interface{}, _a2 ...*options.FindOptions) ([]models.Ems, error)
Find provides a mock function with given fields: _a0, _a1, _a2
func (*EmsDatabase) FindOne ¶
func (_m *EmsDatabase) FindOne(_a0 context.Context, _a1 interface{}, _a2 ...*options.FindOneOptions) (*models.Ems, error)
FindOne provides a mock function with given fields: _a0, _a1, _a2
type EmsVehicleDatabase ¶
EmsVehicleDatabase is an autogenerated mock type for the EmsVehicleDatabase type
func (*EmsVehicleDatabase) Find ¶
func (_m *EmsVehicleDatabase) Find(_a0 context.Context, _a1 interface{}, _a2 ...*options.FindOptions) ([]models.EmsVehicle, error)
Find provides a mock function with given fields: _a0, _a1, _a2
func (*EmsVehicleDatabase) FindOne ¶
func (_m *EmsVehicleDatabase) FindOne(_a0 context.Context, _a1 interface{}, _a2 ...*options.FindOneOptions) (*models.EmsVehicle, error)
FindOne provides a mock function with given fields: _a0, _a1, _a2
type FirearmDatabase ¶
FirearmDatabase is an autogenerated mock type for the FirearmDatabase type
func (*FirearmDatabase) Find ¶
func (_m *FirearmDatabase) Find(ctx context.Context, filter interface{}, opts ...*options.FindOptions) ([]models.Firearm, error)
Find provides a mock function with given fields: ctx, filter, opts
func (*FirearmDatabase) FindOne ¶
func (_m *FirearmDatabase) FindOne(ctx context.Context, filter interface{}, opts ...*options.FindOneOptions) (*models.Firearm, error)
FindOne provides a mock function with given fields: ctx, filter, opts
type LicenseDatabase ¶ added in v1.8.0
LicenseDatabase is an autogenerated mock type for the LicenseDatabase type
func (*LicenseDatabase) Find ¶ added in v1.8.0
func (_m *LicenseDatabase) Find(ctx context.Context, filter interface{}, opts ...*options.FindOptions) ([]models.License, error)
Find provides a mock function with given fields: ctx, filter, opts
func (*LicenseDatabase) FindOne ¶ added in v1.8.0
func (_m *LicenseDatabase) FindOne(ctx context.Context, filter interface{}, opts ...*options.FindOneOptions) (*models.License, error)
FindOne provides a mock function with given fields: ctx, filter, opts
type SingleResultHelper ¶
SingleResultHelper is an autogenerated mock type for the SingleResultHelper type
func (*SingleResultHelper) Decode ¶
func (_m *SingleResultHelper) Decode(v interface{}) error
Decode provides a mock function with given fields: v
type UserDatabase ¶
UserDatabase is an autogenerated mock type for the UserDatabase type
type VehicleDatabase ¶
VehicleDatabase is an autogenerated mock type for the VehicleDatabase type
func (*VehicleDatabase) Find ¶
func (_m *VehicleDatabase) Find(_a0 context.Context, _a1 interface{}, _a2 ...*options.FindOptions) ([]models.Vehicle, error)
Find provides a mock function with given fields: _a0, _a1, _a2
func (*VehicleDatabase) FindOne ¶
func (_m *VehicleDatabase) FindOne(_a0 context.Context, _a1 interface{}, _a2 ...*options.FindOneOptions) (*models.Vehicle, error)
FindOne provides a mock function with given fields: _a0, _a1, _a2
type WarrantDatabase ¶ added in v1.8.0
WarrantDatabase is an autogenerated mock type for the WarrantDatabase type
func (*WarrantDatabase) Find ¶ added in v1.8.0
func (_m *WarrantDatabase) Find(ctx context.Context, filter interface{}, opts ...*options.FindOptions) ([]models.Warrant, error)
Find provides a mock function with given fields: ctx, filter, opts
func (*WarrantDatabase) FindOne ¶ added in v1.8.0
func (_m *WarrantDatabase) FindOne(ctx context.Context, filter interface{}, opts ...*options.FindOneOptions) (*models.Warrant, error)
FindOne provides a mock function with given fields: ctx, filter, opts