Documentation
¶
Index ¶
- Variables
- type Domain
- func (d *Domain) CreateMeetup(ctx context.Context, input model.NewMeetup) (*model.Meetup, error)
- func (d *Domain) DeleteMeetup(ctx context.Context, id string) (bool, error)
- func (d *Domain) Login(ctx context.Context, input model.LoginInput) (*model.AuthResponse, error)
- func (d *Domain) Register(ctx context.Context, input model.RegisterInput) (*model.AuthResponse, error)
- func (d *Domain) UpdateMeetup(ctx context.Context, id string, input model.UpdateMeetup) (*model.Meetup, error)
- type Owner
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Domain ¶
type Domain struct {
UserStore *db.UserRepo
MeetupStore *db.MeetupRepo
}
func (*Domain) CreateMeetup ¶
func (*Domain) DeleteMeetup ¶
func (*Domain) Login ¶
func (d *Domain) Login(ctx context.Context, input model.LoginInput) (*model.AuthResponse, error)
Login login an existing user
func (*Domain) Register ¶
func (d *Domain) Register(ctx context.Context, input model.RegisterInput) (*model.AuthResponse, error)
Register registers a new user
Click to show internal directories.
Click to hide internal directories.