Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Buffer ¶
type Buffer struct { Grow float64 // contains filtered or unexported fields }
Buffer Offset writable memory buffer. Reference by: https://github.com/aws/aws-sdk-go/blob/v1.44.33/aws/types.go#L163-L172
func NewBufferFromValues ¶
NewBufferFromValues make offset writable memory buffer with defined buf.
type Logger ¶
type Logger interface { Info(service string, method string, args ...interface{}) Warn(service string, method string, args ...interface{}) Debug(service string, method string, args ...interface{}) Error(service string, method string, args ...interface{}) Printf(format string, args ...interface{}) Level(string) Logger Format(string) Logger }
Logger logging system interface
type Longpoll ¶
type Longpoll interface { EndpointURL() (*url.URL, error) SetOnClose(fn func(event CloseEvent)) SetOnError(fn func(err string)) }
Longpoll phoenix longpoll transport interface
type Message ¶
type Message struct { JoinRef string `json:"join_ref"` Ref string `json:"ref"` Event constants.ChannelEvent `json:"event"` Topic string `json:"topic"` Payload []byte `json:"payload"` }
Message ..
type Serializer ¶
type Serializer interface { Encode(message Message, callback func([]byte)) Decode(rawPayload []byte, callback func([]byte)) }
Serializer ..
type Socket ¶
type Socket interface { Protocol() string EndpointURL() string ReplaceTransport(newTransport constants.Transport) Disconnect(callback func(), code int, reason string) Teardown(callback func(), code int, reason string) MakeRef() string }
Socket phoenix websocket transport interface
type SocketOptions ¶
type SocketOptions struct { Timeout time.Duration Transport constants.Transport Encode Serializer Decode Serializer HeartbeatIntervalMS time.Duration RejoinAfterMS TimerCalc ReconnectAfterMS TimerCalc Logger Logger LongpollerTimeout time.Duration Params url.Values VSN string }
SocketOptions phoenix websocket connector options
func DefaultSocketOptions ¶
func DefaultSocketOptions() *SocketOptions
DefaultSocketOptions phoenix websocket default options
type StateChange ¶
StateChange ..
Source Files
¶
Click to show internal directories.
Click to hide internal directories.