Documentation ¶
Index ¶
- type MockConn
- func (_m *MockConn) AddRelation(_param0 string, _param1 string, _param2 string) error
- func (_m *MockConn) Close() error
- func (_m *MockConn) CreateUser(_param0 *skydb.UserInfo) error
- func (_m *MockConn) DeleteDevice(_param0 string) error
- func (_m *MockConn) DeleteDevicesByToken(_param0 string, _param1 time.Time) error
- func (_m *MockConn) DeleteEmptyDevicesByTime(_param0 time.Time) error
- func (_m *MockConn) DeleteUser(_param0 string) error
- func (_m *MockConn) EXPECT() *_MockConnRecorder
- func (_m *MockConn) GetAdminRoles() ([]string, error)
- func (_m *MockConn) GetAsset(_param0 string, _param1 *skydb.Asset) error
- func (_m *MockConn) GetDefaultRoles() ([]string, error)
- func (_m *MockConn) GetDevice(_param0 string, _param1 *skydb.Device) error
- func (_m *MockConn) GetRecordAccess(_param0 string) (skydb.RecordACL, error)
- func (_m *MockConn) GetUser(_param0 string, _param1 *skydb.UserInfo) error
- func (_m *MockConn) GetUserByPrincipalID(_param0 string, _param1 *skydb.UserInfo) error
- func (_m *MockConn) GetUserByUsernameEmail(_param0 string, _param1 string, _param2 *skydb.UserInfo) error
- func (_m *MockConn) PrivateDB(_param0 string) skydb.Database
- func (_m *MockConn) PublicDB() skydb.Database
- func (_m *MockConn) QueryDevicesByUser(_param0 string) ([]skydb.Device, error)
- func (_m *MockConn) QueryRelation(_param0 string, _param1 string, _param2 string, _param3 skydb.QueryConfig) []skydb.UserInfo
- func (_m *MockConn) QueryRelationCount(_param0 string, _param1 string, _param2 string) (uint64, error)
- func (_m *MockConn) QueryUser(_param0 []string, _param1 []string) ([]skydb.UserInfo, error)
- func (_m *MockConn) RemoveRelation(_param0 string, _param1 string, _param2 string) error
- func (_m *MockConn) SaveAsset(_param0 *skydb.Asset) error
- func (_m *MockConn) SaveDevice(_param0 *skydb.Device) error
- func (_m *MockConn) SetAdminRoles(_param0 []string) error
- func (_m *MockConn) SetDefaultRoles(_param0 []string) error
- func (_m *MockConn) SetRecordAccess(_param0 string, _param1 skydb.RecordACL) error
- func (_m *MockConn) Subscribe(_param0 chan skydb.RecordEvent) error
- func (_m *MockConn) UnionDB() skydb.Database
- func (_m *MockConn) UpdateUser(_param0 *skydb.UserInfo) error
- type MockDatabase
- func (_m *MockDatabase) Conn() skydb.Conn
- func (_m *MockDatabase) DatabaseType() skydb.DatabaseType
- func (_m *MockDatabase) Delete(_param0 skydb.RecordID) error
- func (_m *MockDatabase) DeleteSchema(_param0 string, _param1 string) error
- func (_m *MockDatabase) DeleteSubscription(_param0 string, _param1 string) error
- func (_m *MockDatabase) EXPECT() *_MockDatabaseRecorder
- func (_m *MockDatabase) Extend(_param0 string, _param1 skydb.RecordSchema) error
- func (_m *MockDatabase) Get(_param0 skydb.RecordID, _param1 *skydb.Record) error
- func (_m *MockDatabase) GetByIDs(_param0 []skydb.RecordID) (*skydb.Rows, error)
- func (_m *MockDatabase) GetMatchingSubscriptions(_param0 *skydb.Record) []skydb.Subscription
- func (_m *MockDatabase) GetRecordSchemas() (map[string]skydb.RecordSchema, error)
- func (_m *MockDatabase) GetSchema(_param0 string) (skydb.RecordSchema, error)
- func (_m *MockDatabase) GetSubscription(_param0 string, _param1 string, _param2 *skydb.Subscription) error
- func (_m *MockDatabase) GetSubscriptionsByDeviceID(_param0 string) []skydb.Subscription
- func (_m *MockDatabase) ID() string
- func (_m *MockDatabase) IsReadOnly() bool
- func (_m *MockDatabase) Query(_param0 *skydb.Query) (*skydb.Rows, error)
- func (_m *MockDatabase) QueryCount(_param0 *skydb.Query) (uint64, error)
- func (_m *MockDatabase) RenameSchema(_param0 string, _param1 string, _param2 string) error
- func (_m *MockDatabase) Save(_param0 *skydb.Record) error
- func (_m *MockDatabase) SaveSubscription(_param0 *skydb.Subscription) error
- func (_m *MockDatabase) UserRecordType() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockConn ¶
type MockConn struct {
// contains filtered or unexported fields
}
Mock of Conn interface
func NewMockConn ¶
func NewMockConn(ctrl *gomock.Controller) *MockConn
func (*MockConn) AddRelation ¶
func (*MockConn) DeleteDevice ¶
func (*MockConn) DeleteDevicesByToken ¶
func (*MockConn) DeleteEmptyDevicesByTime ¶
func (*MockConn) DeleteUser ¶
func (*MockConn) GetAdminRoles ¶
func (*MockConn) GetDefaultRoles ¶
func (*MockConn) GetRecordAccess ¶
func (*MockConn) GetUserByPrincipalID ¶
func (*MockConn) GetUserByUsernameEmail ¶
func (*MockConn) QueryDevicesByUser ¶
func (*MockConn) QueryRelation ¶
func (*MockConn) QueryRelationCount ¶
func (*MockConn) RemoveRelation ¶
func (*MockConn) SetAdminRoles ¶
func (*MockConn) SetDefaultRoles ¶
func (*MockConn) SetRecordAccess ¶
type MockDatabase ¶
type MockDatabase struct {
// contains filtered or unexported fields
}
Mock of Database interface
func NewMockDatabase ¶
func NewMockDatabase(ctrl *gomock.Controller) *MockDatabase
func (*MockDatabase) Conn ¶
func (_m *MockDatabase) Conn() skydb.Conn
func (*MockDatabase) DatabaseType ¶
func (_m *MockDatabase) DatabaseType() skydb.DatabaseType
func (*MockDatabase) DeleteSchema ¶
func (_m *MockDatabase) DeleteSchema(_param0 string, _param1 string) error
func (*MockDatabase) DeleteSubscription ¶
func (_m *MockDatabase) DeleteSubscription(_param0 string, _param1 string) error
func (*MockDatabase) EXPECT ¶
func (_m *MockDatabase) EXPECT() *_MockDatabaseRecorder
func (*MockDatabase) Extend ¶
func (_m *MockDatabase) Extend(_param0 string, _param1 skydb.RecordSchema) error
func (*MockDatabase) GetMatchingSubscriptions ¶
func (_m *MockDatabase) GetMatchingSubscriptions(_param0 *skydb.Record) []skydb.Subscription
func (*MockDatabase) GetRecordSchemas ¶
func (_m *MockDatabase) GetRecordSchemas() (map[string]skydb.RecordSchema, error)
func (*MockDatabase) GetSchema ¶
func (_m *MockDatabase) GetSchema(_param0 string) (skydb.RecordSchema, error)
func (*MockDatabase) GetSubscription ¶
func (_m *MockDatabase) GetSubscription(_param0 string, _param1 string, _param2 *skydb.Subscription) error
func (*MockDatabase) GetSubscriptionsByDeviceID ¶
func (_m *MockDatabase) GetSubscriptionsByDeviceID(_param0 string) []skydb.Subscription
func (*MockDatabase) ID ¶
func (_m *MockDatabase) ID() string
func (*MockDatabase) IsReadOnly ¶
func (_m *MockDatabase) IsReadOnly() bool
func (*MockDatabase) QueryCount ¶
func (_m *MockDatabase) QueryCount(_param0 *skydb.Query) (uint64, error)
func (*MockDatabase) RenameSchema ¶
func (_m *MockDatabase) RenameSchema(_param0 string, _param1 string, _param2 string) error
func (*MockDatabase) SaveSubscription ¶
func (_m *MockDatabase) SaveSubscription(_param0 *skydb.Subscription) error
func (*MockDatabase) UserRecordType ¶
func (_m *MockDatabase) UserRecordType() string
Click to show internal directories.
Click to hide internal directories.