socketutil

package
v0.0.0-...-7716863 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteCacheToConn

func WriteCacheToConn(conn *websocket.Conn, key *string) error

func WriteToConnSetCache

func WriteToConnSetCache(conn *websocket.Conn, key *string, channel *string, data *interface{}) error

Types

type Result

type Result struct {
	Channel string      `json:"channel"`
	Data    interface{} `json:"data"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL