Documentation ¶
Index ¶
- func NewAuthService(users map[string]string) mainflux.AuthServiceClient
- func NewChannelCache() things.ChannelCache
- func NewChannelRepository(repo things.ThingRepository, tconns chan Connection) things.ChannelRepository
- 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 NewAuthService ¶
func NewAuthService(users map[string]string) mainflux.AuthServiceClient
NewAuthService creates mock of users service.
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 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.