postgres

package
v0.0.0-...-3bd48bc Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2020 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 Options

type Options struct {
	DatabaseName           string // default peque
	DatabaseUser           string // default peque
	DatabasePassword       string // default peque
	DatabaseHost           string // default localhost
	DatabasePort           int64  // default 5432
	DatabaseConnectTimeout int64  // default 0

	DatabaseSSLMode     string
	DatabaseSSLCert     string
	DatabaseSSLKey      string
	DatabaseSSLRootCert string
}

Options ...

type Service

type Service struct {
	Options Options
	// contains filtered or unexported fields
}

Service ...

func Connect

func Connect(options Options) (*Service, error)

Connect initializes a new Service

func (Service) Install

func (s Service) Install() error

Install messageDB on postgres server

func (Service) WriteMessage

func (s Service) WriteMessage(data string, streamID string) error

WriteMessage writes a new message to a stream

Jump to

Keyboard shortcuts

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