repository

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2020 License: AGPL-3.0 Imports: 4 Imported by: 0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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