Documentation ¶
Index ¶
- Constants
- Variables
- type AddDeviceService
- type AddDeviceServiceImpl
- type FlagService
- type FlagServiceImpl
- type SaltyRTCService
- type SaltyRTCServiceImpl
- func (s *SaltyRTCServiceImpl) OnClientConnect(initiatorsPublicKey values.Key, connection *websocket.Conn) (*models.Client, error)
- func (s *SaltyRTCServiceImpl) OnMessage(initiatorsPublicKey values.Key, client *models.Client, message []byte) error
- func (s *SaltyRTCServiceImpl) ReadMessageLoop(initiatorsPublicKey values.Key, client *models.Client)
Constants ¶
View Source
const ( Address = "address" Port = "port" TLSCertFile = "tls_cert_file" TLSKeyFile = "tls_key_file" FCMServerKey = "fcm_server_key" PublicKeyFile = "public_key_file" PrivateKeyFile = "private_key_file" )
View Source
const MinPingInterval = 0
Variables ¶
Functions ¶
This section is empty.
Types ¶
type AddDeviceService ¶
type AddDeviceService interface {
OnAddDeviceMessage(connection *websocket.Conn, message []byte) error
}
func NewAddDeviceServiceImpl ¶
func NewAddDeviceServiceImpl( keyPairStorage ports.KeyPairStorage, deviceTokenRepository ports.DeviceTokenRepository, ) AddDeviceService
type AddDeviceServiceImpl ¶
type AddDeviceServiceImpl struct {
// contains filtered or unexported fields
}
func (*AddDeviceServiceImpl) OnAddDeviceMessage ¶
func (a *AddDeviceServiceImpl) OnAddDeviceMessage(connection *websocket.Conn, message []byte) error
type FlagService ¶
func NewFlagServiceImpl ¶
func NewFlagServiceImpl() FlagService
type FlagServiceImpl ¶
type FlagServiceImpl struct {
// contains filtered or unexported fields
}
func (*FlagServiceImpl) Int ¶
func (i *FlagServiceImpl) Int(key string) int
func (*FlagServiceImpl) String ¶
func (i *FlagServiceImpl) String(key string) string
type SaltyRTCService ¶
type SaltyRTCServiceImpl ¶
type SaltyRTCServiceImpl struct {
// contains filtered or unexported fields
}
func NewSaltyRTCServiceImpl ¶
func NewSaltyRTCServiceImpl( keyPairStorage ports.KeyPairStorage, notificationService ports.NotificationService, deviceTokenRepository ports.DeviceTokenRepository, ) *SaltyRTCServiceImpl
func (*SaltyRTCServiceImpl) OnClientConnect ¶
func (*SaltyRTCServiceImpl) ReadMessageLoop ¶
func (s *SaltyRTCServiceImpl) ReadMessageLoop(initiatorsPublicKey values.Key, client *models.Client)
Click to show internal directories.
Click to hide internal directories.