postgres

package
v0.0.0-...-a6f2505 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Host         string
	Port         int
	User         string
	Pass         string
	DBName       string
	MaxOpenConns int
}

type Storage

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

func New

func New(ctx context.Context, c Config) (*Storage, error)

func (*Storage) Check

func (s *Storage) Check() error

func (*Storage) Hello

func (s *Storage) Hello(name string) (*models.HelloMessage, error)

func (*Storage) LogEvent

func (s *Storage) LogEvent(name string) error

func (*Storage) MakeMigration

func (s *Storage) MakeMigration() error

func (*Storage) ReadEventTime

func (s *Storage) ReadEventTime(name string) (*time.Time, error)

Jump to

Keyboard shortcuts

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