cmd

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package cmd provides commands for gorse. They are

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main()

Main is the main entry of gorse.

Types

type Change

type Change struct {
	ItemsBefore    int // number of items before change
	ItemsAfter     int // number of items after change
	UsersBefore    int // number of users before change
	UsersAfter     int // number of user after change
	FeedbackBefore int // number of feedback before change
	FeedbackAfter  int // number of feedback after change
}

Change contains information of changes after insert.

type Feedback

type Feedback struct {
	UserId   string  // identifier of the user
	ItemId   string  // identifier of the item
	Feedback float64 // rating, confidence or indicator
}

Feedback is the feedback from a user to an item.

type ItemStringTime added in v0.1.3

type ItemStringTime struct {
	ItemId    string
	Timestamp string
}

type Status

type Status struct {
	FeedbackCount int    // number of feedback
	ItemCount     int    // number of items
	UserCount     int    // number of users
	CommitCount   int    // number of committed feedback
	CommitTime    string // time for commit
}

Status contains information about engine.

Jump to

Keyboard shortcuts

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