server

package
v1.24.5 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package server provides a Data API server handlers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server implements services described by OpenAPI description file.

func New

func New(l *slog.Logger, handler *middleware.Middleware) *Server

New creates a new Server.

func (*Server) Aggregate

func (s *Server) Aggregate(c *zip.Ctx) error

Aggregate implements [ServerInterface].

func (*Server) Auth added in v1.24.4

func (s *Server) Auth(c *zip.Ctx) error

Auth handles SCRAM authentication based on the username and password specified in request. After a successful handshake it calls the next handler.

func (*Server) ConnInfo added in v1.24.4

func (s *Server) ConnInfo(c *zip.Ctx) error

ConnInfo creates a new *conninfo.ConnInfo, calls the next handler, and closes the connection info after the request is done.

func (*Server) DeleteMany

func (s *Server) DeleteMany(c *zip.Ctx) error

DeleteMany implements [ServerInterface].

func (*Server) DeleteOne

func (s *Server) DeleteOne(c *zip.Ctx) error

DeleteOne implements [ServerInterface].

func (*Server) Find

func (s *Server) Find(c *zip.Ctx) error

Find implements [ServerInterface].

func (*Server) FindOne

func (s *Server) FindOne(c *zip.Ctx) error

FindOne implements [ServerInterface].

func (*Server) InsertMany

func (s *Server) InsertMany(c *zip.Ctx) error

InsertMany implements [ServerInterface].

func (*Server) InsertOne

func (s *Server) InsertOne(c *zip.Ctx) error

InsertOne implements [ServerInterface].

func (*Server) OpenAPISpec

func (s *Server) OpenAPISpec(c *zip.Ctx) error

OpenAPISpec serves the OpenAPI specification.

func (*Server) UpdateMany

func (s *Server) UpdateMany(c *zip.Ctx) error

UpdateMany implements [ServerInterface].

func (*Server) UpdateOne

func (s *Server) UpdateOne(c *zip.Ctx) error

UpdateOne implements [ServerInterface].

Jump to

Keyboard shortcuts

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