Documentation
¶
Index ¶
- Constants
- func NewWriter() (wof_writer.Writer, error)
- func Write(ctx context.Context, uri string, body []byte) error
- func WriteReader(ctx context.Context, uri string, r io.Reader) error
- type Writer
- func (wr *Writer) Close(ctx context.Context) error
- func (wr *Writer) Flush(ctx context.Context) error
- func (wr *Writer) SetLogger(ctx context.Context, logger *log.Logger) error
- func (wr *Writer) Write(ctx context.Context, path string, r io.ReadSeeker) (int64, error)
- func (wr *Writer) WriterURI(ctx context.Context, path string) string
Constants ¶
const STDOUT string = "-"
Variables ¶
This section is empty.
Functions ¶
func NewWriter ¶ added in v0.6.0
func NewWriter() (wof_writer.Writer, error)
NewWriter returns a `Writer` instance implementing the `whosonfirst/go-writer/v3.Writer` interface.
Types ¶
type Writer ¶ added in v0.6.0
type Writer struct {
wof_writer.Writer
}
Writer implements the `whosonfirst/go-writer/v3.Writer` interface.
func (*Writer) Close ¶ added in v0.6.0
Close is a no-op to conform to the `Writer` instance and returns nil.
func (*Writer) Flush ¶ added in v0.6.0
Flush is a no-op to conform to the `Writer` instance and returns nil.
func (*Writer) SetLogger ¶ added in v0.6.0
SetLogger is a no-op to conform to the `Writer` instance and returns nil.