digest

package
v0.0.0-...-ea76d8c Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Overview

Package digest provides api features.

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultColNameTimeStamp = "digest_ts"
)
View Source
var DefaultIndexes = cdigest.DefaultIndexes

Functions

func PrepareTimeStamps

func PrepareTimeStamps(bs *cdigest.BlockSession, st base.State) (string, []mongo.WriteModel, error)

func ProcessDigester

func ProcessDigester(ctx context.Context) (context.Context, error)

func TimestampDesign

func TimestampDesign(st *cdigest.Database, contract string) (types.Design, base.State, error)

func TimestampItem

func TimestampItem(db *cdigest.Database, contract, project string, idx uint64) (types.Item, base.State, error)

Types

type DesignDoc

type DesignDoc struct {
	mongodb.BaseDoc
	// contains filtered or unexported fields
}

func NewDesignDoc

func NewDesignDoc(st base.State, enc encoder.Encoder) (DesignDoc, error)

NewDesignDoc get the State of TimeStamp Design

func (DesignDoc) MarshalBSON

func (doc DesignDoc) MarshalBSON() ([]byte, error)

type ItemDoc

type ItemDoc struct {
	mongodb.BaseDoc
	// contains filtered or unexported fields
}

func NewItemDoc

func NewItemDoc(st base.State, enc encoder.Encoder) (ItemDoc, error)

func (ItemDoc) MarshalBSON

func (doc ItemDoc) MarshalBSON() ([]byte, error)

Jump to

Keyboard shortcuts

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