providers

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package providers contains a set of builtin providers for Zero.

These are "weak" providers, so local providers will override them, unless selected explicitly.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultErrorHandler

func DefaultErrorHandler() zero.ErrorHandler

DefaultErrorHandler for otherwise unhandled errors.

The response will be JSON in the form:

{
  "error": "error message",
  "code": code
}

func NewContainer added in v0.12.0

func NewContainer(mux *http.ServeMux, cron *cron.Scheduler) *zero.Container

NewContainer creates a new [Container] instance.

Types

This section is empty.

Directories

Path Synopsis
Package cron provides support for Zero cron jobs.
Package cron provides support for Zero cron jobs.
Package leases provides an API for acquiring and releasing leases.
Package leases provides an API for acquiring and releasing leases.
Package logging contains providers for common loggers.
Package logging contains providers for common loggers.
Package pubsub contains implementations for eventing providers.
Package pubsub contains implementations for eventing providers.
pubsubtest
Package pubsubtest contains helper functions for testing pubsub.
Package pubsubtest contains helper functions for testing pubsub.
sql
Package sql contains types and providers for connecting to and migrating SQL databases.
Package sql contains types and providers for connecting to and migrating SQL databases.
sqltest
Package sqltest provides utilities for testing SQL databases.
Package sqltest provides utilities for testing SQL databases.

Jump to

Keyboard shortcuts

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