repository

package
v0.0.0-...-fa2c683 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Code generated by tools/update-providers.go; DO NOT EDIT.

Index

Constants

View Source
const TxKey = "tx"

Variables

This section is empty.

Functions

This section is empty.

Types

type BlocksRepository

type BlocksRepository interface {
	GetAllBlocks(ctx context.Context) ([]*ent.Blocks, error)
	CreateBlock(ctx context.Context, req *dto.BlockDto) (*ent.Blocks, error)
}

func ProvideBlocksRepository

func ProvideBlocksRepository(
	db *ent.Client,
) BlocksRepository

type CategoriesRepository

type CategoriesRepository interface {
	GetAllCategories(ctx context.Context) ([]*ent.Categories, error)
	CreateCategory(ctx context.Context, req *genapi.CreateCategoryReq) (*ent.Categories, error)
}

func ProvideCategoriesRepository

func ProvideCategoriesRepository(
	db *ent.Client,
) CategoriesRepository

type CounterRepository

type CounterRepository interface {
}

func ProvideCounterRepository

func ProvideCounterRepository(
	db *ent.Client,
) CounterRepository

type IspRepository

type IspRepository interface {
	CreateISP(ctx context.Context, isp *genapi.ISPInput) (*ent.Isps, error)
	GetAllISPs(ctx context.Context, params genapi.ListISPsParams) ([]genapi.ISP, error)
	GetISPByID(ctx context.Context, id int) (*ent.Isps, error)
	GetBlocksForISP(ctx context.Context, id int) ([]*ent.Blocks, error)
}

func ProvideIspRepository

func ProvideIspRepository(
	db *ent.Client,
) IspRepository

type ReportsRepository

type ReportsRepository interface {
}

func ProvideReportsRepository

func ProvideReportsRepository(
	db *ent.Client,
) ReportsRepository

type SitesRepository

type SitesRepository interface {
	CreateSite(ctx context.Context, req *genapi.SiteInput) (*ent.Sites, error)
	GetAllSites(ctx context.Context, params genapi.ListSitesParams) ([]genapi.Site, error)
	GetSiteByDomain(ctx context.Context, domain string) (*ent.Sites, error)
	GetSiteBlocksByID(ctx context.Context, id int) ([]*ent.Blocks, error)
	GetSiteByID(ctx context.Context, id int) (*ent.Sites, error)
}

func ProvideSitesRepository

func ProvideSitesRepository(
	db *ent.Client,
) SitesRepository

type TxHandler

type TxHandler struct {
	// contains filtered or unexported fields
}

func NewTxHandler

func NewTxHandler(client *ent.Client) TxHandler

func (*TxHandler) Begin

func (t *TxHandler) Begin(ctx context.Context) (*ent.Tx, error)

func (*TxHandler) CommitOrRollback

func (t *TxHandler) CommitOrRollback(ctx context.Context) error

func (*TxHandler) GetTxFromCtx

func (t *TxHandler) GetTxFromCtx(ctx context.Context) (*ent.Tx, error)

Jump to

Keyboard shortcuts

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