api

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type E added in v0.0.7

type E struct {
	F1 string `json:"f1" bson:"f1" index:"f1"`
}

type TD added in v0.0.7

type TD struct {
	ID *mongoms.SimpleDocumentID `json:"id,omitempty" bson:"id,omitempty" readonly:"true"`
	U1 string                    `json:"u1" bson:"u1" unique:"u1"`
}

func (TD) Clone added in v0.0.7

func (d TD) Clone() any

func (TD) GetID added in v0.0.7

func (d TD) GetID() mongoms.IDocumentID

func (TD) SetID added in v0.0.7

func (d TD) SetID(id mongoms.IDocumentID)

func (TD) String added in v0.0.7

func (d TD) String() string

type TD2 added in v0.0.7

type TD2 struct {
	// All documents must have a IDocumentID
	ID *mongoms.SimpleDocumentID `json:"id,omitempty" bson:"id,omitempty" readonly:"true"`

	// U1 is a unique field such that there are no duplicates
	U1 string `json:"u1" bson:"u1" unique:"u1"`

	// E1 is an embedded ptr such the field name E1 *should* appear in the document record
	E1 *E `bson:"e1"`

	// E2 is an embedded ptr with an inline such that the field name E2 *should not* appear in the document record
	E2 *E `bson:",inline"`

	// E1 is an embedded struct such the field name E1 *should* appear in the document record
	E3 E `bson:"e3"`
}

func (TD2) Clone added in v0.0.7

func (d TD2) Clone() any

func (TD2) GetID added in v0.0.7

func (d TD2) GetID() mongoms.IDocumentID

func (TD2) SetID added in v0.0.7

func (d TD2) SetID(id mongoms.IDocumentID)

func (TD2) String added in v0.0.7

func (d TD2) String() string

Jump to

Keyboard shortcuts

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