processServer

package
v0.0.0-...-a417bd8 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProcessServer

type ProcessServer struct {
	// contains filtered or unexported fields
}

func NewProcessServer

func NewProcessServer(config ProcessServerConfig, dispathcerChannel chan<- submitwrap.SubmitTaskWrap) *ProcessServer

func (*ProcessServer) AcceptConn

func (processServer *ProcessServer) AcceptConn(conn net.Conn)

func (*ProcessServer) AddSubmit

func (processServer *ProcessServer) AddSubmit(submitTaskWrap submitwrap.SubmitTaskWrap)

func (*ProcessServer) Addr

func (processServer *ProcessServer) Addr() string

func (*ProcessServer) CheckoutSubmit

func (processServer *ProcessServer) CheckoutSubmit(submitID int) (submitwrap.SubmitTaskWrap, bool)

func (*ProcessServer) ExitServer

func (processServer *ProcessServer) ExitServer()

func (*ProcessServer) HandleAcceptErorr

func (processServer *ProcessServer) HandleAcceptErorr() error

func (*ProcessServer) InitServer

func (processServer *ProcessServer) InitServer(listener net.Listener) error

func (*ProcessServer) RemoveSubmit

func (processServer *ProcessServer) RemoveSubmit(submitTaskWrap submitwrap.SubmitTaskWrap)

type ProcessServerConfig

type ProcessServerConfig struct {
	ListenAddr  string `json:"listenAddr"`
	ChannelSize int    `json:"channelSize"`
}

Jump to

Keyboard shortcuts

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