Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QuicClient ¶
type QuicClient struct {
// contains filtered or unexported fields
}
QuicClient a quic client
func NewQuicClient ¶
func NewQuicClient(conf *QuicConfig) *QuicClient
NewQuicClient initializes a new quic client instance
func (*QuicClient) Notify ¶
func (qcc *QuicClient) Notify(authInfo map[string]string)
Notify logs info
func (*QuicClient) Receive ¶
func (qcc *QuicClient) Receive() (model.Message, error)
Receive reads the binary message through the connection
func (*QuicClient) Send ¶
func (qcc *QuicClient) Send(message model.Message) error
Send sends the message as JSON object through the connection
func (*QuicClient) UnInit ¶ added in v1.6.1
func (qcc *QuicClient) UnInit()
UnInit closes the quic connection
Click to show internal directories.
Click to hide internal directories.