Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CachedEncodedMessage ¶ added in v1.2.3
type CachedEncodedMessage struct {
// contains filtered or unexported fields
}
func NewCachedEncodedMessage ¶ added in v1.2.3
func NewCachedEncodedMessage(msg EncodedMessage) *CachedEncodedMessage
func (*CachedEncodedMessage) Fetch ¶ added in v1.2.3
func (msg *CachedEncodedMessage) Fetch(id string, callback EncodingFunction) (*ws.SentFrame, error)
func (*CachedEncodedMessage) GetType ¶ added in v1.2.3
func (msg *CachedEncodedMessage) GetType() string
func (*CachedEncodedMessage) MarshalJSON ¶ added in v1.2.3
func (msg *CachedEncodedMessage) MarshalJSON() ([]byte, error)
type EncodedMessage ¶
type EncodedMessage interface {
GetType() string
}
type EncodingCache ¶ added in v1.2.3
type EncodingCache struct {
// contains filtered or unexported fields
}
func NewEncodingCache ¶ added in v1.2.3
func NewEncodingCache() *EncodingCache
func (*EncodingCache) Fetch ¶ added in v1.2.3
func (m *EncodingCache) Fetch( msg EncodedMessage, encoder string, callback EncodingFunction, ) (*ws.SentFrame, error)
type EncodingFunction ¶ added in v1.2.3
type EncodingFunction = func(EncodedMessage) (*ws.SentFrame, error)
Click to show internal directories.
Click to hide internal directories.