org

package
v0.0.0-...-35e313c Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrOrgNotFound = errors.New("Org not found")

ErrOrgNotFound org is not found error

Functions

func PersistenceCreate

func PersistenceCreate(tx sqlbuilder.Tx, name string) (string, error)

PersistenceCreate org

Types

type ID

type ID string

ID #

type Org

type Org struct {
	ID      ID        `json:"_id,omitempty" db:"ID,omitempty"`
	Name    string    `json:"name,omitempty" db:"NAME,omitempty"`
	Created time.Time `json:"created,omitempty" db:"CREATED,omitempty"`
}

Org #

func GetFromPersistenceByID

func GetFromPersistenceByID(tx sqlbuilder.Tx, SD *datastore.DataStore, orgID ID) (*Org, error)

GetFromPersistenceByID get org by its id

Jump to

Keyboard shortcuts

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