persistence

package
v0.0.0-...-ae451d1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Meetup

type Meetup struct {
	MeetupID string

	AttendeeList []string

	// username of organiser.
	Organiser string

	// Meetup Date and Time
	PlannedDateTime time.Time

	// Meetup Reminder Date and Time
	RemindDateTime *time.Time
}

type MeetupPersistence

type MeetupPersistence interface {
	StoreMeetup(ctx context.Context, meetup *Meetup) (*Meetup, error)
	DeleteMeetup(ctx context.Context, meetupID string) (*Meetup, error)
}

MeetupPersistence defines interface for how to store generated bearer tokens

func NewMeetupPersistence

func NewMeetupPersistence(ddb dynamodbiface.DynamoDBAPI, databaseTableName string) MeetupPersistence

NewMeetupPersistence creates a meetup persistence service

type MeetupRecord

type MeetupRecord struct {
	//MEETUPID#{uuid}
	//USERID#{uuid} * future scope within the ddb
	PK              string
	SK              string
	MeetupID        string
	AttendeeList    []string
	Organiser       string
	PlannedDateTime string
	RemindDateTime  string
}

type MeetupStore

type MeetupStore struct {
	// contains filtered or unexported fields
}

MeetupStore struct

func (MeetupStore) DeleteMeetup

func (m MeetupStore) DeleteMeetup(ctx context.Context, meetupID string) (*Meetup, error)

func (MeetupStore) StoreMeetup

func (m MeetupStore) StoreMeetup(ctx context.Context, meetup *Meetup) (*Meetup, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL