Documentation ¶
Overview ¶
Package postgres contains the database implementation of clients repository layer.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Migration ¶
func Migration() (*migrate.MemoryMigrationSource, error)
func NewRepository ¶
func NewRepository(db postgres.Database) clients.Repository
NewRepository instantiates a PostgreSQL implementation of Clients repository.
func ToDBClientsPage ¶
Types ¶
type DBClient ¶
type DBClient struct { ID string `db:"id"` Name string `db:"name,omitempty"` Tags pgtype.TextArray `db:"tags,omitempty"` Identity string `db:"identity"` Domain string `db:"domain_id"` ParentGroup sql.NullString `db:"parent_group_id,omitempty"` Secret string `db:"secret"` Metadata []byte `db:"metadata,omitempty"` CreatedAt time.Time `db:"created_at,omitempty"` UpdatedAt sql.NullTime `db:"updated_at,omitempty"` UpdatedBy *string `db:"updated_by,omitempty"` Status clients.Status `db:"status,omitempty"` }
Click to show internal directories.
Click to hide internal directories.