github.com/cayleygraph/cayley@v0.7.7/quad/pquads/pquads.go (about) 1 // Package pquads is deprecated. Use github.com/cayleygraph/quad/pquads. 2 package pquads 3 4 import ( 5 "io" 6 7 "github.com/cayleygraph/quad/pquads" 8 ) 9 10 var DefaultMaxSize = pquads.DefaultMaxSize 11 12 const ContentType = pquads.ContentType 13 14 type Writer = pquads.Writer 15 16 type Options = pquads.Options 17 18 // NewWriter creates protobuf quads encoder. 19 // 20 // Deprecated: use github.com/cayleygraph/quad/pquads package instead. 21 func NewWriter(w io.Writer, opts *Options) *Writer { 22 return pquads.NewWriter(w, opts) 23 } 24 25 type Reader = pquads.Reader 26 27 // NewReader creates protobuf quads decoder. 28 // 29 // MaxSize argument limits maximal size of the buffer used to read quads. 30 // 31 // Deprecated: use github.com/cayleygraph/quad/pquads package instead. 32 func NewReader(r io.Reader, maxSize int) *Reader { 33 return pquads.NewReader(r, maxSize) 34 }