Documentation
¶
Index ¶
- func NewChannelCache() things.ChannelCache
- func NewChannelRepository(repo things.ThingRepository, tconns chan Connection) things.ChannelRepository
- func NewGroupRepository() things.GroupRepository
- func NewRolesRepository() things.RolesRepository
- func NewThingCache() things.ThingCache
- func NewThingRepository(conns chan Connection) things.ThingRepository
- type Connection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewChannelCache ¶
func NewChannelCache() things.ChannelCache
NewChannelCache returns mock cache instance.
func NewChannelRepository ¶
func NewChannelRepository(repo things.ThingRepository, tconns chan Connection) things.ChannelRepository
NewChannelRepository creates in-memory channel repository.
func NewGroupRepository ¶
func NewGroupRepository() things.GroupRepository
NewGroupRepository creates in-memory user repository
func NewRolesRepository ¶
func NewRolesRepository() things.RolesRepository
NewRolesRepository returns mock of policies repository
func NewThingCache ¶
func NewThingCache() things.ThingCache
NewThingCache returns mock cache instance.
func NewThingRepository ¶
func NewThingRepository(conns chan Connection) things.ThingRepository
NewThingRepository creates in-memory thing repository.
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
Connection represents connection between channel and thing that is used for testing purposes.
Click to show internal directories.
Click to hide internal directories.