domain

package
v0.0.0-...-b26f218 Latest Latest
Warning

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

Go to latest
Published: May 14, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Category

type Category struct {
	ID        int64
	Name      string
	CreatedAt time.Time
	UpdatedAt time.Time
}

type ChangePassword

type ChangePassword struct {
	PreviousPassword string
	NewPassword      string
}

type GroupedTranslations

type GroupedTranslations struct {
	Locale       string
	Translations []*Translation
}

type Identifier

type Identifier struct {
	ID           int64
	CreatorID    int64
	CategoryID   int64
	Name         string
	Description  string
	TextSingular string
	TextPlural   string
	Status       int64
	Platforms    []string
	NamedList    []string
	CreatedAt    time.Time
	UpdatedAt    time.Time
	Category     *Category

	ParentNames []string
}

type Language

type Language struct {
	Name string
	Code string
}

type Localization

type Localization struct {
	ID           int64
	CreatorID    int64
	Locale       string
	LanguageName string
	Status       int64
	CreatedAt    time.Time
	UpdatedAt    time.Time
}

type LocalizationIdentifier

type LocalizationIdentifier struct {
	ID             int64
	LocalizationID int64
	IdentifierID   int64
	Status         int64
	CreatedAt      time.Time
	UpdatedAt      time.Time
}

type S3Configuration

type S3Configuration struct {
	SecretAccessKey string
	AccessKeyID     string
	Region          string
	Endpoint        string
	DisableSSL      bool
	ForcePathStyle  bool
}

func (*S3Configuration) IsValid

func (s *S3Configuration) IsValid() error

type SettingConfiguration

type SettingConfiguration struct {
	Storage     StorageConfiguration
	Translation TranslationConfiguration
	FirstLaunch bool
}

type StatTranslation

type StatTranslation struct {
	LangName   string
	Percentage float64
}

type Statistic

type Statistic struct {
	CountUsers         int64
	CountCategories    int64
	CountIdentifiers   int64
	CountLocalizations int64
	StatTranslations   []*StatTranslation
}

type StorageConfiguration

type StorageConfiguration struct {
	Use             int32
	S3Configuration *S3Configuration
}

type Translation

type Translation struct {
	ID           int64
	CreatorID    int64
	Singular     string
	Plural       string
	Status       int64
	Localization *Localization
	Identifier   *Identifier
	CreatedAt    time.Time
	UpdatedAt    time.Time
}

type TranslationConfiguration

type TranslationConfiguration struct {
	Auto         bool
	Use          int32
	MainLanguage string // main language using like source for translations
}

func (TranslationConfiguration) UseAutoTranslation

func (t TranslationConfiguration) UseAutoTranslation() bool

type TranslationFile

type TranslationFile struct {
	ID             int64
	CreatorID      int64
	LocalizationID int64
	Name           string
	Path           string
	Platform       int64
	StorageType    int64
	Status         int64
	Localization   *Localization
	CreatedAt      time.Time
	UpdatedAt      time.Time
}

type User

type User struct {
	ID         int64
	Email      string
	Password   string
	FirstName  string
	SecondName string
	UUIDID     string
	Role       int64
	Status     int64
	CreatedAt  time.Time
	UpdatedAt  time.Time
}

type Version

type Version struct {
	Path           string
	Platform       int64
	UpdatedAt      int64
	Locale         string
	LangName       string
	LocalizationID int64
}

Jump to

Keyboard shortcuts

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