storagepostgres

package
v0.0.0-...-f10ad04 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StorageMsgTasksDB

type StorageMsgTasksDB struct {
	DB *sql.DB
	// contains filtered or unexported fields
}

func NewStorageMsgTasksDB

func NewStorageMsgTasksDB(ctx context.Context, login string, password string, host string, port string, name string, table string, sqlOpen func(string, string) (*sql.DB, error)) (StorageMsgTasksDB, error)

func (*StorageMsgTasksDB) AddElement

func (s *StorageMsgTasksDB) AddElement(ctx context.Context, msgId string, taskId string) error

func (*StorageMsgTasksDB) Finish

func (s *StorageMsgTasksDB) Finish()

func (*StorageMsgTasksDB) GetIdMessageByTask

func (s *StorageMsgTasksDB) GetIdMessageByTask(ctx context.Context, taskId string) (string, error)

func (*StorageMsgTasksDB) GetIdTaskByMessage

func (s *StorageMsgTasksDB) GetIdTaskByMessage(ctx context.Context, msgId string) (string, error)

Jump to

Keyboard shortcuts

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