Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Log ILogger Repository VerbRepository }
type Conjugation ¶
type ConjugationImperative ¶
type ILogger ¶
type ILogger interface { Info(v ...interface{}) Error(v ...interface{}) Debug(v ...interface{}) }
type ImperativeTime ¶
type ImperativeTime struct { Negative ConjugationImperative `bson:"negativo" json:"negativo"` Affirmative ConjugationImperative `bson:"afirmativo" json:"afirmativo"` }
type IndicativeTime ¶
type IndicativeTime struct { Future Conjugation `bson:"futuro" json:"futuro"` Present Conjugation `bson:"presente" json:"presente"` Preterite Conjugation `bson:"preterito" json:"preterito"` Imperfect Conjugation `bson:"imperfecto" json:"imperfecto"` Conditional Conjugation `bson:"condicional" json:"condicional"` }
type Logger ¶
type MongoDatabase ¶
func (*MongoDatabase) ConnectToMongo ¶
func (db *MongoDatabase) ConnectToMongo() error
func (*MongoDatabase) GetCollection ¶
func (db *MongoDatabase) GetCollection(collName string) (*mongo.Collection, error)
func (*MongoDatabase) PingDB ¶
func (db *MongoDatabase) PingDB()
type PerfectSubjunctiveTime ¶
type PerfectSubjunctiveTime struct { Future Conjugation `bson:"futuro" json:"futuro"` Past Conjugation `bson:"pasado" json:"pasado"` Present Conjugation `bson:"presente" json:"presente"` }
type PerfectTime ¶
type PerfectTime struct { Future Conjugation `bson:"futuro" json:"futuro"` Past Conjugation `bson:"pasado" json:"pasado"` Present Conjugation `bson:"presente" json:"presente"` Preterite Conjugation `bson:"preterito" json:"preterito"` Conditional Conjugation `bson:"condicional" json:"condicional"` }
type ProgressiveTime ¶
type ProgressiveTime struct { Future Conjugation `bson:"futuro" json:"futuro"` Present Conjugation `bson:"presente" json:"presente"` Preterite Conjugation `bson:"preterito" json:"preterito"` Imperfect Conjugation `bson:"imperfecto" json:"imperfecto"` Conditional Conjugation `bson:"condicional" json:"condicional"` }
type SearchResult ¶
type SearchResult struct {
Verbo string `bson:"verbo" json:"verbo"`
}
type SubjunctiveTime ¶
type SubjunctiveTime struct { Future Conjugation `bson:"futuro" json:"futuro"` Present Conjugation `bson:"presente" json:"presente"` Imperfect Conjugation `bson:"imperfecto" json:"imperfecto"` Imperfect2 Conjugation `bson:"imperfecto2" json:"imperfecto2"` }
type VerbConjugation ¶
type VerbConjugation struct { Verb string `bson:"verbo" json:"verbo"` Imperative ImperativeTime `bson:"imperativo,omitempty" json:"imperativo,omitempty"` Indicative IndicativeTime `bson:"indicativo,omitempty" json:"indicativo,omitempty"` Perfect PerfectTime `bson:"perfecto,omitempty" json:"perfecto,omitempty"` PerfectSubjunctive PerfectSubjunctiveTime `bson:"perfect_subjuntivo,omitempty" json:"perfect_subjuntivo,omitempty"` Progressive ProgressiveTime `bson:"progresivo,omitempty" json:"progresivo,omitempty"` Subjunctive SubjunctiveTime `bson:"subjuntivo,omitempty" json:"subjuntivo,omitempty"` }
type VerbRepo ¶
type VerbRepo struct {
// contains filtered or unexported fields
}
func CreateVerbRepository ¶
func CreateVerbRepository(db *mongo.Collection) *VerbRepo
Click to show internal directories.
Click to hide internal directories.