Documentation
¶
Overview ¶
Package server provides functionality for managing server operations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func New ¶
func New(db *db.DB, configs ...config.ConfigFunc) (server *Server)
New creates a new instance of Server with the provided database and optional configuration functions.
Params:
db *db.DB // The database instance. configs...config.ConfigFunc // Optional configuration functions.
Returns:
*Server // A new instance of Server with the provided database and optional configuration functions.
Directories
¶
| Path | Synopsis |
|---|---|
|
api
|
|
|
Package config provides methods for configuring backend
|
Package config provides methods for configuring backend |
|
Package exception provides some additional errors for specific exceptions
|
Package exception provides some additional errors for specific exceptions |
|
Package middleware provides some basic middlewares setup for server-side
|
Package middleware provides some basic middlewares setup for server-side |
|
Package mux implements HTTP request multiplexer based on standard type http.ServeMux with some additional fields
|
Package mux implements HTTP request multiplexer based on standard type http.ServeMux with some additional fields |
|
Package utils provides fast and useful utilities for working with specific cases
|
Package utils provides fast and useful utilities for working with specific cases |
Click to show internal directories.
Click to hide internal directories.