Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreateServerFunc ¶
CreateServerFunc is a function to create a server.
type Info ¶
type Info struct { Name string // The service name DefaultTCPPort int // The default TCP port DefaultWSPort int // The default websocket port Create CreateServerFunc // The creation func Addr *address.Address // The default server address Env string // The env name used to set the server address }
Info is the info describing a service.
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option sets options on a server.
func MaxNumConnections ¶
MaxNumConnections sets the maximum number of incoming connections per socket.
func SSLCertAndKey ¶
SSLCertAndKey adds the given SSL public certificate and private key pair for incoming connections.
func SSLDisabled ¶ added in v0.0.22
func SSLDisabled() Option
SSLDisabled marks SSL as disabled for outgoing connections.
type Options ¶
type Options struct { Address *address.Address // The address SSLDisabled bool // Is SSL disabled for outgoing connections? SSLCert []byte // The SSL certificate for outgoing connections SSLKeyCert []byte // The server's SSL (public) certificate for incoming connections SSLKey []byte // The server's SSL (private) key for incoming connections }
Options are the options passed to a server on creation.
Click to show internal directories.
Click to hide internal directories.