Documentation ¶
Index ¶
- type TrailheadsDAO
- func (td TrailheadsDAO) CreateTrailhead(ctx context.Context, trailhead *trailheads.Trailhead) error
- func (td TrailheadsDAO) DeleteTrailhead(ctx context.Context, name string) error
- func (td TrailheadsDAO) GetTrailhead(ctx context.Context, name string) (*trailheads.Trailhead, error)
- func (td TrailheadsDAO) GetTrailheads(ctx context.Context) ([]trailheads.Trailhead, error)
- func (td TrailheadsDAO) UpdateTrailhead(ctx context.Context, trailhead *trailheads.Trailhead) error
- type UsersDAO
- func (ud UsersDAO) CreateUser(ctx context.Context, user *structs.User) error
- func (ud UsersDAO) DeleteUser(ctx context.Context, username string) error
- func (ud UsersDAO) GetUser(ctx context.Context, username string) (*structs.User, error)
- func (ud UsersDAO) UpdateUser(ctx context.Context, user *structs.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TrailheadsDAO ¶
type TrailheadsDAO struct {
// contains filtered or unexported fields
}
func NewTrailheadsDAO ¶
func NewTrailheadsDAO(m *mongo.Client) *TrailheadsDAO
func (TrailheadsDAO) CreateTrailhead ¶
func (td TrailheadsDAO) CreateTrailhead(ctx context.Context, trailhead *trailheads.Trailhead) error
func (TrailheadsDAO) DeleteTrailhead ¶
func (td TrailheadsDAO) DeleteTrailhead(ctx context.Context, name string) error
func (TrailheadsDAO) GetTrailhead ¶
func (td TrailheadsDAO) GetTrailhead(ctx context.Context, name string) (*trailheads.Trailhead, error)
func (TrailheadsDAO) GetTrailheads ¶
func (td TrailheadsDAO) GetTrailheads(ctx context.Context) ([]trailheads.Trailhead, error)
func (TrailheadsDAO) UpdateTrailhead ¶
func (td TrailheadsDAO) UpdateTrailhead(ctx context.Context, trailhead *trailheads.Trailhead) error
type UsersDAO ¶
type UsersDAO struct {
// contains filtered or unexported fields
}
func NewUsersDAO ¶
func (UsersDAO) CreateUser ¶
func (UsersDAO) DeleteUser ¶
Click to show internal directories.
Click to hide internal directories.