types

package
v0.0.0-...-0136f3d Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MaxProjectIDLen = 10
	MaxKeyLen       = 200
	MaxDataLen      = 20000
)
View Source
var DataHint = hint.MustNewHint("mitum-storage-data-v0.0.1")
View Source
var DesignHint = hint.MustNewHint("mitum-storage-design-v0.0.1")

Functions

This section is empty.

Types

type Data

type Data struct {
	hint.BaseHinter
	// contains filtered or unexported fields
}

func NewData

func NewData(
	key string,
	value string,
) Data

func (Data) Bytes

func (d Data) Bytes() []byte

func (Data) DataKey

func (d Data) DataKey() string

func (Data) DataValue

func (d Data) DataValue() string

func (*Data) DecodeBSON

func (d *Data) DecodeBSON(b []byte, enc *bsonenc.Encoder) error

func (*Data) DecodeJSON

func (d *Data) DecodeJSON(b []byte, enc encoder.Encoder) error

func (Data) Equal

func (d Data) Equal(ct Data) bool

func (Data) IsDeleted

func (d Data) IsDeleted() bool

func (Data) IsValid

func (d Data) IsValid([]byte) error

func (Data) MarshalBSON

func (d Data) MarshalBSON() ([]byte, error)

func (Data) MarshalJSON

func (d Data) MarshalJSON() ([]byte, error)

func (*Data) SetDeleted

func (d *Data) SetDeleted()

type DataBSONUnmarshaler

type DataBSONUnmarshaler struct {
	Hint      string `bson:"_hint"`
	DataKey   string `bson:"data_key"`
	DataValue string `bson:"data_value"`
	IsDeleted bool   `bson:"deleted"`
}

type DataJSONMarshaler

type DataJSONMarshaler struct {
	hint.BaseHinter
	DataKey   string `json:"dataKey"`
	DataValue string `json:"dataValue"`
	Deleted   bool   `json:"deleted"`
}

type DataJSONUnmarshaler

type DataJSONUnmarshaler struct {
	Hint      hint.Hint `json:"_hint"`
	DataKey   string    `json:"dataKey"`
	DataValue string    `json:"dataValue"`
	IsDeleted bool      `json:"deleted"`
}

type Design

type Design struct {
	hint.BaseHinter
	// contains filtered or unexported fields
}

func NewDesign

func NewDesign(project string) Design

func (Design) Bytes

func (de Design) Bytes() []byte

func (*Design) DecodeBSON

func (de *Design) DecodeBSON(b []byte, enc *bsonenc.Encoder) error

func (*Design) DecodeJSON

func (de *Design) DecodeJSON(b []byte, enc encoder.Encoder) error

func (Design) Equal

func (de Design) Equal(cd Design) bool

func (Design) GenerateHash

func (de Design) GenerateHash() util.Hash

func (Design) Hash

func (de Design) Hash() util.Hash

func (Design) IsValid

func (de Design) IsValid([]byte) error

func (Design) MarshalBSON

func (de Design) MarshalBSON() ([]byte, error)

func (Design) MarshalJSON

func (de Design) MarshalJSON() ([]byte, error)

func (Design) Project

func (de Design) Project() string

type DesignBSONUnmarshaler

type DesignBSONUnmarshaler struct {
	Hint    string `bson:"_hint"`
	Project string `bson:"project"`
}

type DesignJSONMarshaler

type DesignJSONMarshaler struct {
	hint.BaseHinter
	Project string `json:"project"`
}

type DesignJSONUnmarshaler

type DesignJSONUnmarshaler struct {
	Hint    hint.Hint `json:"_hint"`
	Project string    `json:"project"`
}

Jump to

Keyboard shortcuts

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