package thrift
import (
"io"
)
type Features uint
const (
UseDeltaEncoding Features = 1 << iota
CoalesceBoolFields
)
type Protocol interface {
NewReader (r io .Reader ) Reader
NewWriter (w io .Writer ) Writer
Features () Features
}
type Reader interface {
Protocol () Protocol
Reader () io .Reader
ReadBool () (bool , error )
ReadInt8 () (int8 , error )
ReadInt16 () (int16 , error )
ReadInt32 () (int32 , error )
ReadInt64 () (int64 , error )
ReadFloat64 () (float64 , error )
ReadBytes () ([]byte , error )
ReadString () (string , error )
ReadLength () (int , error )
ReadMessage () (Message , error )
ReadField () (Field , error )
ReadList () (List , error )
ReadSet () (Set , error )
ReadMap () (Map , error )
}
type Writer interface {
Protocol () Protocol
Writer () io .Writer
WriteBool (bool ) error
WriteInt8 (int8 ) error
WriteInt16 (int16 ) error
WriteInt32 (int32 ) error
WriteInt64 (int64 ) error
WriteFloat64 (float64 ) error
WriteBytes ([]byte ) error
WriteString (string ) error
WriteLength (int ) error
WriteMessage (Message ) error
WriteField (Field ) error
WriteList (List ) error
WriteSet (Set ) error
WriteMap (Map ) error
}
The pages are generated with Golds v0.8.7 . (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu .
PR and bug reports are welcome and can be submitted to the issue list .
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds .