adding

package
v0.0.0-...-b7d8635 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2020 License: MIT Imports: 0 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 {
	AddRiskMatrix(RiskMatrix) error
	AddRisk(Risk) error
	SaveMediaPath(path string) error
}

Repository provides access to RiskMatrix repository.

type Risk

type Risk struct {
	RiskMatrixID   int    `json:"risk_matrix_id"`
	Name           string `json:"name"`
	Probability    int    `json:"probability"`
	Impact         int    `json:"impact"`
	Classification string `json:"classification"`
	Strategy       string `json:"strategy"`
}

type RiskMatrix

type RiskMatrix struct {
	Path    string
	Project string
}

type Service

type Service interface {
	AddRiskMatrix(...RiskMatrix) error
	AddRisk(...Risk) error
	SaveMediaPath(path string) error
}

Service provides risk matrix and risk adding operations

func NewService

func NewService(r Repository) Service

NewService creates an adding service with the necessary dependencies

Jump to

Keyboard shortcuts

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