Back to godoc.org

Package socket

v0.4.6
Latest Go to latest

The latest major version is .

Published: Jun 2, 2020 | License: MIT | Module: github.com/bettercallshao/kut

Index

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

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

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier