database

package
v0.0.0-...-2ef9421 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2015 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(db *gorm.DB) i18n.Backend

Types

type Backend

type Backend struct {
	DB *gorm.DB
}

func (*Backend) DeleteTranslation

func (backend *Backend) DeleteTranslation(t *i18n.Translation) error

func (*Backend) LoadTranslations

func (backend *Backend) LoadTranslations() (translations []*i18n.Translation)

func (*Backend) SaveTranslation

func (backend *Backend) SaveTranslation(t *i18n.Translation) error

type Translation

type Translation struct {
	Locale string `sql:"size:12;"`
	Key    string `sql:"size:4294967295;"`
	Value  string `sql:"size:4294967295"`
}

Jump to

Keyboard shortcuts

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