state

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 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" json:"index_name"`
	IndexType string `json:"index_type"`
	Hash      string `json:"hash,omitempty"`
	Level     uint64 `json:"level"`
}

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