organization

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrIncorrectPassword = echo.NewHTTPError(http.StatusBadRequest, "incorrect old password")
	ErrInsecurePassword  = echo.NewHTTPError(http.StatusBadRequest, "insecure password")
)

Custom errors

Functions

This section is empty.

Types

type Organization

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

func Initialize

func Initialize(dbx *sqlx.DB) Organization

Initialize initalizes profile application service with defaults

func New

func New(db *sqlx.DB, odb OrganizationDB) Organization

New creates new organization application service

func (Organization) Create

func (o Organization) Create(c echo.Context, org authapi.Profile) error

type OrganizationDB

type OrganizationDB interface {
	Create(sqlx.DB, authapi.Profile) error
}

type Service

type Service interface {
	Create(echo.Context, authapi.Profile) error
}

Directories

Path Synopsis
platform

Jump to

Keyboard shortcuts

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