api

package
v0.0.0-...-4dc4852 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	PgListener   *pglistener.PgListener
	RmqPublisher *rabbitmq.RabbitMQPublisher
	DB           *pgxpool.Pool
	// contains filtered or unexported fields
}

func New

func New(pgListener *pglistener.PgListener, rmqPublisher *rabbitmq.RabbitMQPublisher, db *pgxpool.Pool) *API

func (*API) HandleUsers

func (a *API) HandleUsers(w http.ResponseWriter, r *http.Request)

func (*API) HealthCheck

func (a *API) HealthCheck(w http.ResponseWriter, r *http.Request)

func (*API) SetupRoutes

func (a *API) SetupRoutes() http.Handler

Jump to

Keyboard shortcuts

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