Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoSuchEntity = errors.New("util/singleton: no such entity") ErrSingletonTooBig = errors.New("util/singleton: object too big to write") )
Functions ¶
func GzipReader ¶
These two wrapper functions seem sadly needed, to launder method signature types
func GzipWriter ¶
func GzipWriter(wtr io.Writer) io.WriteCloser
Types ¶
type NewReaderFunc ¶
These types might already exist in pkg/io ?
type NewWriteCloserFunc ¶
type NewWriteCloserFunc func(io.Writer) io.WriteCloser // gzip needs us to call it's .Close()
type SingletonProvider ¶
type SingletonProvider interface { // Functions can be nil; there are some gzip ones below. ReadSingleton(ctx context.Context, name string, f NewReaderFunc, ptr interface{}) error WriteSingleton(ctx context.Context, name string, f NewWriteCloserFunc, ptr interface{}) error }
Click to show internal directories.
Click to hide internal directories.