role

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IRoleDependency

type IRoleDependency interface {
	InitializeRoles() error
}

type RoleDependency

type RoleDependency struct {
	Configuration RoleDependencyConfiguration
}

func NewRoleDependency

func NewRoleDependency(configuration RoleDependencyConfiguration) *RoleDependency

func (*RoleDependency) InitializeRoles

func (rd *RoleDependency) InitializeRoles() error

type RoleDependencyConfiguration

type RoleDependencyConfiguration struct {
	MongoDbDatabaseUsername         string
	MongoDbDatabasePassword         string
	MongoDbDatabaseConnectionString string
	PostgresDatabaseDsn             string
	MysqlDatabaseDsn                string
	CoreSectionId                   primitive.ObjectID
	CoreLanguageId                  primitive.ObjectID
	DatabaseName                    string
}

type UserRole

type UserRole struct {
	gorm.Model
	Id                        primitive.ObjectID `bson:"_id" gorm:"serializer:json"`
	MysqlId                   uint               `gorm:"primaryKey"`
	PostgresId                uint               `gorm:"primaryKey"`
	mr.MongoDbDatabaseObject  `gorm:"serializer:json"`
	myr.MysqlDatabaseObject   `gorm:"serializer:json"`
	pr.PostgresDatabaseObject `gorm:"serializer:json"`
	OwnerId                   primitive.ObjectID
	MysqlOwnerId              uint
	PostgresOwnerId           uint
	Names                     map[primitive.ObjectID]string `gorm:"serializer:json"`
	Sections                  []primitive.ObjectID          `gorm:"serializer:json"`
	SiteMap                   permission.SiteMap            `gorm:"serializer:json"`
}

Jump to

Keyboard shortcuts

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