Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlarmRepository ¶
type AlarmRepository interface { Create(alarm *entity.Alarm) (*entity.Alarm, error) GetAll(accountID uint) (*entity.Alarms, error) }
AlarmRepository ...
type MemberDeviceRepository ¶
type MemberDeviceRepository interface { CreateIfNotExist(memberID uint, token string) (memberDevice *entity.MemberDevice, err error) Get(token string) (memberDevice *entity.MemberDevice, err error) GetAllTokens(memberID uint) (tokens []string, err error) GetAllMemberTokens(memberIDs []uint) (tokens []string, err error) Delete(memberDevice *entity.MemberDevice) error DeleteBatch(tokens []string) error }
MemberDeviceRepository ...
type MemberRepository ¶
type MemberRepository interface { Create(member *entity.Member) (*entity.Member, error) Get(id uint) (*entity.Member, error) GetByEmail(email string) (*entity.Member, error) GetByNickName(name string) (*entity.Member, error) GetAllByIDs(ids []uint) (*entity.Members, error) Update(member *entity.Member) (*entity.Member, error) Delete(member *entity.Member) error }
MemberRepository ...
type RoomMemberRepository ¶
type RoomMemberRepository interface { Create(roomMember *entity.RoomMember) (*entity.RoomMember, error) GetByUnq(roomID, accountID uint) (*entity.RoomMember, error) GetAllRoomIDs(memberID uint) ([]uint, error) SortedMemberIDs(memberIDs []uint) ([]uint, error) Delete(roomMember *entity.RoomMember) error }
RoomMemberRepository ...
type RoomRepository ¶
type RoomRepository interface { Create(room *entity.Room) (*entity.Room, error) GetByID(id uint) (*entity.Room, error) GetAll(accountID uint, roomIDs []uint) (*entity.Rooms, error) Update(room *entity.Room) (*entity.Room, error) Delete(room *entity.Room) error }
RoomRepository ...
Click to show internal directories.
Click to hide internal directories.