unlinked

package
v2.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const FirestoreCollectionItems = "items"

FirestoreCollectionItems is the Firestore collection name for documents of type unlinked.Item.

Variables

View Source
var File_unlinked_unlinked_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Firestore

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

func WithFirestore

func WithFirestore(client *firestore.Client) *Firestore

func (*Firestore) Parents

type FirestoreItem

type FirestoreItem struct {
	Name string `firestore:"name,omitempty"`
}

FirestoreItem is the Firestore Custom Object for unlinked.Item.

func (*FirestoreItem) ToProto

func (m *FirestoreItem) ToProto() (*Item, error)

ToProto converts this FirestoreItem to its protobuf representation.

type FirestoreItemsCollectionRef

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

FirestoreItemsCollectionRef holds a reference to the Firestore collection `items`.

func (*FirestoreItemsCollectionRef) Create

func (*FirestoreItemsCollectionRef) Doc

func (*FirestoreItemsCollectionRef) Limit

func (*FirestoreItemsCollectionRef) OrderBy

func (*FirestoreItemsCollectionRef) Where

func (ref *FirestoreItemsCollectionRef) Where(path, op string, value interface{}) *FirestoreItemsQuery

type FirestoreItemsDocumentRef

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

FirestoreItemsDocumentRef holds a reference to a Firestore document in collection `items`.

func (*FirestoreItemsDocumentRef) Delete

func (*FirestoreItemsDocumentRef) Get

func (*FirestoreItemsDocumentRef) Ref

func (*FirestoreItemsDocumentRef) Set

func (ref *FirestoreItemsDocumentRef) Set(ctx context.Context, msg *Item, opts ...firestore.SetOption) error

type FirestoreItemsIterator

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

func (*FirestoreItemsIterator) GetAll

func (i *FirestoreItemsIterator) GetAll() ([]*Item, error)

func (*FirestoreItemsIterator) GetAllAsSnapshots

func (i *FirestoreItemsIterator) GetAllAsSnapshots() ([]*firestore.DocumentSnapshot, error)

func (*FirestoreItemsIterator) Next

func (i *FirestoreItemsIterator) Next() (*Item, error)

func (*FirestoreItemsIterator) NextAsSnapshot

func (i *FirestoreItemsIterator) NextAsSnapshot() (*firestore.DocumentSnapshot, error)

func (*FirestoreItemsIterator) Stop

func (i *FirestoreItemsIterator) Stop()

type FirestoreItemsQuery

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

func (*FirestoreItemsQuery) Documents

func (*FirestoreItemsQuery) First

func (q *FirestoreItemsQuery) First(ctx context.Context) (*Item, error)

func (*FirestoreItemsQuery) Limit

func (*FirestoreItemsQuery) OrderBy

func (*FirestoreItemsQuery) Value

func (q *FirestoreItemsQuery) Value() firestore.Query

func (*FirestoreItemsQuery) Where

func (q *FirestoreItemsQuery) Where(path, op string, value interface{}) *FirestoreItemsQuery

type FirestoreParentsCollectionRef

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

FirestoreParentsCollectionRef holds a reference to the Firestore collection `parents`.

func (*FirestoreParentsCollectionRef) Doc

func (*FirestoreParentsCollectionRef) Limit

func (*FirestoreParentsCollectionRef) OrderBy

func (*FirestoreParentsCollectionRef) Where

func (ref *FirestoreParentsCollectionRef) Where(path, op string, value interface{}) *FirestoreParentsQuery

type FirestoreParentsDocumentRef

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

FirestoreParentsDocumentRef holds a reference to a Firestore document in collection `parents`.

func (*FirestoreParentsDocumentRef) Subparents added in v2.0.2

type FirestoreParentsIterator

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

func (*FirestoreParentsIterator) Stop

func (i *FirestoreParentsIterator) Stop()

type FirestoreParentsQuery

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

func (*FirestoreParentsQuery) Documents

func (*FirestoreParentsQuery) Limit

func (*FirestoreParentsQuery) OrderBy

func (*FirestoreParentsQuery) Value

func (*FirestoreParentsQuery) Where

func (q *FirestoreParentsQuery) Where(path, op string, value interface{}) *FirestoreParentsQuery

type FirestoreSubparentsCollectionRef

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

FirestoreSubparentsCollectionRef holds a reference to the Firestore collection `subparents`.

func (*FirestoreSubparentsCollectionRef) Doc

func (*FirestoreSubparentsCollectionRef) Limit

func (*FirestoreSubparentsCollectionRef) OrderBy

func (*FirestoreSubparentsCollectionRef) Where

func (ref *FirestoreSubparentsCollectionRef) Where(path, op string, value interface{}) *FirestoreSubparentsQuery

type FirestoreSubparentsDocumentRef

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

FirestoreSubparentsDocumentRef holds a reference to a Firestore document in collection `subparents`.

func (*FirestoreSubparentsDocumentRef) Items added in v2.0.2

type FirestoreSubparentsIterator

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

func (*FirestoreSubparentsIterator) Stop

func (i *FirestoreSubparentsIterator) Stop()

type FirestoreSubparentsQuery

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

func (*FirestoreSubparentsQuery) Documents

func (*FirestoreSubparentsQuery) Limit

func (*FirestoreSubparentsQuery) OrderBy

func (*FirestoreSubparentsQuery) Value

func (*FirestoreSubparentsQuery) Where

func (q *FirestoreSubparentsQuery) Where(path, op string, value interface{}) *FirestoreSubparentsQuery

type Item

type Item struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*Item) Descriptor deprecated

func (*Item) Descriptor() ([]byte, []int)

Deprecated: Use Item.ProtoReflect.Descriptor instead.

func (*Item) GetName

func (x *Item) GetName() string

func (*Item) ProtoMessage

func (*Item) ProtoMessage()

func (*Item) ProtoReflect

func (x *Item) ProtoReflect() protoreflect.Message

func (*Item) Reset

func (x *Item) Reset()

func (*Item) String

func (x *Item) String() string

func (*Item) ToFirestore

func (x *Item) ToFirestore() (*FirestoreItem, error)

ToFirestore returns the Firestore Custom Object for Item.

Jump to

Keyboard shortcuts

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