model

package
v0.0.0-...-2573200 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2016 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddKindling

func AddKindling() int

func AddTwig

func AddTwig(twig Twig) bool

func CreateTableKindling

func CreateTableKindling()

func CreateTableTwig

func CreateTableTwig()

Types

type Kindling

type Kindling struct {
	Id    int    `json:"kindling_id"`
	Twigs []Twig `json:"twigs"`
}

Kindling model - simple storage of Kindling Ids

func GetKindling

func GetKindling(kindlingId int) Kindling

type Kindlings

type Kindlings []Kindling

Kindlings - Slice of Kindling

type Twig

type Twig struct {
	KindlingId int    `gorm:"ForeignKey:Id" json:"-"`
	Url        string `json:"url"`
}

Twig model - stores a Twig (URL) to a KindlingId

type Twigs

type Twigs []Twig

Twigs - Slice of Twig

Jump to

Keyboard shortcuts

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