Documentation ¶
Index ¶
- type OrganizationModel
- type ServiceModel
- func (m *ServiceModel) Get(org *models.Organization, id int) (*models.Service, error)
- func (m *ServiceModel) Insert(org *models.Organization, identifier, title, description string, ...) (int, error)
- func (m *ServiceModel) Latest(org *models.Organization, start, limit int) ([]*models.Service, error)
- func (m *ServiceModel) Update(service *models.Service) (int, error)
- type UserModel
- func (m *UserModel) Authenticate(email, password string) (int, error)
- func (m *UserModel) ChangePassword(id int, currentPassword, newPassword string) error
- func (m *UserModel) Get(id int) (*models.User, error)
- func (m *UserModel) Insert(name, email, password string) error
- func (m *UserModel) Organizations(user *models.User) (orgs []*models.Organization, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OrganizationModel ¶
type OrganizationModel struct{}
func (*OrganizationModel) Get ¶
func (m *OrganizationModel) Get(id int) (*models.Organization, error)
func (*OrganizationModel) Insert ¶
func (m *OrganizationModel) Insert(identifier, name string) error
type ServiceModel ¶
type ServiceModel struct{}
func (*ServiceModel) Get ¶
func (m *ServiceModel) Get(org *models.Organization, id int) (*models.Service, error)
func (*ServiceModel) Insert ¶
func (m *ServiceModel) Insert(org *models.Organization, identifier, title, description string, attributes []*models.ServiceAttribute, status int, owner string) (int, error)
func (*ServiceModel) Latest ¶
func (m *ServiceModel) Latest(org *models.Organization, start, limit int) ([]*models.Service, error)
type UserModel ¶
type UserModel struct{}
func (*UserModel) Authenticate ¶
func (*UserModel) ChangePassword ¶
func (*UserModel) Organizations ¶
Click to show internal directories.
Click to hide internal directories.