analysis

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 5, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Analysis

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

Analysis represents analysis application service

func Initialize

func Initialize(db *pg.DB, vendors *config.Vendors) *Analysis

Initialize initalizes Analysis application service with defaults

func New

func New(db *pg.DB, vendors *config.Vendors, repository Repository) *Analysis

New creates new analysis application service

func (Analysis) Create

func (a Analysis) Create(c echo.Context, req types.Analysis) (types.Analysis, error)

Create creates a new Analysis

func (Analysis) Update

func (a Analysis) Update(c echo.Context, req types.Analysis) (types.Analysis, error)

Update updates a Analysis

func (Analysis) View

func (a Analysis) View(c echo.Context, id string) (types.Analysis, error)

View returns single Analysis

type Repository

type Repository interface {
	Create(orm.DB, types.Analysis) (types.Analysis, error)
	View(orm.DB, string) (types.Analysis, error)
	Update(orm.DB, types.Analysis) (types.Analysis, error)
}

Repository represents analysis repository interface

type Service

type Service interface {
	Create(echo.Context, types.Analysis) (types.Analysis, error)
	View(echo.Context, string) (types.Analysis, error)
	Update(echo.Context, types.Analysis) (types.Analysis, error)
}

Service represents analysis application interface

Directories

Path Synopsis
platform

Jump to

Keyboard shortcuts

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