models

package module
v0.0.0-...-a2cbccb Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Education

type Education struct {
	Id          string
	Site        string
	ProgramType string
	ProgramName string
}

Education represents the Education message.

type Environment

type Environment struct {
	Datasources struct {
		MongoDB struct {
			Uri string `mapstructure:"uri"`
		} `mapstructure:"mongodb"`
		Redis struct {
			Uri      string `mapstructure:"uri"`
			Password string `mapstructure:"password"`
		} `mapstructure:"redis"`
		Neo4j struct {
			Uri      string `mapstructure:"uri"`
			Username string `mapstructure:"username"`
			Password string `mapstructure:"password"`
		} `mapstructure:"neo4j"`
	} `mapstructure:"datasources"`
}

type Gender

type Gender struct {
	Id   string
	Name string
}

Gender represents the Gender message.

type Location

type Location struct {
	Id        string
	City      string
	Country   string
	Longitude float32
	Latitude  float32
}

Location represents the Location message.

type Relationship

type Relationship struct {
	Id   string
	Name string
}

Relationship represents the Relationship message.

type Thing

type Thing struct {
	Id       string
	WhatItIs string
	NameOfIt string
}

Thing represents the Thing message.

type User

type User struct {
	Id             string
	Name           string
	Lastname       string
	PhoneNumber    string
	Status         string // 'pending', 'verified', 'deactivated'
	Email          string
	Password       string
	AboutMe        string
	Religion       string
	Score          int64
	Age            int32
	Height         float32
	Weight         float32
	Pictures       []string
	LastConnection time.Time
	CreationDate   time.Time
	Gender         Gender
	LastLocation   Location
	Relationship   []Relationship // what the user is looking for
	Work           []Work         // optinal logs for formal work experience like linkedin
	Education      []Education    // optional logs for formal education like linkedin
	Tags           []Thing        // concepts that the user associate to itself
	Likes          []Thing
	Dislikes       []Thing
}

User represents the User message.

type Work

type Work struct {
	Id   string
	Site string
	Role string
}

Work represents the Work message.

Jump to

Keyboard shortcuts

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