record

package
v0.0.0-...-1746241 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: MIT Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Record Service

Responsibility

Record listing/lookups/mutations and record-scoped helper flows.

Structure

  • service.go
  • config.go
  • forms/
  • apis/
  • queries/
  • migrations/
  • runtime.go

Dependencies

  • core.App
  • services/base (shared forms/migrations helpers)

Public flows

  • Find/list records.
  • Record upsert/delete flows.

Migration notes

Domain migrations live in services/record/migrations/ and are registered via services/record/migrations.Register.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Descriptor = servicebase.Descriptor{
	Name:    "record",
	Purpose: "Provides record lookup and record form helpers for admin handlers.",
	Dependencies: []string{
		"core.App",
		"services/base/forms",
	},
	Operations: []string{
		"FindByID",
		"NewUpsertForm",
		"Delete",
	},
}

Functions

This section is empty.

Types

type Config

type Config struct{}

Config defines record service options.

The record service currently has no custom configuration, but the dedicated config type keeps the module shape aligned with the shared service template.

type Service

type Service struct {
	servicebase.Service
}

func New

func New(app core.App) *Service

func (*Service) Delete

func (s *Service) Delete(record *models.Record) error

func (*Service) FindByID

func (s *Service) FindByID(collectionID, recordID string, ruleFuncs ...func(q *dbx.SelectQuery) error) (*models.Record, error)

func (*Service) NewUpsertForm

func (s *Service) NewUpsertForm(record *models.Record) *recordforms.RecordUpsert

Directories

Path Synopsis
Package apis contains the record service HTTP transport binding layer.
Package apis contains the record service HTTP transport binding layer.

Jump to

Keyboard shortcuts

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