Documentation
¶
Overview ¶
Package server wires the cache, command engine and network listeners (TCP text/RESP, RESP and HTTP) together and manages their lifecycle.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheResponse ¶
type CacheResponse struct {
Success bool `json:"success"`
Value any `json:"value,omitempty"`
Error string `json:"error,omitempty"`
Count int64 `json:"count,omitempty"`
}
CacheResponse is the JSON envelope of every REST response.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a running BoltCache instance.
func (*Server) Run ¶
Run starts the server and blocks until SIGINT/SIGTERM, then shuts down gracefully.
Click to show internal directories.
Click to hide internal directories.