Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetGormLogger ¶
Types ¶
type BaseModel ¶ added in v2.8.1
type BaseModel struct {
ID string `json:"id" gorm:"primaryKey;type:text"`
CreatedAt time.Time `json:"createdAt" gorm:"column:created_at" sortable:"true"`
UpdatedAt *time.Time `json:"updatedAt,omitempty" gorm:"column:updated_at"`
}
func (*BaseModel) BeforeCreate ¶ added in v2.8.1
type DB ¶
func Initialize ¶
func (*DB) FindEnvironmentIDByApiKey ¶
FindEnvironmentIDByApiKey finds the environment ID that is associated with the given API key. It queries the api_keys table to validate the key and find the associated environment.
type MigrationOptions ¶
type MigrationOptions struct {
AllowDowngrade bool
}
type StringSlice ¶ added in v2.8.1
type StringSlice []string
func (*StringSlice) Scan ¶ added in v2.8.1
func (s *StringSlice) Scan(value any) error
Click to show internal directories.
Click to hide internal directories.