gateway

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: MIT Imports: 16 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UserGatewayContextKey libdomain.ContextKey = "user_gateway"

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

Functions

func ComparePasswords added in v0.0.11

func ComparePasswords(hashedPassword string, plainPassword string) bool

func NewOrganizationRepository

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

func NewRepositoryFactory

func NewRepositoryFactory(ctx context.Context, dialect libgateway.DialectRDBMS, 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, dialect libgateway.DialectRDBMS, 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