idsdict

package
v0.0.0-...-3b4bda9 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2016 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const ENGLISH_LANG_NAME = "English"
View Source
const MATURE_GENRE_NAME = "Mature"

Variables

View Source
var IdAssigned = eventq.NewEventType()

Functions

This section is empty.

Types

type ArtistId

type ArtistId struct {
	// contains filtered or unexported fields
}

func (*ArtistId) Scan

func (this *ArtistId) Scan(src interface{}) error

func (ArtistId) String

func (this ArtistId) String() string

func (ArtistId) Value

func (this ArtistId) Value() (driver.Value, error)

type ArtistsDict

type ArtistsDict struct {
	// contains filtered or unexported fields
}

func NewArtistsDict

func NewArtistsDict() ArtistsDict

func (*ArtistsDict) AssignIds

func (this *ArtistsDict) AssignIds(artists []string) (ids []ArtistId, added []bool)

func (*ArtistsDict) AssignIdsBytes

func (this *ArtistsDict) AssignIdsBytes(artists [][]byte) (ids []ArtistId, added []bool)

func (*ArtistsDict) ExecuteInsertionStmt

func (this *ArtistsDict) ExecuteInsertionStmt(stmt *sql.Stmt, unused ...interface{}) error

func (*ArtistsDict) ExecuteQueryStmt

func (this *ArtistsDict) ExecuteQueryStmt(stmt *sql.Stmt, unused ...interface{}) error

func (*ArtistsDict) Id

func (this *ArtistsDict) Id(artist string) ArtistId

func (*ArtistsDict) NameOf

func (this *ArtistsDict) NameOf(id ArtistId) string

type AuthorId

type AuthorId struct {
	// contains filtered or unexported fields
}

func (*AuthorId) Scan

func (this *AuthorId) Scan(src interface{}) error

func (AuthorId) String

func (this AuthorId) String() string

func (AuthorId) Value

func (this AuthorId) Value() (driver.Value, error)

type AuthorsDict

type AuthorsDict struct {
	// contains filtered or unexported fields
}

func NewAuthorDict

func NewAuthorDict() AuthorsDict

func (*AuthorsDict) AssignIds

func (this *AuthorsDict) AssignIds(authors []string) (ids []AuthorId, added []bool)

func (*AuthorsDict) AssignIdsBytes

func (this *AuthorsDict) AssignIdsBytes(authors [][]byte) (ids []AuthorId, added []bool)

func (*AuthorsDict) ExecuteInsertionStmt

func (this *AuthorsDict) ExecuteInsertionStmt(stmt *sql.Stmt, unused ...interface{}) error

func (*AuthorsDict) ExecuteQueryStmt

func (this *AuthorsDict) ExecuteQueryStmt(stmt *sql.Stmt, unused ...interface{}) error

func (*AuthorsDict) Id

func (this *AuthorsDict) Id(author string) AuthorId

func (*AuthorsDict) NameOf

func (this *AuthorsDict) NameOf(id AuthorId) string

type ComicGenreId

type ComicGenreId struct {
	// contains filtered or unexported fields
}

func MATURE_GENRE_ID

func MATURE_GENRE_ID() ComicGenreId

func (*ComicGenreId) Scan

func (this *ComicGenreId) Scan(src interface{}) error

func (ComicGenreId) String

func (this ComicGenreId) String() string

func (ComicGenreId) Value

func (this ComicGenreId) Value() (driver.Value, error)

type ComicGenresDict

type ComicGenresDict struct {
	// contains filtered or unexported fields
}

func NewComicGenresDict

func NewComicGenresDict() ComicGenresDict

func (*ComicGenresDict) AssignIds

func (this *ComicGenresDict) AssignIds(genres []string) (ids []ComicGenreId, added []bool)

func (*ComicGenresDict) AssignIdsBytes

func (this *ComicGenresDict) AssignIdsBytes(genres [][]byte) (ids []ComicGenreId, added []bool)

func (*ComicGenresDict) ExecuteInsertionStmt

func (this *ComicGenresDict) ExecuteInsertionStmt(stmt *sql.Stmt, unused ...interface{}) error

func (*ComicGenresDict) ExecuteQueryStmt

func (this *ComicGenresDict) ExecuteQueryStmt(stmt *sql.Stmt, unused ...interface{}) error

func (*ComicGenresDict) Id

func (this *ComicGenresDict) Id(genre string) ComicGenreId

func (*ComicGenresDict) NameOf

func (this *ComicGenresDict) NameOf(id ComicGenreId) string

type ComicTagId

type ComicTagId struct {
	// contains filtered or unexported fields
}

func (*ComicTagId) Scan

func (this *ComicTagId) Scan(src interface{}) error

func (ComicTagId) String

