projects

package
v0.0.0-...-4d82e29 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 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 setups handlers on api with service

Types

type Repository

type Repository interface {
	GetProject(ctx context.Context, projectID string) (*models.Project, error)
}

Repository interface defines methods of project repository service

func NewRepository

func NewRepository() Repository

NewRepository creates new instance of project repository

type Service

type Service interface {
	GetProject(ctx context.Context, in *project.GetProjectParams) (*models.Project, error)
}

Service interface defines methods of project service

func NewService

func NewService(repo Repository) Service

NewService creates new instance of project service

Jump to

Keyboard shortcuts

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