confmodel

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: 6 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 Model

type Model struct {
	Orgname      string `model:"orgname,VARCHAR(255) NOT NULL"`
	CreationTime int64  `model:"creation_time,BIGINT NOT NULL"`
	// contains filtered or unexported fields
}

Model is the db Config model

type Repo

type Repo interface {
	New(orgname string) (*Model, *governor.Error)
	Get() (*Model, *governor.Error)
	Insert(m *Model) *governor.Error
	Update(m *Model) *governor.Error
	Setup() *governor.Error
}

func New

func New(conf governor.Config, l governor.Logger, database db.Database) Repo

Jump to

Keyboard shortcuts

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