language

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ILanguageDependency

type ILanguageDependency interface {
	InitializeLanguages() error
}

type LanguageDependency

type LanguageDependency struct {
	Configuration LanguageDependencyConfiguration
}

func NewLanguageDependency

func NewLanguageDependency(LanguageDependencyConfiguration configuration) *LanguageDependency

func (*LanguageDependency) InitializeLanguage

func (ld *LanguageDependency) InitializeLanguage() error

type LanguageDependencyConfiguration

type LanguageDependencyConfiguration struct {
	MongoDbDatabaseConnectionString string
	MongoDbDatabaseUsername         string
	MongoDbDatabasePassword         string
	PostgresDatabaseDsn             string
	MysqlDatabaseDsn                string
	DatabaseName                    stirng
}

type SystemLanguage

type SystemLanguage struct {
	gorm.Model
	mongodb.MongoDbDatabaseObject   `gorm:"serializer:json"`
	mysql.MysqlDatabaseObject       `gorm:"serializer:json"`
	postgres.PostgresDatabaseObject `gorm:"serializer:json"`
	Id                              primitive.ObjectID            `gorm:"serializer:json"`
	MysqlId                         uint                          `gorm:"primaryKey"`
	PostgresId                      uint                          `gorm:"primaryKey"`
	Names                           map[primitive.ObjectID]string `gorm:"serializer:json"`
	Countries                       []string                      `gorm:"serializer:json"`
	Code                            string
}

Jump to

Keyboard shortcuts

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