Documentation ¶
Index ¶
- func GetInstance() *model
- func LoadData(engine string, db *sql.DB) error
- func New(engine string, db *sql.DB) error
- type Instance
- type Parameter
- type Parameters
- type Psql
- type Repository
- type Service
- func (s *Service) Create(model *Parameter) error
- func (s *Service) Delete(id uint) error
- func (s *Service) GetAll() (Parameters, error)
- func (s *Service) GetByID(id uint) (*Parameter, error)
- func (s *Service) GetByName(name string) (*Parameter, error)
- func (s *Service) Update(model *Parameter) error
- func (s *Service) UpdateByName(name string, value string) error
- type Servicer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetInstance ¶
func GetInstance() *model
Types ¶
type Parameters ¶
type Parameters []*Parameter
type Repository ¶
type Repository interface {
// contains filtered or unexported methods
}
func NewRepository ¶
func NewRepository(engine string, db *sql.DB) Repository
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(repo Repository) *Service
func (*Service) GetAll ¶
func (s *Service) GetAll() (Parameters, error)
Click to show internal directories.
Click to hide internal directories.