Documentation ¶
Index ¶
- Constants
- type Store
- func (s *Store) AuthentificateUser(username, password string) (bool, bool, error)
- func (s *Store) CreatePathologyAL(m *model.PathologyAnalysisLevel) error
- func (s *Store) CreateSpec(name string, unit string, min string, max string) error
- func (s *Store) CreateUser(email, username, password string) error
- func (s *Store) GetPathologiesAL() (*[]model.PathologyAnalysisLevel, error)
- func (s *Store) GetPathologyAL(name string) (*model.PathologyAnalysisLevel, error)
- func (s *Store) GetSpec(name string) (*model.SpecAnalysisPool, error)
- func (s *Store) GetSpecs(ignore []string) (*[]model.SpecAnalysisPool, error)
- func (s *Store) GetUser(username string) (*model.User, error)
- func (s *Store) Sync() error
Constants ¶
View Source
const ( // ADMIN USER ADMIN = "admin" // BETATESTER USER BETATESTER = "betatester" // SII USER SII = "sii" // DEFAULTLEVEL ACCOUNT DEFAULTLEVEL = 5 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
Store type is the abstraction behind data interactions Database io & validation
var ( // Agent main object used by other packages Agent *Store )
func (*Store) AuthentificateUser ¶
AuthentificateUser auth a user
func (*Store) CreatePathologyAL ¶
func (s *Store) CreatePathologyAL(m *model.PathologyAnalysisLevel) error
CreatePathologyAL .
func (*Store) CreateSpec ¶
CreateSpec .
func (*Store) CreateUser ¶
CreateUser .
func (*Store) GetPathologiesAL ¶
func (s *Store) GetPathologiesAL() (*[]model.PathologyAnalysisLevel, error)
GetPathologiesAL .
func (*Store) GetPathologyAL ¶
func (s *Store) GetPathologyAL(name string) (*model.PathologyAnalysisLevel, error)
GetPathologyAL .
func (*Store) GetSpec ¶
func (s *Store) GetSpec(name string) (*model.SpecAnalysisPool, error)
GetSpec .
func (*Store) GetSpecs ¶
func (s *Store) GetSpecs(ignore []string) (*[]model.SpecAnalysisPool, error)
GetSpecs .
Click to show internal directories.
Click to hide internal directories.