Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCache ¶
func NewCache(rc *redis.Connection) domain.ProviderCache
NewService creates new provider cache.
func NewRepository ¶
func NewRepository(conn *sql.Connection, automigrate bool) domain.ProviderRepository
NewRepository creates new provider repository.
func NewService ¶
func NewService(repo domain.ProviderRepository, cache domain.ProviderCache) domain.ProviderService
NewService creates new provider service.
Types ¶
type ProviderSQLModel ¶
type ProviderSQLModel struct { ID uint `gorm:"column:id;PRIMARY_KEY"` UUID string `gorm:"column:uuid;UNIQUE;UNIQUE_INDEX;NOT NULL"` ShortName string `gorm:"column:short_name;INDEX;NOT NULL"` LongName string `gorm:"column:long_name;NOT NULL"` CreatedAt time.Time `gorm:"column:created_at;NOT NULL"` UpdatedAt time.Time `gorm:"column:updated_at;NOT NULL"` DeletedAt *time.Time `gorm:"column:deleted_at"` }
ProviderSQLModel is a SQL database model for provider.
func (*ProviderSQLModel) TableName ¶
func (pm *ProviderSQLModel) TableName() string
TableName sets provider table name.
Click to show internal directories.
Click to hide internal directories.