kernel

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package kernel holds the shared kernel of the Portal Backend: types used by more than one bounded context. Anything with a single owner belongs in that owner's package instead.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseModel

type BaseModel struct {
	CreatedAt time.Time `gorm:"column:created_at;default:CURRENT_TIMESTAMP" json:"createdAt"`
	UpdatedAt time.Time `gorm:"column:updated_at;default:CURRENT_TIMESTAMP" json:"updatedAt"`
}

BaseModel contains common fields for all models

func (*BaseModel) BeforeCreate

func (b *BaseModel) BeforeCreate(tx *gorm.DB) error

BeforeCreate GORM hook for BaseModel

func (*BaseModel) BeforeUpdate

func (b *BaseModel) BeforeUpdate(tx *gorm.DB) error

BeforeUpdate GORM hook for BaseModel

type CollectionResponse

type CollectionResponse struct {
	Items interface{} `json:"items"`
	Count int         `json:"count"`
}

CollectionResponse Generic collection response

type Status

type Status string

Status represents the status of submissions and applications

const (
	StatusPending  Status = "pending"
	StatusApproved Status = "approved"
	StatusRejected Status = "rejected"
)

type Version

type Version string

Version represents application versioning states

const (
	ActiveVersion     Version = "active"
	DeprecatedVersion Version = "deprecated"
)

Jump to

Keyboard shortcuts

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