state

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenConnection

func OpenConnection(cfg config.Database) (*gorm.DB, error)

OpenConnection -

Types

type State

type State struct {
	IndexName string `gorm:"primaryKey"`
	IndexType string
	Hash      string
	Level     uint64
}

State -

func Get

func Get(db *gorm.DB, indexName string) (state State, err error)

Get -

func (State) TableName

func (State) TableName() string

TableName -

func (State) Update

func (s State) Update(db *gorm.DB) error

UpdateState -

Jump to

Keyboard shortcuts

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