Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache encapsulates the entire cache application state.
type HttpServer ¶ added in v1.6.0
HttpServer implements Http, wraps all dependencies required for running the HTTP server.
func New ¶ added in v1.6.0
func New( ctx context.Context, cfg config.Config, db storage.Storage, backend upstream.Upstream, governor orchestrator.Governor, probe liveness.Prober, ) *HttpServer
New creates a new HttpServer, initializing metrics and the HTTP server itself. If any step fails, returns an error and performs cleanup.
func (*HttpServer) Close ¶ added in v1.6.0
func (s *HttpServer) Close() error
func (*HttpServer) IsAlive ¶ added in v1.6.0
func (s *HttpServer) IsAlive() bool
IsAlive returns true if the server is marked as alive.
func (*HttpServer) ListenAndServe ¶ added in v1.6.0
func (s *HttpServer) ListenAndServe()
ListenAndServe starts the HTTP server.
Click to show internal directories.
Click to hide internal directories.