Documentation
¶
Index ¶
- type MessageCb
- type WsClientHandler
- func (w *WsClientHandler) CanSeeScope(scope string) bool
- func (w *WsClientHandler) GetLastSeen() *time.Time
- func (w *WsClientHandler) GetName() string
- func (w *WsClientHandler) GetSerial() string
- func (w *WsClientHandler) GetUids() map[string]string
- func (w *WsClientHandler) GetUser() *model.User
- func (w *WsClientHandler) GetVersion() int32
- func (w *WsClientHandler) HasUID(uid string) bool
- func (w *WsClientHandler) IsActive() bool
- func (w *WsClientHandler) Listen()
- func (w *WsClientHandler) SendCot(msg *cotproto.TakMessage) error
- func (w *WsClientHandler) SendMsg(msg *cot.CotMessage) error
- func (w *WsClientHandler) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessageCb ¶ added in v0.16.4
type MessageCb func(msg *cot.CotMessage)
type WsClientHandler ¶
type WsClientHandler struct {
// contains filtered or unexported fields
}
func (*WsClientHandler) CanSeeScope ¶ added in v0.16.3
func (w *WsClientHandler) CanSeeScope(scope string) bool
func (*WsClientHandler) GetLastSeen ¶
func (w *WsClientHandler) GetLastSeen() *time.Time
func (*WsClientHandler) GetName ¶
func (w *WsClientHandler) GetName() string
func (*WsClientHandler) GetSerial ¶ added in v0.18.0
func (w *WsClientHandler) GetSerial() string
func (*WsClientHandler) GetUids ¶
func (w *WsClientHandler) GetUids() map[string]string
func (*WsClientHandler) GetUser ¶
func (w *WsClientHandler) GetUser() *model.User
func (*WsClientHandler) GetVersion ¶
func (w *WsClientHandler) GetVersion() int32
func (*WsClientHandler) HasUID ¶
func (w *WsClientHandler) HasUID(uid string) bool
func (*WsClientHandler) IsActive ¶
func (w *WsClientHandler) IsActive() bool
func (*WsClientHandler) Listen ¶
func (w *WsClientHandler) Listen()
func (*WsClientHandler) SendCot ¶
func (w *WsClientHandler) SendCot(msg *cotproto.TakMessage) error
func (*WsClientHandler) SendMsg ¶
func (w *WsClientHandler) SendMsg(msg *cot.CotMessage) error
func (*WsClientHandler) Stop ¶ added in v0.18.0
func (w *WsClientHandler) Stop()
Click to show internal directories.
Click to hide internal directories.