Documentation ¶
Index ¶
- func BlockWiseTransferSZXFromString(s string) (blockwise.SZX, error)
- func New(ctx context.Context, config Config, router *mux.Router, ...) (*service.Service, error)
- func TLSConfigToDTLSConfig(tlsConfig *tls.Config) *dtls.Config
- func WithMessagePool(p *pool.Pool) func(*Options)
- func WithOnInactivityConnection(f func(conn mux.Conn)) func(*Options)
- func WithOnNewConnection(f func(conn mux.Conn)) func(*Options)
- func WithOverrideTLS(f func(cfg *tls.Config) *tls.Config) func(*Options)
- type BlockwiseTransferConfig
- type Config
- type InactivityMonitor
- type KeepAlive
- type Options
- type Protocol
- type TLSConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlockWiseTransferSZXFromString ¶ added in v2.7.6
func New ¶
func New(ctx context.Context, config Config, router *mux.Router, fileWatcher *fsnotify.Watcher, logger log.Logger, opt ...func(*Options)) (*service.Service, error)
New creates server.
func TLSConfigToDTLSConfig ¶
func WithMessagePool ¶
func WithOnNewConnection ¶
Types ¶
type BlockwiseTransferConfig ¶
type BlockwiseTransferConfig struct { Enabled bool `yaml:"enabled" json:"enabled"` SZX string `yaml:"blockSize" json:"blockSize"` }
func (*BlockwiseTransferConfig) Validate ¶
func (c *BlockwiseTransferConfig) Validate() error
type Config ¶
type Config struct { Addr string `yaml:"address" json:"address"` Protocols []Protocol `yaml:"protocols" json:"protocols"` MaxMessageSize uint32 `yaml:"maxMessageSize" json:"maxMessageSize"` MessagePoolSize uint32 `yaml:"messagePoolSize" json:"messagePoolSize"` MessageQueueSize int `yaml:"messageQueueSize" json:"messageQueueSize"` BlockwiseTransfer BlockwiseTransferConfig `yaml:"blockwiseTransfer" json:"blockwiseTransfer"` TLS TLSConfig `yaml:"tls" json:"tls"` InactivityMonitor *InactivityMonitor `yaml:"inactivityMonitor,omitempty" json:"inactivityMonitor,omitempty"` KeepAlive *KeepAlive `yaml:"keepAlive,omitempty" json:"keepAlive,omitempty"` }
Config represents configuration of coap service
func (*Config) GetTimeout ¶
type InactivityMonitor ¶
func (*InactivityMonitor) Validate ¶
func (c *InactivityMonitor) Validate() error
type TLSConfig ¶
type TLSConfig struct { Enabled *bool `yaml:"enabled,omitempty" json:"enabled,omitempty"` DisconnectOnExpiredCertificate bool `yaml:"disconnectOnExpiredCertificate" json:"disconnectOnExpiredCertificate"` Embedded certManagerServer.Config `yaml:",inline" json:",inline"` }
Click to show internal directories.
Click to hide internal directories.