Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrClosed = errors.New("server closed")
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
Addr string
Token string
MaxBodyBytes int64
WSEnabled bool
AllowedIPs []string
IPCheck bool
CORSEnabled bool
CORSOrigins []string
RateLimitEnabled bool
RateLimitRPS int
RateLimitBurst int
WSMaxMessageBytes int64
WSIdleTimeout time.Duration
WSMaxSubscriptions int
Store docstore.Store
Logger *zap.Logger
}
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) ListenAndServe ¶
Click to show internal directories.
Click to hide internal directories.