Skip to content

module ​

go
import "github.com/prescriptoo/prescriptoo-api/services/audit/module"

Package module composes internal Audit capabilities. There are no Audit HTTP routes.

Index ​

type Module ​

Module composes Audit capabilities without registering HTTP routes.

go
type Module struct {
    // contains filtered or unexported fields
}

func NewModule ​

go
func NewModule(db *pgxpool.Pool) *Module

NewModule constructs Audit storage capabilities; readers require permission configuration.

func (*Module) ConfigureReaders ​

go
func (m *Module) ConfigureReaders(admin auth.AdminPermissionChecker, organization auth.OrganizationPermissionChecker)

ConfigureReaders supplies the permission capabilities before requests are served.

func (*Module) Lister ​

go
func (m *Module) Lister() p.EventLister

Lister exposes only the history-list capability.

func (*Module) Reader ​

go
func (m *Module) Reader() p.EventReader

Reader exposes only the event-detail capability.

func (*Module) Writer ​

go
func (m *Module) Writer() p.TransactionalRecorderFactory

Writer returns the transaction-bound recording capability.

Generated by gomarkdoc

Documentation follows the source. Planned contracts are marked explicitly.