Documentation ¶
Index ¶
- Constants
- func NewUUID() string
- func Now() time.Time
- type Query
- func (q Query) ConstantInit()
- func (q Query) CreatePublicCurator() *neoism.Node
- func (q Query) CreateRecipe(handle string, recipe types.Recipe) (res types.Recipe, ok bool)
- func (q Query) CreateUser(handle, email, passwordHash string) bool
- func (q Query) DatabaseInit()
- func (q Query) DeriveHandleFromAuthToken(token string) (handle string, ok bool)
- func (q Query) DestroyAuthToken(token string) bool
- func (q Query) EmailUnique(email string) bool
- func (q Query) FindAuthToken(token string) bool
- func (q Query) GetCuratedRecipeById(id string) (r types.Recipe, ok bool)
- func (q Query) GetCuratedRecipes() (res types.Recipes, ok bool)
- func (q Query) GetHashedPassword(handle string) (hashedPassword []byte, ok bool)
- func (q Query) GetOwnRecipes(handle string) (res types.Recipes, ok bool)
- func (q Query) GetVisibleRecipeById(handle string, id string) (r types.Recipe, ok bool)
- func (q Query) HandleUnique(handle string) bool
- func (q Query) SetGetNewAuthTokenForUser(handle string) (string, bool)
- func (q Query) UserExistsByEmail(email string) bool
- func (q Query) UserExistsByHandle(handle string) bool
- type QueryStrings
Constants ¶
View Source
const ( NANOSECONDS_IN_DAY int64 = 86400000000000 CQL_DIR = "service/query/cql/" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Query ¶
type Query struct { Db *neoism.Database Vd *types.RicettaValidator Qs QueryStrings }
func (Query) ConstantInit ¶
func (q Query) ConstantInit()
Initializes constants needed for query layer
func (Query) CreatePublicCurator ¶
func (Query) CreateRecipe ¶
func (Query) CreateUser ¶
func (Query) DeriveHandleFromAuthToken ¶
func (Query) DestroyAuthToken ¶
func (Query) EmailUnique ¶
func (Query) FindAuthToken ¶
func (Query) GetCuratedRecipeById ¶
func (Query) GetHashedPassword ¶
func (Query) GetOwnRecipes ¶
func (Query) GetVisibleRecipeById ¶
func (Query) HandleUnique ¶
func (Query) SetGetNewAuthTokenForUser ¶
func (Query) UserExistsByEmail ¶
func (Query) UserExistsByHandle ¶
type QueryStrings ¶
type QueryStrings struct { FindToken string CreateRecipe string ReturnRecipe string FindCurator string AddCuratorRel string CreateIngredient string CreateStep string GetOwnRecipes string GetIngredients string GetSteps string GetTags string GetCuratedRecipes string GetOwnRecipe string GetVisibleRecipe string RecipeAuthor string TagExists string CreateNewTag string AddRelationToTag string }
func QueryStringInit ¶
func QueryStringInit() QueryStrings
Click to show internal directories.
Click to hide internal directories.