project

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure(api *operations.ClaAPI, service service)

Configure establishes the middleware handlers for the project service

func NewRepository

func NewRepository(db *sqlx.DB) repository

NewRepository creates a new instance of the repository service

func NewService

func NewService(projectRepo Repository) service

NewService returns an instance of the project service

Types

type Repository

type Repository interface {
	GetProjectIDsForUser(ctx context.Context, userID string) ([]string, error)
}

Repository defines the interfaces for the project service

type Service

type Service interface {
	GetProjects(ctx context.Context) ([]models.Project, error)
	GetProjectByID(ctx context.Context, projectID string) (models.Project, error)
}

Service interface defines the project service methods/functions

Jump to

Keyboard shortcuts

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