caddypgrest

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

README

caddy-pgrest

A caddy module of postgresql restful api

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GraphQLRequest

type GraphQLRequest struct {
	Query         string                 `json:"query"`
	Variables     map[string]interface{} `json:"variables"`
	OperationName string                 `json:"operationName"`
}

type PGRestHandler

type PGRestHandler struct {
	// "postgres://user:password@localhost:5432/dbname"
	PgUrl     string `json:"pgurl,omitempty"`
	TableName string `json:"table_name,omitempty"`
	// contains filtered or unexported fields
}

func (PGRestHandler) CaddyModule

func (PGRestHandler) CaddyModule() caddy.ModuleInfo

CaddyModule returns the Caddy module information.

func (*PGRestHandler) Provision

func (m *PGRestHandler) Provision(ctx caddy.Context) error

Provision implements caddy.Provisioner.

func (*PGRestHandler) ServeHTTP

func (m *PGRestHandler) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) error

ServeHTTP implements caddyhttp.MiddlewareHandler.

func (*PGRestHandler) Validate

func (m *PGRestHandler) Validate() error

Validate implements caddy.Validator.

Directories

Path Synopsis
cmd
caddy command

Jump to

Keyboard shortcuts

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