Documentation ¶
Index ¶
- type Client
- type Server
- type ServerOption
- func BacklogServerOption(backlog int) ServerOption
- func EnableTLSServerOption(enable bool) ServerOption
- func LoggerServerOption(logger logger.Logger) ServerOption
- func PathServerOption(authorizePath, pushPath, pullPath string) ServerOption
- func TLSConfigServerOption(tlsConfig *tls.Config) ServerOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
TODO: remove stale clients from conns
func NewHTTP3Server ¶
func NewHTTP3Server(addr string, quicConfig *quic.Config, opts ...ServerOption) *Server
func NewServer ¶
func NewServer(addr string, opts ...ServerOption) *Server
func (*Server) ListenAndServe ¶
type ServerOption ¶
type ServerOption func(opts *serverOptions)
func BacklogServerOption ¶
func BacklogServerOption(backlog int) ServerOption
func EnableTLSServerOption ¶
func EnableTLSServerOption(enable bool) ServerOption
func LoggerServerOption ¶
func LoggerServerOption(logger logger.Logger) ServerOption
func PathServerOption ¶
func PathServerOption(authorizePath, pushPath, pullPath string) ServerOption
func TLSConfigServerOption ¶
func TLSConfigServerOption(tlsConfig *tls.Config) ServerOption
Click to show internal directories.
Click to hide internal directories.