common

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2016 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

View Source
const (
	MSG_SUCCESS = iota
	MSG_FAILURE
)

Variables

This section is empty.

Functions

func SendResponse

func SendResponse(value int, message string, conn net.Conn) error

Types

type Config

type Config struct {
	Port int
	Type string
}

func DefaultConfig

func DefaultConfig() *Config

type Result

type Result struct {
	Value   int
	Message string
}

func RecvResponse

func RecvResponse(conn net.Conn) (*Result, error)

Jump to

Keyboard shortcuts

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