db

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() *gorm.DB

Types

type CheckinCounter

type CheckinCounter struct {
	gorm.Model
	Counter int
}

type CounterStore

type CounterStore struct {
	// contains filtered or unexported fields
}

func NewCheckinCounterStore

func NewCheckinCounterStore(db *gorm.DB) *CounterStore

func (*CounterStore) GetCounter

func (cs *CounterStore) GetCounter() (*CheckinCounter, error)

func (*CounterStore) UpdateCounter

func (cs *CounterStore) UpdateCounter() (*CheckinCounter, error)

Jump to

Keyboard shortcuts

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