gateway

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 15 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AppUserTableName = "app_user"
)
View Source
var (
	PairOfUserAndGroupTableName = "user_n_group"
)
View Source
var (
	UserGroupTableName = "user_group"
)

Functions

func NewAppUserRepository

func NewAppUserRepository(ctx context.Context, driverName string, db *gorm.DB, rf service.RepositoryFactory) service.AppUserRepository

func NewOrganizationRepository

func NewOrganizationRepository(ctx context.Context, db *gorm.DB) service.OrganizationRepository

func NewRepositoryFactory

func NewRepositoryFactory(ctx context.Context, driverName string, db *gorm.DB, location *time.Location) (service.RepositoryFactory, error)

func NewTransactionManager

func NewTransactionManager(db *gorm.DB, rff RepositoryFactoryFunc) (service.TransactionManager, error)

func NewUserGroupRepository

func NewUserGroupRepository(ctx context.Context, db *gorm.DB) service.UserGroupRepository

Types

type BaseModelEntity

type BaseModelEntity struct {
	Version   int
	CreatedAt time.Time
	UpdatedAt time.Time
	CreatedBy int
	UpdatedBy int
}

type HasTableName

type HasTableName interface {
	TableName() string
}

type JunctionModelEntity

type JunctionModelEntity struct {
	CreatedAt time.Time
	CreatedBy int
}

type RepositoryFactoryFunc

type RepositoryFactoryFunc func(ctx context.Context, db *gorm.DB) (service.RepositoryFactory, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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