resource

package
v1.9.3 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func InitCollectionOnce

func InitCollectionOnce(db *mongox.Mongo)

func InitCrypto added in v1.9.1

func InitCrypto(reg *cryptox.CryptoRegistry) cryptox.Crypto[string]

func InitResourceDAO

func InitResourceDAO(db *mongox.Mongo) dao.ResourceDAO

Types

type EncryptedSvc added in v1.9.1

type EncryptedSvc = service.EncryptedSvc

func NewEncryptedService added in v1.9.1

func NewEncryptedService(baseSvc service.Service, attrSvc attribute.Service, cryptox2 cryptox.Crypto[string]) EncryptedSvc

type Handler

type Handler = web.Handler

type Module

type Module struct {
	Svc          Service
	EncryptedSvc EncryptedSvc
	Hdl          *Handler
	// contains filtered or unexported fields
}

func InitModule

func InitModule(db *mongox.Mongo, attributeModule *attribute.Module, relationModule *relation.Module, q mq.MQ, crypto *cryptox.CryptoRegistry) (*Module, error)

type Resource added in v1.8.0

type Resource = domain.Resource

type Service

type Service = service.Service

func NewService

func NewService(repo repository.ResourceRepository) Service

Directories

Path Synopsis
internal
web
Package resourcemocks is a generated GoMock package.
Package resourcemocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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