database

package
v0.0.0-...-ea25219 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2015 License: MIT Imports: 2 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)

func (*Backend) LoadTranslations

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

func (*Backend) SaveTranslation

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

type Translation

type Translation struct {
	Key    string `gorm:"primary_key"`
	Locale string `gorm:"primary_key"`
	Value  string `sql"size:4294967295"`
}

Jump to

Keyboard shortcuts

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