Documentation ¶
Index ¶
- type BlockwiseTransferConfig
- type CoapConfig
- type Config
- type InactivityMonitor
- type Service
- func (s *Service) Close()
- func (s *Service) DialDTLS(ctx context.Context, addr string, _ *dtls.Config, opts ...coap.DialOptionFunc) (*coap.ClientCloseHandler, error)
- func (s *Service) DialJustWorks(ctx context.Context, addr string, dtlsCfg *dtls.Config, ...) (*coap.ClientCloseHandler, error)
- func (s *Service) DialTCP(ctx context.Context, addr string, opts ...coap.DialOptionFunc) (*coap.ClientCloseHandler, error)
- func (s *Service) DialTLS(ctx context.Context, addr string, tlsCfg *tls.Config, ...) (*coap.ClientCloseHandler, error)
- func (s *Service) DialUDP(ctx context.Context, addr string, opts ...coap.DialOptionFunc) (*coap.ClientCloseHandler, error)
- func (s *Service) ErrFunc(err error)
- func (s *Service) GetDeviceConfiguration() core.DeviceConfiguration
- func (s *Service) GetJustWorksClient() *justworks.Client
- func (s *Service) GetOwnOptions() []core.OwnOption
- func (s *Service) Serve() error
- type TLSConfig
- type UDPClientConn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockwiseTransferConfig ¶
type BlockwiseTransferConfig struct { Enabled bool `yaml:"enabled" json:"enabled"` SZX string `yaml:"blockSize" json:"blockSize"` // contains filtered or unexported fields }
func (*BlockwiseTransferConfig) Validate ¶
func (c *BlockwiseTransferConfig) Validate() error
type CoapConfig ¶
type CoapConfig struct { MaxMessageSize uint32 `yaml:"maxMessageSize" json:"maxMessageSize"` InactivityMonitor InactivityMonitor `yaml:"inactivityMonitor" json:"inactivityMonitor"` BlockwiseTransfer BlockwiseTransferConfig `yaml:"blockwiseTransfer" json:"blockwiseTransfer"` TLS TLSConfig `yaml:"tls" json:"tls"` }
func (*CoapConfig) Validate ¶
func (c *CoapConfig) Validate() error
type Config ¶
type Config struct {
COAP CoapConfig `yaml:"coap" json:"coap"`
}
type InactivityMonitor ¶
func (*InactivityMonitor) Validate ¶
func (c *InactivityMonitor) Validate() error
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func New ¶
func New(ctx context.Context, serviceName string, config Config, logger log.Logger, tracerProvider trace.TracerProvider) (*Service, error)
New creates new GRPC service
func (*Service) DialDTLS ¶
func (s *Service) DialDTLS(ctx context.Context, addr string, _ *dtls.Config, opts ...coap.DialOptionFunc) (*coap.ClientCloseHandler, error)
func (*Service) DialJustWorks ¶
func (s *Service) DialJustWorks(ctx context.Context, addr string, dtlsCfg *dtls.Config, opts ...coap.DialOptionFunc) (*coap.ClientCloseHandler, error)
func (*Service) DialTCP ¶
func (s *Service) DialTCP(ctx context.Context, addr string, opts ...coap.DialOptionFunc) (*coap.ClientCloseHandler, error)
func (*Service) DialUDP ¶
func (s *Service) DialUDP(ctx context.Context, addr string, opts ...coap.DialOptionFunc) (*coap.ClientCloseHandler, error)
func (*Service) GetDeviceConfiguration ¶
func (s *Service) GetDeviceConfiguration() core.DeviceConfiguration
func (*Service) GetJustWorksClient ¶
func (*Service) GetOwnOptions ¶
type TLSConfig ¶
type TLSConfig struct { SubjectUUID string `yaml:"subjectUuid" json:"subjectUuid"` // contains filtered or unexported fields }
type UDPClientConn ¶
func (*UDPClientConn) Context ¶
func (c *UDPClientConn) Context() context.Context
Click to show internal directories.
Click to hide internal directories.