Documentation
¶
Overview ¶
Package server provides a Data API server handlers.
Index ¶
- type Server
- func (s *Server) Aggregate(c *zip.Ctx) error
- func (s *Server) Auth(c *zip.Ctx) error
- func (s *Server) ConnInfo(c *zip.Ctx) error
- func (s *Server) DeleteMany(c *zip.Ctx) error
- func (s *Server) DeleteOne(c *zip.Ctx) error
- func (s *Server) Find(c *zip.Ctx) error
- func (s *Server) FindOne(c *zip.Ctx) error
- func (s *Server) InsertMany(c *zip.Ctx) error
- func (s *Server) InsertOne(c *zip.Ctx) error
- func (s *Server) OpenAPISpec(c *zip.Ctx) error
- func (s *Server) UpdateMany(c *zip.Ctx) error
- func (s *Server) UpdateOne(c *zip.Ctx) error
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) Auth ¶ added in v1.24.4
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
ConnInfo creates a new *conninfo.ConnInfo, calls the next handler, and closes the connection info after the request is done.
func (*Server) DeleteMany ¶
DeleteMany implements [ServerInterface].
func (*Server) InsertMany ¶
InsertMany implements [ServerInterface].
func (*Server) OpenAPISpec ¶
OpenAPISpec serves the OpenAPI specification.
func (*Server) UpdateMany ¶
UpdateMany implements [ServerInterface].
Click to show internal directories.
Click to hide internal directories.