Documentation
¶
Overview ¶
Package objtest provides support for creating a data object storage directory for testing purposes.
Index ¶
Constants ¶
View Source
const Tenant = "objtest"
Tenant is the tenant used for storing logs with a Builder.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder is a directory holding logs data objects and index data objects. Logs can be appended to the builder using Builder.Append. After all logs have been appended, the builder must be closed using the Builder.Close.
func NewBuilder ¶
NewBuilder creates a builder that can be used for accumulating logs.
func (*Builder) Close ¶
func (b *Builder) Close()
Close flushes all remaining data and closes the builder.
func (*Builder) Location ¶
Location returns the location of index for b so they can be read. Data is not guaranteed to exist in the location until calling Builder.Close.
Click to show internal directories.
Click to hide internal directories.