Documentation ¶
Index ¶
- type Event
- func (r *Event) CreateEvent(tx godb.Queryer, ctx context.Context, userID, typeID int32, date time.Time) (*entity.Event, error)
- func (r *Event) CreateType(tx godb.Queryer, ctx context.Context, userID int32, name string, ...) (*entity.EventType, error)
- func (r *Event) DeleteEvent(tx godb.Queryer, ctx context.Context, userID, id int32) error
- func (r *Event) DeleteType(tx godb.Queryer, ctx context.Context, userID, id int32) error
- func (r *Event) EditType(tx godb.Queryer, ctx context.Context, userID, id int32, name string, ...) (*entity.EventType, error)
- func (r *Event) FriendsFeed(tx godb.Queryer, ctx context.Context, userID int32) ([]*dto.FeedResponseDTO, int32, error)
- func (r *Event) ListEvent(tx godb.Queryer, ctx context.Context, filter *dto.ListEventFilter) ([]*entity.Event, int32, error)
- func (r *Event) ListType(tx godb.Queryer, ctx context.Context, userID int32, onlyVisible bool) ([]*entity.EventType, int32, error)
- type Friend
- func (r *Friend) CreateFriendshipLink(tx godb.Queryer, ctx context.Context, userID, withUserID int32) ([]*entity.Friend, error)
- func (r *Friend) CreateInvite(tx godb.Queryer, ctx context.Context, userID, withUserID int32) (*entity.FriendInvite, error)
- func (r *Friend) DeleteInvite(tx godb.Queryer, ctx context.Context, userID, inviteID int32) error
- func (r *Friend) GetFriendByUserID(tx godb.Queryer, ctx context.Context, userID, withUserID int32) (*entity.Friend, error)
- func (r *Friend) GetInviteByID(tx godb.Queryer, ctx context.Context, userID, id int32) (*entity.FriendInvite, error)
- func (r *Friend) GetInviteByUserID(tx godb.Queryer, ctx context.Context, userID, withUserID int32) (*entity.FriendInvite, error)
- func (r *Friend) ListOfFriends(tx godb.Queryer, ctx context.Context, userID int32) ([]*entity.User, int32, error)
- func (r *Friend) ListPendingInvitations(tx godb.Queryer, ctx context.Context, userID int32) ([]*dto.InviteListResponseDTO, int32, error)
- type IEvent
- type IFriend
- type IPassword
- type ISession
- type IUser
- type Password
- func (r *Password) Create(tx godb.Queryer, ctx context.Context, userID int32, passwordHash string) (*entity.Password, error)
- func (r *Password) GetByUserID(tx godb.Queryer, ctx context.Context, userID int32) (*entity.Password, error)
- func (r *Password) IncreaseFailedAttempts(tx godb.Queryer, ctx context.Context, id int32) (*entity.Password, error)
- func (r *Password) ResetFailedAttempts(tx godb.Queryer, ctx context.Context, id int32) (*entity.Password, error)
- func (r *Password) Update(tx godb.Queryer, ctx context.Context, id int32, passwordHash string) (*entity.Password, error)
- type Session
- func (r *Session) CreateOrUpdate(tx godb.Queryer, ctx context.Context, userID int32, sessionHash string) (*entity.Session, error)
- func (r *Session) DeleteByID(tx godb.Queryer, ctx context.Context, id int32) error
- func (r *Session) GetByUserID(tx godb.Queryer, ctx context.Context, sessionHash string) (*entity.Session, error)
- type User
- func (r *User) Create(tx godb.Queryer, ctx context.Context, name, displayedName string) (*entity.User, error)
- func (r *User) GetByID(tx godb.Queryer, ctx context.Context, id int32, showPrivateInfo bool) (*entity.User, error)
- func (r *User) GetByName(tx godb.Queryer, ctx context.Context, name string) (*entity.User, error)
- func (r *User) UpdateImage(tx godb.Queryer, ctx context.Context, req *dto.UpdateProfileImageDTO) (*entity.User, error)
- func (r *User) UpdateProfile(tx godb.Queryer, ctx context.Context, req *dto.UpdateProfileDTO) (*entity.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { }
func (*Event) CreateEvent ¶
func (*Event) CreateType ¶
func (*Event) DeleteEvent ¶
func (*Event) DeleteType ¶
func (*Event) FriendsFeed ¶
type Friend ¶
type Friend struct { }
func (*Friend) CreateFriendshipLink ¶
func (*Friend) CreateInvite ¶
func (*Friend) DeleteInvite ¶
func (*Friend) GetFriendByUserID ¶
func (*Friend) GetInviteByID ¶
func (*Friend) GetInviteByUserID ¶
func (*Friend) ListOfFriends ¶
func (*Friend) ListPendingInvitations ¶
type IEvent ¶
type IEvent interface { CreateType(tx godb.Queryer, ctx context.Context, userID int32, name string, isVisible bool) (*entity.EventType, error) DeleteType(tx godb.Queryer, ctx context.Context, userID, id int32) error ListType(tx godb.Queryer, ctx context.Context, userID int32, onlyVisible bool) ([]*entity.EventType, int32, error) EditType(tx godb.Queryer, ctx context.Context, userID, id int32, name string, isVisible bool) (*entity.EventType, error) CreateEvent(tx godb.Queryer, ctx context.Context, userID, eventTypeID int32, date time.Time) (*entity.Event, error) DeleteEvent(tx godb.Queryer, ctx context.Context, userID, id int32) error ListEvent(tx godb.Queryer, ctx context.Context, filter *dto.ListEventFilter) ([]*entity.Event, int32, error) FriendsFeed(tx godb.Queryer, ctx context.Context, userID int32) ([]*dto.FeedResponseDTO, int32, error) }
type IFriend ¶
type IFriend interface { CreateInvite(tx godb.Queryer, ctx context.Context, userID, id int32) (*entity.FriendInvite, error) ListPendingInvitations(tx godb.Queryer, ctx context.Context, userID int32) ([]*dto.InviteListResponseDTO, int32, error) DeleteInvite(tx godb.Queryer, ctx context.Context, userID, id int32) error GetInviteByUserID(tx godb.Queryer, ctx context.Context, userID, withUserID int32) (*entity.FriendInvite, error) GetInviteByID(tx godb.Queryer, ctx context.Context, userID, id int32) (*entity.FriendInvite, error) GetFriendByUserID(tx godb.Queryer, ctx context.Context, userID, withUserID int32) (*entity.Friend, error) CreateFriendshipLink(tx godb.Queryer, ctx context.Context, userID, withUserID int32) ([]*entity.Friend, error) ListOfFriends(tx godb.Queryer, ctx context.Context, userID int32) ([]*entity.User, int32, error) }
type IPassword ¶
type IPassword interface { Create(tx godb.Queryer, ctx context.Context, userID int32, passwordHash string) (*entity.Password, error) GetByUserID(tx godb.Queryer, ctx context.Context, userID int32) (*entity.Password, error) Update(tx godb.Queryer, ctx context.Context, id int32, passwordHash string) (*entity.Password, error) IncreaseFailedAttempts(tx godb.Queryer, ctx context.Context, id int32) (*entity.Password, error) ResetFailedAttempts(tx godb.Queryer, ctx context.Context, id int32) (*entity.Password, error) }
type IUser ¶
type IUser interface { GetByID(tx godb.Queryer, ctx context.Context, id int32, showPrivateInfo bool) (*entity.User, error) GetByName(tx godb.Queryer, ctx context.Context, name string) (*entity.User, error) Create(tx godb.Queryer, ctx context.Context, name, displayedName string) (*entity.User, error) UpdateProfile(tx godb.Queryer, ctx context.Context, req *dto.UpdateProfileDTO) (*entity.User, error) UpdateImage(tx godb.Queryer, ctx context.Context, req *dto.UpdateProfileImageDTO) (*entity.User, error) }
type Password ¶
type Password struct { }
func NewPassword ¶
func NewPassword() *Password
func (*Password) GetByUserID ¶
func (*Password) IncreaseFailedAttempts ¶
func (*Password) ResetFailedAttempts ¶
type Session ¶
type Session struct { }
func NewSession ¶
func NewSession() *Session
func (*Session) CreateOrUpdate ¶
func (*Session) DeleteByID ¶
Click to show internal directories.
Click to hide internal directories.