storage

package
v0.0.0-...-7d4440f Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider interface {
	Save(tx *Transaction) error
}

func NewPostgresStorage

func NewPostgresStorage(dsn string) (Provider, error)

func NewSqliteStorage

func NewSqliteStorage() (Provider, error)

type Storage

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

func (*Storage) Save

func (s *Storage) Save(tx *Transaction) error

type Transaction

type Transaction struct {
	gorm.Model

	Authorizers string
	Tx          string
	Code        string
	Error       string
	ImportTags  string
	Events      string
}

Jump to

Keyboard shortcuts

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