Documentation ¶
Index ¶
- func New(connectString string) database.Repository
- type MysqlRepository
- func (r *MysqlRepository) AddGroup(ctx context.Context, group *entity.Group) (string, error)
- func (r *MysqlRepository) AddGroupMembership(ctx context.Context, gm *entity.GroupMember) error
- func (r *MysqlRepository) AddRoom(ctx context.Context, room *entity.Room) (string, error)
- func (r *MysqlRepository) AddRoomMembership(ctx context.Context, rm *entity.RoomMember) error
- func (r *MysqlRepository) Close(_ context.Context)
- func (r *MysqlRepository) DeleteGroupByID(ctx context.Context, id string) error
- func (r *MysqlRepository) DeleteGroupMembership(ctx context.Context, attendeeID int64) error
- func (r *MysqlRepository) DeleteRoomByID(ctx context.Context, id string) error
- func (r *MysqlRepository) DeleteRoomMembership(ctx context.Context, attendeeID int64) error
- func (r *MysqlRepository) FindGroups(ctx context.Context, minOccupancy uint, maxOccupancy int, ...) ([]string, error)
- func (r *MysqlRepository) GetGroupByID(ctx context.Context, id string) (*entity.Group, error)
- func (r *MysqlRepository) GetGroupMembersByGroupID(ctx context.Context, groupID string) ([]*entity.GroupMember, error)
- func (r *MysqlRepository) GetGroupMembershipByAttendeeID(ctx context.Context, attendeeID int64) (*entity.GroupMember, error)
- func (r *MysqlRepository) GetGroups(ctx context.Context) ([]*entity.Group, error)
- func (r *MysqlRepository) GetRoomByID(ctx context.Context, id string) (*entity.Room, error)
- func (r *MysqlRepository) GetRoomMembersByRoomID(ctx context.Context, roomID string) ([]*entity.RoomMember, error)
- func (r *MysqlRepository) GetRoomMembershipByAttendeeID(ctx context.Context, attendeeID int64) (*entity.RoomMember, error)
- func (r *MysqlRepository) GetRooms(ctx context.Context) ([]*entity.Room, error)
- func (r *MysqlRepository) Migrate(ctx context.Context) error
- func (r *MysqlRepository) NewEmptyGroupMembership(_ context.Context, groupID string, attendeeID int64, nickname string) *entity.GroupMember
- func (r *MysqlRepository) NewEmptyRoomMembership(_ context.Context, roomID string, attendeeID int64) *entity.RoomMember
- func (r *MysqlRepository) Open(ctx context.Context) error
- func (r *MysqlRepository) RecordHistory(ctx context.Context, h *entity.History) error
- func (r *MysqlRepository) UpdateGroup(ctx context.Context, group *entity.Group) error
- func (r *MysqlRepository) UpdateGroupMembership(ctx context.Context, gm *entity.GroupMember) error
- func (r *MysqlRepository) UpdateRoom(ctx context.Context, room *entity.Room) error
- func (r *MysqlRepository) UpdateRoomMembership(ctx context.Context, rm *entity.RoomMember) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(connectString string) database.Repository
Types ¶
type MysqlRepository ¶
func (*MysqlRepository) AddGroupMembership ¶
func (r *MysqlRepository) AddGroupMembership(ctx context.Context, gm *entity.GroupMember) error
func (*MysqlRepository) AddRoomMembership ¶
func (r *MysqlRepository) AddRoomMembership(ctx context.Context, rm *entity.RoomMember) error
func (*MysqlRepository) Close ¶
func (r *MysqlRepository) Close(_ context.Context)
func (*MysqlRepository) DeleteGroupByID ¶
func (r *MysqlRepository) DeleteGroupByID(ctx context.Context, id string) error
func (*MysqlRepository) DeleteGroupMembership ¶
func (r *MysqlRepository) DeleteGroupMembership(ctx context.Context, attendeeID int64) error
func (*MysqlRepository) DeleteRoomByID ¶
func (r *MysqlRepository) DeleteRoomByID(ctx context.Context, id string) error
func (*MysqlRepository) DeleteRoomMembership ¶
func (r *MysqlRepository) DeleteRoomMembership(ctx context.Context, attendeeID int64) error
func (*MysqlRepository) FindGroups ¶
func (*MysqlRepository) GetGroupByID ¶
func (*MysqlRepository) GetGroupMembersByGroupID ¶
func (r *MysqlRepository) GetGroupMembersByGroupID(ctx context.Context, groupID string) ([]*entity.GroupMember, error)
func (*MysqlRepository) GetGroupMembershipByAttendeeID ¶
func (r *MysqlRepository) GetGroupMembershipByAttendeeID(ctx context.Context, attendeeID int64) (*entity.GroupMember, error)
func (*MysqlRepository) GetRoomByID ¶
func (*MysqlRepository) GetRoomMembersByRoomID ¶
func (r *MysqlRepository) GetRoomMembersByRoomID(ctx context.Context, roomID string) ([]*entity.RoomMember, error)
func (*MysqlRepository) GetRoomMembershipByAttendeeID ¶
func (r *MysqlRepository) GetRoomMembershipByAttendeeID(ctx context.Context, attendeeID int64) (*entity.RoomMember, error)
func (*MysqlRepository) NewEmptyGroupMembership ¶
func (r *MysqlRepository) NewEmptyGroupMembership(_ context.Context, groupID string, attendeeID int64, nickname string) *entity.GroupMember
func (*MysqlRepository) NewEmptyRoomMembership ¶
func (r *MysqlRepository) NewEmptyRoomMembership(_ context.Context, roomID string, attendeeID int64) *entity.RoomMember
func (*MysqlRepository) RecordHistory ¶
func (*MysqlRepository) UpdateGroup ¶
func (*MysqlRepository) UpdateGroupMembership ¶
func (r *MysqlRepository) UpdateGroupMembership(ctx context.Context, gm *entity.GroupMember) error
func (*MysqlRepository) UpdateRoom ¶
func (*MysqlRepository) UpdateRoomMembership ¶
func (r *MysqlRepository) UpdateRoomMembership(ctx context.Context, rm *entity.RoomMember) error
Click to show internal directories.
Click to hide internal directories.