Documentation
¶
Index ¶
Constants ¶
View Source
const ( StateNew = "new" StateOld = "old" StateDeleted = "deleted" )
View Source
const EntityTable = "entities"
View Source
const SourceTable = "sources"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EntityPresenter ¶
type EntityPresenter struct {
ID int `db:"id" json:"id"`
CreatedAt *time.Time `db:"created_at" json:"created_at"`
SourceID *int `db:"source_id" json:"source_id"`
Action string `db:"action" json:"action"`
State State `db:"state" json:"state"`
IsProcessed bool `db:"is_processed" json:"is_processed"`
}
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) ListEntities ¶
func (m *Manager) ListEntities() ([]*EntityPresenter, error)
func (*Manager) ListSources ¶
func (m *Manager) ListSources() ([]*SourcePresenter, error)
type SourcePresenter ¶
Click to show internal directories.
Click to hide internal directories.