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 (*TxHandler) CommitOrRollback ¶
Click to show internal directories.
Click to hide internal directories.