strategicalignment

package
v0.0.0-...-57b518e Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = authapi.Error{CodeInt: http.StatusNotFound, Message: "Not found"}
)

Functions

This section is empty.

Types

type Service

type Service interface {
	Create(c echo.Context, alignmentName string, orgID int) (model.StrategicAlignment, error)
	List(c echo.Context, oID int) ([]model.StrategicAlignment, error)
	Delete(c echo.Context, saUUID uuid.UUID, oID int) error
	Update(c echo.Context, mySA model.StrategicAlignment) error
}

type StrategicAlignment

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

func Initialize

func Initialize(db *sqlx.DB) StrategicAlignment

func (StrategicAlignment) Create

func (sa StrategicAlignment) Create(c echo.Context, alignmentName string, orgID int) (model.StrategicAlignment, error)

func (StrategicAlignment) Delete

func (sa StrategicAlignment) Delete(c echo.Context, saUUID uuid.UUID, orgID int) error

func (StrategicAlignment) List

func (sa StrategicAlignment) List(c echo.Context, oID int) ([]model.StrategicAlignment, error)

func (StrategicAlignment) Update

func (sa StrategicAlignment) Update(c echo.Context, mySA model.StrategicAlignment) error

type StrategicAlignmentDB

type StrategicAlignmentDB interface {
	Create(dbx sqlx.DB, sa model.StrategicAlignment) (model.StrategicAlignment, error)
	List(dbx sqlx.DB, oID int) ([]model.StrategicAlignment, error)
	Update(dbx sqlx.DB, mySA model.StrategicAlignment) error
	Delete(dbx sqlx.DB, saUUID uuid.UUID, oID int) error
}

Directories

Path Synopsis
platform

Jump to

Keyboard shortcuts

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