func (this ComicTagId) String() string

func (ComicTagId) Value

func (this ComicTagId) Value() (driver.Value, error)

type ComicTagsDict

type ComicTagsDict struct {
	// contains filtered or unexported fields
}

func NewComicTagsDict

func NewComicTagsDict() ComicTagsDict

func (*ComicTagsDict) AssignIds

func (this *ComicTagsDict) AssignIds(tags []string) (ids []ComicTagId, added []bool)

func (*ComicTagsDict) AssignIdsBytes

func (this *ComicTagsDict) AssignIdsBytes(tags [][]byte) (ids []ComicTagId, added []bool)

func (*ComicTagsDict) ExecuteInsertionStmt

func (this *ComicTagsDict) ExecuteInsertionStmt(stmt *sql.Stmt, unused ...interface{}) error

func (*ComicTagsDict) ExecuteQueryStmt

func (this *ComicTagsDict) ExecuteQueryStmt(stmt *sql.Stmt, unused ...interface{}) error

func (*ComicTagsDict) Id

func (this *ComicTagsDict) Id(tag string) ComicTagId

func (*ComicTagsDict) NameOf

func (this *ComicTagsDict) NameOf(id ComicTagId) string

type Id

type Id int

type JointScanlatorIds

type JointScanlatorIds string //Can't have slices as keys in maps. Fortunately strings work, so we can pack data in them

func JoinScanlators

func JoinScanlators(ids []ScanlatorId) JointScanlatorIds

func (*JointScanlatorIds) Slice

func (this *JointScanlatorIds) Slice() []ScanlatorId

func (JointScanlatorIds) String

func (this JointScanlatorIds) String() string

type LangId

type LangId struct {
	// contains filtered or unexported fields
}

func ENGLISH_LANG_ID

func ENGLISH_LANG_ID() LangId

func (*LangId) Scan

func (this *LangId) Scan(src interface{}) error

func (LangId) String

func (this LangId) String() string

func (LangId) Value

func (this LangId) Value() (driver.Value, error)

type LangsDict

type LangsDict struct {
	// contains filtered or unexported fields
}

func NewLangDict

func NewLangDict() LangsDict

func (*LangsDict) AssignIds

func (this *LangsDict) AssignIds(langs []string) (ids []LangId, added []bool)

func (*LangsDict) ExecuteInsertionStmt

func (this *LangsDict) ExecuteInsertionStmt(stmt *sql.Stmt, unused ...interface{}) error

func (*LangsDict) ExecuteQueryStmt

func (this *LangsDict) ExecuteQueryStmt(stmt *sql.Stmt, unused ...interface{}) error

func (*LangsDict) Id

func (this *LangsDict) Id(lang string) LangId

func (*LangsDict) NameOf

func (this *LangsDict) NameOf(id LangId) string

type ScanlatorId

type ScanlatorId struct {
	// contains filtered or unexported fields
}

func (*ScanlatorId) Scan

func (this *ScanlatorId) Scan(src interface{}) error

func (ScanlatorId) String

func (this ScanlatorId) String() string

func (ScanlatorId) Value

func (this ScanlatorId) Value() (driver.Value, error)

type ScanlatorSlice

type ScanlatorSlice []ScanlatorId

func (ScanlatorSlice) Len

func (slice ScanlatorSlice) Len() int

func (ScanlatorSlice) Less

func (slice ScanlatorSlice) Less(i, j int) bool

func (ScanlatorSlice) Swap

func (slice ScanlatorSlice) Swap(i, j int)

type ScanlatorsDict

type ScanlatorsDict struct {
	// contains filtered or unexported fields
}

func NewScanlatorsDict

func NewScanlatorsDict() ScanlatorsDict

func (*ScanlatorsDict) AssignIds

func (this *ScanlatorsDict) AssignIds(scanlators []string) (ids []ScanlatorId, added []bool)

func (*ScanlatorsDict) AssignIdsBytes

func (this *ScanlatorsDict) AssignIdsBytes(scanlators [][]byte) (ids []ScanlatorId, added []bool)

func (*ScanlatorsDict) ExecuteInsertionStmt

func (this *ScanlatorsDict) ExecuteInsertionStmt(stmt *sql.Stmt, unused ...interface{}) error

func (*ScanlatorsDict) ExecuteQueryStmt

func (this *ScanlatorsDict) ExecuteQueryStmt(stmt *sql.Stmt, unused ...interface{}) error

func (*ScanlatorsDict) Id

func (this *ScanlatorsDict) Id(scanlator string) ScanlatorId

func (*ScanlatorsDict) NameOf

func (this *ScanlatorsDict) NameOf(id ScanlatorId) string

Jump to

Keyboard shortcuts

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