entity

package
v0.0.0-...-9302578 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCounters

func NewCounters(counterNames []string, countNum int) *[]Counter

NewCounters instantiates many counters objects.

func NewFacts

func NewFacts(factNames []string) *[]Fact

NewFacts instantiates many facts objects.

func NewHabits

func NewHabits(habitNames []string) *[]Habit

NewHabits instantiates many habits objects.

Types

type Counter

type Counter struct {
	gorm.Model
	Name     string
	CountNum int
}

Counter is a register of a life event.

func NewCounter

func NewCounter(counterName string) *Counter

NewCounter instantiates a counter object.

type Fact

type Fact struct {
	gorm.Model
	Name string
}

Fact is a register of a life event.

func NewFact

func NewFact(factName string) *Fact

NewFact instantiates a fact object.

func (*Fact) String

func (f *Fact) String() string

type Habit

type Habit struct {
	gorm.Model
	Name string
}

Habit is a register of a life event.

func NewHabit

func NewHabit(habitName string) *Habit

NewHabit instantiates a habit object.

func (*Habit) String

func (f *Habit) String() string

Jump to

Keyboard shortcuts

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