Documentation ¶
Overview ¶
Package server реализует HTTP-сервер.
Index ¶
- type Option
- func EnableGRPC(h *handler.IShorturlServer) Option
- func EnableHTTPS(cfg *config.HTTP) Option
- func Host(host string) Option
- func PortGRPC(port string) Option
- func ReadTimeout(timeout time.Duration) Option
- func ShutdownTimeout(timeout time.Duration) Option
- func WriteTimeout(timeout time.Duration) Option
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Server)
Option -.
func EnableGRPC ¶
func EnableGRPC(h *handler.IShorturlServer) Option
EnableGRPC - включить поддержку gRPC.
func EnableHTTPS ¶
EnableHTTPS - опция подключает возможность использования SSL/TLS на сервере.
Click to show internal directories.
Click to hide internal directories.