Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository interface { Tasks() taskforge.TaskService Comments() taskforge.CommentService Sources() taskforge.SourceService Contexts() taskforge.ContextService Users() taskforge.UserService AssignRefreshToken(taskforge.User, uuid.UUID) error ValidateRefreshToken(userID uuid.UUID, identifier uuid.UUID) (taskforge.User, error) InvalidateRefreshToken(identifier uuid.UUID) error }
Repository is implemented any type which aggregates the taskforge model services
func Default ¶
func Default() (Repository, error)
Default returns the default repository with the pre-populated database connection string in config
func New ¶
func New(connectionString string) (Repository, error)
New returns the default repository connecting with the given connection string
Click to show internal directories.
Click to hide internal directories.