couriermodel

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2019 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Code generated by go generate. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LinkModel

type LinkModel struct {
	LinkID       string `model:"linkid,VARCHAR(63) PRIMARY KEY" query:"linkid"`
	URL          string `model:"url,VARCHAR(2047) NOT NULL" query:"url"`
	CreatorID    string `model:"creatorid,VARCHAR(31) NOT NULL" query:"creatorid"`
	CreationTime int64  `model:"creation_time,BIGINT NOT NULL" query:"creation_time,getgroup"`
}

LinkModel is the db link model

type Repo

type Repo interface {
	NewLink(linkid, url, creatorid string) (*LinkModel, *governor.Error)
	NewLinkAuto(url, creatorid string) (*LinkModel, *governor.Error)
	NewLinkEmpty() LinkModel
	NewLinkEmptyPtr() *LinkModel
	GetLinkGroup(limit, offset int, creatorid string) ([]LinkModel, *governor.Error)
	GetLink(linkid string) (*LinkModel, *governor.Error)
	InsertLink(m *LinkModel) *governor.Error
	DeleteLink(m *LinkModel) *governor.Error
	Setup() *governor.Error
}

Repo is a courier repository

func New

func New(config governor.Config, l governor.Logger, d db.Database) Repo

New creates a new courier repo

Jump to

Keyboard shortcuts

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