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 Client struct + DateCreated time.Time + DateUpdated time.Time + ID string + Name string + Notes string + Uid string + Wid string + type Core struct + func NewCore(log *zap.SugaredLogger, sqlxDB *sqlx.DB) Core + func (c Core) Create(ctx context.Context, nc NewClient, userID string, now time.Time) (Client, error) + func (c Core) Delete(ctx context.Context, clientID string) error + func (c Core) Query(ctx context.Context, userID string, pageNumber int, rowsPerPage int) ([]Client, error) + func (c Core) QueryByID(ctx context.Context, clientID string) (Client, error) + func (c Core) QueryWorkspaceClients(ctx context.Context, workspaceID string, pageNumber, rowsPerPage int) ([]Client, error) + func (c Core) Update(ctx context.Context, clientID string, uc UpdateClient, now time.Time) error + type NewClient struct + Name string + Notes string + Wid string + type UpdateClient struct + Name *string + Notes *string