Documentation
¶
Index ¶
- Variables
- type Domain
- func (d *Domain) CreateMeetup(ctx context.Context, input models.NewMeetup) (*models.Meetup, error)
- func (d *Domain) DeleteMeetup(ctx context.Context, id string) (bool, error)
- func (d *Domain) Login(ctx context.Context, input models.LoginInput) (*models.AuthResponse, error)
- func (d *Domain) Register(ctx context.Context, input models.RegisterInput) (*models.AuthResponse, error)
- func (d *Domain) UpdateMeetup(ctx context.Context, id string, input models.UpdateMeetup) (*models.Meetup, error)
- type Ownable
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Domain ¶
type Domain struct {
UsersRepo postgres.UsersRepo
MeetupsRepo postgres.MeetupsRepo
}
func NewDomain ¶
func NewDomain(usersRepo postgres.UsersRepo, meetupsRepo postgres.MeetupsRepo) *Domain
func (*Domain) CreateMeetup ¶
func (*Domain) DeleteMeetup ¶
func (*Domain) Login ¶
func (d *Domain) Login(ctx context.Context, input models.LoginInput) (*models.AuthResponse, error)
func (*Domain) Register ¶
func (d *Domain) Register(ctx context.Context, input models.RegisterInput) (*models.AuthResponse, error)
Click to show internal directories.
Click to hide internal directories.