Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterServerTransportFunc ¶
func RegisterServerTransportFunc(network string, fn serverTransportFunc)
Types ¶
type ServerTransport ¶
type ServerTransport interface { ListenAndServe() error Close() }
func NewServerTransport ¶
func NewServerTransport(address, network, protocol string, opts ...ServerTransportOption) ServerTransport
type ServerTransportOption ¶
type ServerTransportOption func(*ServerTransportOptions)
func WithCoreSize ¶
func WithCoreSize(coreSize int) ServerTransportOption
type ServerTransportOptions ¶
type ServerTransportOptions struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.