persistence

package
v0.0.0-...-c1a88a1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostgresStore

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

func NewPostgresStore

func NewPostgresStore(dburl string, logger *log.Logger) (*PostgresStore, error)

func (*PostgresStore) Close

func (ps *PostgresStore) Close() error

Close closes the database connection

func (*PostgresStore) InsertMessage

func (ps *PostgresStore) InsertMessage(msg *model.Message) error

Jump to

Keyboard shortcuts

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