Documentation ¶
Index ¶
- Constants
- func Compress(buf []byte, compressType CompressType) []byte
- func CompressGzip(buf []byte) []byte
- func CompressSnappy(buf []byte) []byte
- func CopyBuffer(src io.Reader, dst io.Writer) (err error)
- func DuplicateName(name string) string
- func GetHostFromAddress(address string) string
- func GetPortFromAddress(address string) int32
- func OpenDBConn(driverName string, dbURI string) (*sql.DB, error)
- func ReadMessage(reader io.Reader) (res []byte, err error)
- func ReadObject(reader io.Reader, obj interface{}) error
- func Uncompress(buf []byte, compressType CompressType) ([]byte, error)
- func UncompressGzip(buf []byte) ([]byte, error)
- func UncompressSnappy(buf []byte) ([]byte, error)
- func WriteEOFMessage(writer io.Writer) (err error)
- func WriteMessage(writer io.Writer, msg []byte) (err error)
- func WriteObject(writer io.Writer, obj interface{}) error
- type CompressType
- type Heap
- type Item
- type Piper
Constants ¶
View Source
const (
BUFFER_SIZE = 1024 * 512
)
View Source
const (
MessageEOF = math.MinInt32
)
Variables ¶
This section is empty.
Functions ¶
func Compress ¶
func Compress(buf []byte, compressType CompressType) []byte
func DuplicateName ¶
func GetHostFromAddress ¶
func GetPortFromAddress ¶
func ReadObject ¶
func Uncompress ¶
func Uncompress(buf []byte, compressType CompressType) ([]byte, error)
func WriteEOFMessage ¶
func WriteObject ¶
Types ¶
type Heap ¶
func (*Heap) GetExecutorLoc ¶
type Piper ¶
type Piper struct { Reader *io.PipeReader Writer *io.PipeWriter }
Click to show internal directories.
Click to hide internal directories.