globber

package
v0.0.0-...-7e90556 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Complete

type Complete func([]byte)

Complete is the type of a function that Globber will call for every completed glob

type Globber

type Globber struct {
	sync.WaitGroup
	// contains filtered or unexported fields
}

A Globber is an object that will combine a bunch of json marshallable objects into compressed json array

func New

func New(config scoop_protocol.GlobberConfig, completor Complete) (*Globber, error)

New returns a newly created instance of a Globber

func (*Globber) Close

func (g *Globber) Close()

Close stops the globbing process. Will return after all entries are flushed

func (*Globber) Submit

func (g *Globber) Submit(e []byte)

Submit submits an object for globbing

Jump to

Keyboard shortcuts

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