Documentation
¶
Index ¶
- func AddApp(ctx context.Context, name string, userUUID gguuid.UUID) (app *ent.App, err error)
- func AddHome(ctx context.Context, name string) (home *ent.Home, err error)
- func AddHomeConnection(ctx context.Context, startTime string, endTime string, userUUID gguuid.UUID, ...) (homeconnection *ent.HomeConnection, err error)
- func AddRoom(ctx context.Context, name string, homeUUID gguuid.UUID) (room *ent.Room, err error)
- func AddRoomConnection(ctx context.Context, startTime string, endTime string, userUUID gguuid.UUID, ...) (roomconnection *ent.RoomConnection, err error)
- func AddThing(ctx context.Context, name string, roomUUID gguuid.UUID) (thing *ent.Thing, err error)
- func AddThingConnection(ctx context.Context, startTime string, endTime string, userUUID gguuid.UUID, ...) (thingconnection *ent.ThingConnection, err error)
- func AddUser(ctx context.Context, name string, password string, superUser bool) (user *ent.User, err error)
- func ChangeUserPassword(ctx context.Context, uuid gguuid.UUID, password string) (num int, err error)
- func DeleteApp(ctx context.Context, uuid gguuid.UUID) (num int, err error)
- func DeleteHome(ctx context.Context, uuid gguuid.UUID) (num int, err error)
- func DeleteHomeConnection(ctx context.Context, id int) (num int, err error)
- func DeleteRoom(ctx context.Context, uuid gguuid.UUID) (num int, err error)
- func DeleteRoomConnection(ctx context.Context, id int) (num int, err error)
- func DeleteThing(ctx context.Context, uuid gguuid.UUID) (num int, err error)
- func DeleteThingConnection(ctx context.Context, id int) (num int, err error)
- func DeleteUser(ctx context.Context, uuid gguuid.UUID) (num int, err error)
- func GetApp(ctx context.Context, uuid gguuid.UUID) (app *ent.App, err error)
- func GetApps(ctx context.Context, pageNum int, pageSize int, userUUID gguuid.UUID) (apps []*ent.App, err error)
- func GetAppsCount(ctx context.Context, userUUID gguuid.UUID) (total int, err error)
- func GetHomeConnections(ctx context.Context, pageNum int, pageSize int, userUUID gguuid.UUID, ...) (homeconnections []*ent.HomeConnection, err error)
- func GetHomeConnectionsCount(ctx context.Context, userUUID gguuid.UUID, homeUUID gguuid.UUID) (total int, err error)
- func GetHomes(ctx context.Context, pageNum int, pageSize int) (homes []*ent.Home, err error)
- func GetHomesCount(ctx context.Context) (total int, err error)
- func GetRoomConnections(ctx context.Context, pageNum int, pageSize int, userUUID gguuid.UUID, ...) (roomconnections []*ent.RoomConnection, err error)
- func GetRoomConnectionsCount(ctx context.Context, userUUID gguuid.UUID, roomUUID gguuid.UUID) (total int, err error)
- func GetRooms(ctx context.Context, pageNum int, pageSize int, homeUUID gguuid.UUID) (rooms []*ent.Room, err error)
- func GetRoomsCount(ctx context.Context, homeUUID gguuid.UUID) (total int, err error)
- func GetThing(ctx context.Context, uuid gguuid.UUID) (thing *ent.Thing, err error)
- func GetThingConnections(ctx context.Context, pageNum int, pageSize int, userUUID gguuid.UUID, ...) (thingconnections []*ent.ThingConnection, err error)
- func GetThingConnectionsCount(ctx context.Context, userUUID gguuid.UUID, thingUUID gguuid.UUID) (total int, err error)
- func GetThings(ctx context.Context, pageNum int, pageSize int, roomUUID gguuid.UUID) (things []*ent.Thing, err error)
- func GetThingsCount(ctx context.Context, roomUUID gguuid.UUID) (total int, err error)
- func GetUserByAccessKey(ctx context.Context, accessKey gguuid.UUID) (user *ent.User, err error)
- func GetUserByName(ctx context.Context, name string) (user *ent.User, err error)
- func GetUsers(ctx context.Context, pageNum int, pageSize int, uuid gguuid.UUID) (users []*ent.User, err error)
- func GetUsersCount(ctx context.Context) (total int, err error)
- func Setup(option settings.Config)
- func SetupDatabase(option settings.Config)
- func UpdateApp(ctx context.Context, uuid gguuid.UUID, name string, userUUID gguuid.UUID) (num int, err error)
- func UpdateHome(ctx context.Context, uuid gguuid.UUID, name string) (num int, err error)
- func UpdateHomeConnection(ctx context.Context, id int, startTime string, endTime string, ...) (num int, err error)
- func UpdateRoom(ctx context.Context, uuid gguuid.UUID, name string, homeUUID gguuid.UUID) (num int, err error)
- func UpdateRoomConnection(ctx context.Context, id int, startTime string, endTime string, ...) (num int, err error)
- func UpdateThing(ctx context.Context, uuid gguuid.UUID, name string, roomUUID gguuid.UUID) (num int, err error)
- func UpdateThingConnection(ctx context.Context, id int, startTime string, endTime string, ...) (num int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddHomeConnection ¶
func AddRoomConnection ¶
func AddThingConnection ¶
func ChangeUserPassword ¶
func DeleteHomeConnection ¶
func DeleteRoomConnection ¶
func DeleteThingConnection ¶
func GetAppsCount ¶
func GetHomeConnections ¶
func GetHomeConnectionsCount ¶
func GetRoomConnections ¶
func GetRoomConnectionsCount ¶
func GetRoomsCount ¶
func GetThingConnections ¶
func GetThingsCount ¶
func GetUserByAccessKey ¶
func GetUserByName ¶
func SetupDatabase ¶
func UpdateHome ¶
func UpdateHomeConnection ¶
func UpdateRoom ¶
func UpdateRoomConnection ¶
func UpdateThing ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.