Versions in this module Expand all Collapse all v0 v0.1.0 Jun 16, 2022 Changes in this version + var ErrInvalidID = errors.New("ID is not in its proper form") + var ErrNotFound = errors.New("user not found") + type Core struct + func NewCore(log *zap.SugaredLogger, sqlxDB *sqlx.DB) Core + func (c Core) Create(ctx context.Context, userID string, ng NewGroup, now time.Time) (Group, error) + func (c Core) Delete(ctx context.Context, groupID string) error + func (c Core) QueryByID(ctx context.Context, groupID string) (Group, error) + func (c Core) QueryWorkspaceGroups(ctx context.Context, workspaceID string, pageNumber, rowsPerPage int) ([]Group, error) + func (c Core) Update(ctx context.Context, groupID string, ug UpdateGroup, now time.Time) error + type Group struct + DateCreated time.Time + DateUpdated time.Time + ID string + Name string + Uid string + Wid string + type NewGroup struct + Name string + Wid string + type UpdateGroup struct + Name *string