socket

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BackGET

func BackGET(c *gin.Context, coInit func(bool) error)

BackGET handles get requests from executor

func FrontGET

func FrontGET(c *gin.Context)

FrontGET handles get requests from browser

func Validate

func Validate(c *gin.Context)

Validate validates if context is ready for socket

Types

type ChannelSignal

type ChannelSignal struct {
	BackLock  chan int
	FrontLock chan int
	Command   chan interface{}
	Output    chan interface{}
}

ChannelSignal contains signals required for socket exchange

type ChannelSignalMap

type ChannelSignalMap map[string]ChannelSignal

ChannelSignalMap is a map from channel name to signals

Jump to

Keyboard shortcuts

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