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
Click to show internal directories.
Click to hide internal directories.