Documentation ¶
Index ¶
- func GenerateListenAddress(addr string) func() ListenAddress
- func ListenAndServe1(ctx context.Context, lx *Lux, addr ListenAddress) error
- func ListenAndServe1AudoTLS(addr ...string) func(ctx context.Context, lx *Lux) error
- func ListenAndServe1TLS(ctx context.Context, lx *Lux, addr ListenAddress, certFile, keyFile string) error
- func ListenAndServe2(ctx context.Context, lx *Lux, addr ListenAddress) error
- func ListenAndServe2AudoTLS(addr ...string) func(ctx context.Context, lx *Lux) error
- func ListenAndServe2TLS(ctx context.Context, lx *Lux, addr ListenAddress, certFile, keyFile string) error
- func SetIdleTimeout(l *Lux, duration time.Duration)
- func SetJWTConfig(l *Lux, cfg *context.JWTConfig)
- func SetLogger(l *Lux, logger *zerolog.Logger)
- func SetMaxHeaderBytes(l *Lux, n int)
- func SetReadHeaderTimeout(l *Lux, duration time.Duration)
- func SetReadTimeout(l *Lux, duration time.Duration)
- func SetWriteTimeout(l *Lux, duration time.Duration)
- type ListenAddress
- type Lux
- func (l *Lux) AddRestController(route string, method controller.Method, controller controller.RestController)
- func (l *Lux) AddSocketController(route string, controller controller.SocketController)
- func (l *Lux) ListenAndServe1(ctx ctx.Context, addr string) error
- func (l *Lux) ListenAndServe1AutoTLS(ctx ctx.Context, addr []string) error
- func (l *Lux) ListenAndServe1TLS(ctx ctx.Context, addr string, certFile string, keyFile string) error
- func (l *Lux) ListenAndServe2(ctx ctx.Context, addr string) error
- func (l *Lux) ListenAndServe2AutoTLS(ctx ctx.Context, addr []string) error
- func (l *Lux) ListenAndServe2TLS(ctx ctx.Context, addr string, certFile string, keyFile string) error
- func (l *Lux) ServeHTTP(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateListenAddress ¶
func GenerateListenAddress(addr string) func() ListenAddress
func ListenAndServe1 ¶
func ListenAndServe1(ctx context.Context, lx *Lux, addr ListenAddress) error
func ListenAndServe1AudoTLS ¶
func ListenAndServe1TLS ¶
func ListenAndServe2 ¶
func ListenAndServe2(ctx context.Context, lx *Lux, addr ListenAddress) error
func ListenAndServe2AudoTLS ¶
func ListenAndServe2TLS ¶
func SetIdleTimeout ¶ added in v3.1.0
func SetJWTConfig ¶ added in v3.1.0
func SetMaxHeaderBytes ¶ added in v3.1.0
func SetReadHeaderTimeout ¶ added in v3.1.0
func SetReadTimeout ¶ added in v3.1.0
func SetWriteTimeout ¶ added in v3.1.0
Types ¶
type ListenAddress ¶
type ListenAddress string
type Lux ¶
type Lux struct {
// contains filtered or unexported fields
}
func (*Lux) AddRestController ¶
func (l *Lux) AddRestController(route string, method controller.Method, controller controller.RestController)
func (*Lux) AddSocketController ¶
func (l *Lux) AddSocketController(route string, controller controller.SocketController)
func (*Lux) ListenAndServe1AutoTLS ¶
func (*Lux) ListenAndServe1TLS ¶
func (*Lux) ListenAndServe2AutoTLS ¶
func (*Lux) ListenAndServe2TLS ¶
Click to show internal directories.
Click to hide internal directories.