Versions in this module Expand all Collapse all v0 v0.4.7 Apr 9, 2024 v0.4.6 Apr 8, 2024 v0.4.5 Apr 8, 2024 v0.4.4 Apr 8, 2024 v0.4.3 Apr 8, 2024 v0.4.2 Apr 8, 2024 v0.4.1 Apr 8, 2024 v0.4.0 Apr 8, 2024 v0.3.1 Apr 8, 2024 v0.3.0 Apr 8, 2024 Changes in this version + func GetParam(c Context, param string) string + func Ptr[T any](t T) *T type Paged + func (p Paged[T]) Map(f func(T) any) Paged[any] v0.2.0 Mar 18, 2024 Changes in this version + var V = validator.New() + func AccessControlMiddleware(obj accesscontrol.Object, act accesscontrol.Action) echo.MiddlewareFunc + func GetAssetSlug(c Context) (string, error) + func GetFlawID(c Context) (uuid.UUID, error) + func GetProjectSlug(c Context) (string, error) + func GetRBAC(c Context) accesscontrol.AccessControl + func InitLogger() + func LoadConfig() error + func SanitizeParam(s string) string + type AuthSession interface + GetUserID func() string + func GetSession(ctx Context) AuthSession + type Context = echo.Context + type DB = *gorm.DB + func DatabaseFactory() (DB, error) + type FilterQuery struct + Field string + Operator string + Value string + func GetFilterQuery(ctx Context) []FilterQuery + func (f FilterQuery) SQL() string + type HasID interface + GetID func() uuid.UUID + func GetAsset(c Context) HasID + func GetProject(c Context) HasID + type MiddlewareFunc = echo.MiddlewareFunc + type Model struct + CreatedAt time.Time + DeletedAt sql.NullTime + ID uuid.UUID + UpdatedAt time.Time + func (a Model) GetID() uuid.UUID + type PageInfo struct + Page int + PageSize int + func GetPageInfo(ctx Context) PageInfo + func (p PageInfo) ApplyOnDB(db DB) DB + type Paged struct + Data []T + Total int64 + func NewPaged[T any](pageInfo PageInfo, total int64, data []T) Paged[T] + type Server = *echo.Group + type SortQuery struct + Field string + Operator string + func GetSortQuery(ctx Context) []SortQuery + func (s SortQuery) SQL() string + type Tenant interface + GetID func() uuid.UUID + func GetTenant(c Context) Tenant