site

package
v0.0.0-...-395d67b Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	DB *gorm.DB
}

API holds all api handler

func NewAPI

func NewAPI(d *gorm.DB) *API

NewAPI creates a new api and insert the database provided in it

type Site

type Site struct {
	gorm.Model
	Name      string `sql:"name" json:"name,omitempty"`
	URL       string `sql:"url" json:"url,omitempty"`
	ContactID uint   `sql:"contact_id" json:"contact_id,omitempty"`
}

Site holds site information

func NewSite

func NewSite() *Site

NewSite creates a new site

Jump to

Keyboard shortcuts

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