provider

package
v0.0.0-...-5dc576f Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

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

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.

Jump to

Keyboard shortcuts

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