storage

package
v0.0.0-...-c606b97 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostgresStorage

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

func NewPostgresStorage

func NewPostgresStorage(ctx context.Context, connection string, ping bool) (*PostgresStorage, error)

func (*PostgresStorage) Close

func (p *PostgresStorage) Close()

func (*PostgresStorage) Done

func (p *PostgresStorage) Done(ctx context.Context, id int) error

func (*PostgresStorage) Processing

func (p *PostgresStorage) Processing(ctx context.Context, id int) error

func (*PostgresStorage) SaveTask

func (p *PostgresStorage) SaveTask(ctx context.Context, taskType int, taskValue int) (int, error)

func (*PostgresStorage) State

func (p *PostgresStorage) State(ctx context.Context, id int) (string, error)

Jump to

Keyboard shortcuts

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