service

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2026 License: Unlicense Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnauthorized = errors.New("unauthorized")
	ErrMissingRule  = errors.New("internal server error: missing rule")
)

Functions

func New

func New(
	ctx context.Context,
	database *sql.DB,
	queries *db.Queries,
	conf *config.Config,
	log *zap.Logger,
) core.Services

func NewACRService

func NewACRService(
	conf *config.Config,
	log *zap.Logger,
) (core.ACRStorage, error)

func NewBlobService

func NewBlobService(
	db *sql.DB,
	queries *db.Queries,
	cdnBaseUrl string,
	log *zap.Logger,
) (core.BlobStorage, error)

func NewMimeTypeService

func NewMimeTypeService(
	ctx context.Context,
	queries *db.Queries,
	conf *config.Config,
	log *zap.Logger,
) (core.MimeTypeService, error)

func NewSettingService

func NewSettingService(
	maxUploadSizeBytes int,
) (core.SettingService, error)

func NewStatService

func NewStatService(
	queries *db.Queries,
) (core.StatService, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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