Documentation ¶
Index ¶
- Constants
- type Config
- type MongoDB
- func (m MongoDB) DeleteEvent(ctx context.Context, id string) error
- func (m MongoDB) GetEvent(ctx context.Context, id string) (*model.Event, error)
- func (m MongoDB) GetEvents(ctx context.Context, ids []string) ([]model.Event, error)
- func (m MongoDB) GetInvitation(ctx context.Context, id string) (*model.Invitation, error)
- func (m MongoDB) GetProfile(ctx context.Context, id string) (*model.Profile, error)
- func (m MongoDB) UpsertEvent(ctx context.Context, event *model.Event) error
- func (m MongoDB) UpsertInvitation(ctx context.Context, invitation *model.Invitation) error
Constants ¶
View Source
const ( Database = "tickity" EventCollection = "event" ProfileCollection = "profile" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoDB ¶
func (MongoDB) GetInvitation ¶
func (MongoDB) GetProfile ¶
func (MongoDB) UpsertEvent ¶
func (MongoDB) UpsertInvitation ¶
Click to show internal directories.
Click to hide internal directories.