Documentation
¶
Overview ¶
Package service defines a service for the Yamux stream multiplexer.
For more information about Yamux, see:
https://github.com/hashicorp/yamux
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // AcceptBacklog is the size of the accept backlog. AcceptBacklog int `toml:"accept_backlog" comment:"The size of the accept backlog."` // ConnectionWriteTimeout is the connection write timeout. ConnectionWriteTimeout string `toml:"connection_write_timeout" comment:"The connection write timeout."` // KeepAliveInterval is the keep alive interval. KeepAliveInterval string `toml:"keep_alive_interval" comment:"The keep alive interval."` // MaxStreamWindowSize is the maximum stream window size. MaxStreamWindowSize string `toml:"max_stream_window_size" comment:"The maximum stream window size."` }
Config contains configuration options for the Yamux service.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is the Yamux service.
func (*Service) Config ¶
func (s *Service) Config() interface{}
Config returns the current service configuration or creates one with good default values.
func (*Service) Expose ¶
func (s *Service) Expose() interface{}
Expose exposes the stream muxer to other services.
It exposes the type:
github.com/libp2p/go-stream-muxer.Transport
Click to show internal directories.
Click to hide internal directories.