primus

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrimusConfig

type PrimusConfig struct {
	ConnInfo    string
	CreateQuery string
	ReadQuery   string
	UpdateQuery string
	DeleteQuery string
}

type PrimusHost

type PrimusHost struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewPrimusHost

func NewPrimusHost(cfg *PrimusConfig) *PrimusHost

func (*PrimusHost) GetDB

func (p *PrimusHost) GetDB(domain string) (*sql.DB, error)

func (*PrimusHost) Start

func (p *PrimusHost) Start()

func (*PrimusHost) Stop

func (p *PrimusHost) Stop() error

func (*PrimusHost) Update

func (p *PrimusHost) Update(ctx context.Context) error

Jump to

Keyboard shortcuts

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