dbrest

package module
v0.0.0-...-a4928d1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

README

postgresql-rest

postgresql-rest is a standalone application that allows PostgreSQL functions in one or more databases to be exposed as a REST API.

History

It started off being part of the nre-feeds project when it was noticed it should be more generic for exposing other opendata than just the NRE data feeds. I then started to include it within the uktransport project but it's turned out to be deserving it's own project.

Overview

The utility currently has 3 modes of operation:

  1. Exposing functions over a rest api
  2. Invoking functions with no parameters on a Cron schedule
  3. Invoking functions when a message is received from a RabbitMQ queue

You can run the utility with any or all of these modes at the same time - although if you are receiving from RabbitMQ as well as hosting REST I suggest you run them in two separate instances.

Full documentation will appear within the project's wiki.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBRest

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

func (*DBRest) Init

func (a *DBRest) Init(k *kernel.Kernel) error

func (*DBRest) Name

func (a *DBRest) Name() string

func (*DBRest) PostInit

func (a *DBRest) PostInit() error

func (*DBRest) Start

func (a *DBRest) Start() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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