uc

package
v0.0.0-...-73bd18e Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interactor

type Interactor struct {
	// contains filtered or unexported fields
}

Interactor is the interactor

func NewInteractor

func NewInteractor(s Storer) Interactor

NewInteractor returns a new Interactor

func (Interactor) GetAllRepos

func (i Interactor) GetAllRepos() ([]*domain.Repo, error)

func (Interactor) GetAllServices

func (i Interactor) GetAllServices() ([]*domain.Service, error)

func (Interactor) GetRepo

func (i Interactor) GetRepo(s *domain.Service) (*domain.Repo, error)

func (Interactor) GetService

func (i Interactor) GetService(id int64) (*domain.Service, error)

type Storer

type Storer interface {
	GetAllServices() ([]*domain.Service, error)
	GetService(id int64) (*domain.Service, error)
	GetRepo(*domain.Service) (*domain.Repo, error)
	GetAllRepos() ([]*domain.Repo, error)
}

Storer is an interface that defines how to access stored data

Jump to

Keyboard shortcuts

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