socket

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2018 License: Apache-2.0 Imports: 9 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hub

type Hub struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

type SocketHandler

type SocketHandler struct{}

func GetHandler

func GetHandler() *SocketHandler

call only once

func (*SocketHandler) Serve

func (sh *SocketHandler) Serve(w http.ResponseWriter, r *http.Request)

type SocketMessage

type SocketMessage struct {
	Action     string
	Topic      string
	Partitions []string
	From       time.Time
}

Jump to

Keyboard shortcuts

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