Documentation ¶
Index ¶
- type AdminRepository
- func (r *AdminRepository) ExistsByNickname(ctx context.Context, nickname string) (bool, error)
- func (r *AdminRepository) FindByNicknameWithUser(ctx context.Context, nickname string) (*ent.Admin, error)
- func (r *AdminRepository) Save(ctx context.Context, adm *ent.Admin, userID int) (*ent.Admin, error)
- type Client
- func (c *Client) BeginTx(ctx context.Context) (port.Tx, error)
- func (c *Client) BeginTxWithOption(ctx context.Context, opts *sql.TxOptions) (port.Tx, error)
- func (c *Client) Close(ctx context.Context) error
- func (c *Client) MigrateSchemas(ctx context.Context) error
- func (c *Client) WithTx(ctx context.Context, fn func(ctx context.Context) error) error
- type MeetingRepository
- func (r *MeetingRepository) AddParticipants(ctx context.Context, mtgID int, ptcIDs []int) error
- func (r *MeetingRepository) ExistsByID(ctx context.Context, mtgID int) (bool, error)
- func (r *MeetingRepository) FindParticipantsByID(ctx context.Context, mtgID int) ([]*ent.User, error)
- func (r *MeetingRepository) FindParticipantsByIDAndParticipantIDs(ctx context.Context, mtgID int, ptcIDs []int) ([]*ent.User, error)
- func (r *MeetingRepository) RemoveParticipants(ctx context.Context, mtgID int, ptcIDs []int) error
- func (r *MeetingRepository) Save(ctx context.Context, mtg *ent.Meeting, orgID int) (*ent.Meeting, error)
- type UserRepository
- func (r *UserRepository) ExistsByNickname(ctx context.Context, nickname string) (bool, error)
- func (r *UserRepository) FindByNickname(ctx context.Context, nickname string) (*ent.User, error)
- func (r *UserRepository) FindByNicknameIn(ctx context.Context, nicknames []string) ([]*ent.User, error)
- func (r *UserRepository) Save(ctx context.Context, u *ent.User) (*ent.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminRepository ¶
type AdminRepository struct {
// contains filtered or unexported fields
}
func NewAdminRepository ¶
func NewAdminRepository(client *Client) *AdminRepository
func (*AdminRepository) ExistsByNickname ¶
func (*AdminRepository) FindByNicknameWithUser ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) BeginTxWithOption ¶
type MeetingRepository ¶
type MeetingRepository struct {
// contains filtered or unexported fields
}
func NewMeetingRepository ¶
func NewMeetingRepository(client *Client) *MeetingRepository
func (*MeetingRepository) AddParticipants ¶
func (*MeetingRepository) ExistsByID ¶
func (*MeetingRepository) FindParticipantsByID ¶
func (*MeetingRepository) FindParticipantsByIDAndParticipantIDs ¶
func (*MeetingRepository) RemoveParticipants ¶
type UserRepository ¶
type UserRepository struct {
// contains filtered or unexported fields
}
func NewUserRepository ¶
func NewUserRepository(client *Client) *UserRepository
func (*UserRepository) ExistsByNickname ¶
func (*UserRepository) FindByNickname ¶
func (*UserRepository) FindByNicknameIn ¶
Click to show internal directories.
Click to hide internal directories.