data

package
v0.0.0-...-a618dbc Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatedAtComparator

func CreatedAtComparator(a, b interface{}) int

func Reorder

func Reorder(rw io.ReadWriteSeeker) error

func UpdatedAtComparator

func UpdatedAtComparator(a, b interface{}) int

Types

type Item

type Item struct {
	CreatedAt time.Time
	UpdatedAt time.Time
	Raw       []byte
}

func (*Item) Clone

func (item *Item) Clone() *Item

func (Item) MarshalJSON

func (item Item) MarshalJSON() ([]byte, error)

func (*Item) UnmarshalJSON

func (item *Item) UnmarshalJSON(data []byte) error

type Iterator

type Iterator struct {
	treeset.Iterator
}

func (*Iterator) Value

func (iterator *Iterator) Value() *Item

type Reader

type Reader struct {
	// contains filtered or unexported fields
}

func NewReader

func NewReader(r io.Reader) *Reader

func (*Reader) Err

func (r *Reader) Err() error

func (*Reader) Item

func (r *Reader) Item() *Item

func (*Reader) Scan

func (r *Reader) Scan() bool

type Set

type Set struct {
	// contains filtered or unexported fields
}

func (*Set) Add

func (set *Set) Add(items ...*Item)

func (*Set) Init

func (set *Set) Init() *Set

func (*Set) Iterator

func (set *Set) Iterator() Iterator

func (*Set) Len

func (set *Set) Len() int

type Truncater

type Truncater interface {
	Truncate(size int64) error
}

type Writer

type Writer struct {
	// contains filtered or unexported fields
}

func NewWriter

func NewWriter(w io.Writer) *Writer

func (*Writer) Write

func (w *Writer) Write(item *Item) error

Jump to

Keyboard shortcuts

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