Documentation ¶
Index ¶
- Constants
- Variables
- type Account
- type Action
- func (*Action) Descriptor() ([]byte, []int)deprecated
- func (x *Action) GetCreateTime() *timestamppb.Timestamp
- func (x *Action) GetId() string
- func (x *Action) GetProto() []byte
- func (*Action) ProtoMessage()
- func (x *Action) ProtoReflect() protoreflect.Message
- func (x *Action) Reset()
- func (x *Action) String() string
- func (x *Action) ToFirestore() (*FirestoreAction, error)
- type Firestore
- type FirestoreAccount
- type FirestoreAccountsCollectionRef
- func (ref *FirestoreAccountsCollectionRef) Doc(id string) *FirestoreAccountsDocumentRef
- func (ref *FirestoreAccountsCollectionRef) Limit(n int) *FirestoreAccountsQuery
- func (ref *FirestoreAccountsCollectionRef) OrderBy(path string, dir firestore.Direction) *FirestoreAccountsQuery
- func (ref *FirestoreAccountsCollectionRef) Where(path, op string, value interface{}) *FirestoreAccountsQuery
- type FirestoreAccountsDocumentRef
- func (ref *FirestoreAccountsDocumentRef) Delete(ctx context.Context, preconds ...firestore.Precondition) (*firestore.WriteResult, error)
- func (ref *FirestoreAccountsDocumentRef) Get(ctx context.Context) (*Account, error)
- func (ref *FirestoreAccountsDocumentRef) Ref() *firestore.DocumentRef
- func (ref *FirestoreAccountsDocumentRef) Set(ctx context.Context, msg *Account, opts ...firestore.SetOption) error
- func (ref *FirestoreAccountsDocumentRef) Users() *FirestoreUsersCollectionRef
- type FirestoreAccountsIterator
- func (i *FirestoreAccountsIterator) GetAll() ([]*Account, error)
- func (i *FirestoreAccountsIterator) GetAllAsSnapshots() ([]*firestore.DocumentSnapshot, error)
- func (i *FirestoreAccountsIterator) Next() (*Account, error)
- func (i *FirestoreAccountsIterator) NextAsSnapshot() (*firestore.DocumentSnapshot, error)
- func (i *FirestoreAccountsIterator) Stop()
- type FirestoreAccountsQuery
- func (q *FirestoreAccountsQuery) Documents(ctx context.Context) *FirestoreAccountsIterator
- func (q *FirestoreAccountsQuery) First(ctx context.Context) (*Account, error)
- func (q *FirestoreAccountsQuery) Limit(n int) *FirestoreAccountsQuery
- func (q *FirestoreAccountsQuery) OrderBy(path string, dir firestore.Direction) *FirestoreAccountsQuery
- func (q *FirestoreAccountsQuery) Value() firestore.Query
- func (q *FirestoreAccountsQuery) Where(path, op string, value interface{}) *FirestoreAccountsQuery
- type FirestoreAction
- type FirestoreActionsCollectionRef
- func (ref *FirestoreActionsCollectionRef) Create(ctx context.Context, p *Action) (*firestore.WriteResult, error)
- func (ref *FirestoreActionsCollectionRef) Doc(id string) *FirestoreActionsDocumentRef
- func (ref *FirestoreActionsCollectionRef) Limit(n int) *FirestoreActionsQuery
- func (ref *FirestoreActionsCollectionRef) OrderBy(path string, dir firestore.Direction) *FirestoreActionsQuery
- func (ref *FirestoreActionsCollectionRef) Where(path, op string, value interface{}) *FirestoreActionsQuery
- type FirestoreActionsDocumentRef
- func (ref *FirestoreActionsDocumentRef) Delete(ctx context.Context, preconds ...firestore.Precondition) (*firestore.WriteResult, error)
- func (ref *FirestoreActionsDocumentRef) Get(ctx context.Context) (*Action, error)
- func (ref *FirestoreActionsDocumentRef) Ref() *firestore.DocumentRef
- func (ref *FirestoreActionsDocumentRef) Set(ctx context.Context, msg *Action, opts ...firestore.SetOption) error
- type FirestoreActionsIterator
- func (i *FirestoreActionsIterator) GetAll() ([]*Action, error)
- func (i *FirestoreActionsIterator) GetAllAsSnapshots() ([]*firestore.DocumentSnapshot, error)
- func (i *FirestoreActionsIterator) Next() (*Action, error)
- func (i *FirestoreActionsIterator) NextAsSnapshot() (*firestore.DocumentSnapshot, error)
- func (i *FirestoreActionsIterator) Stop()
- type FirestoreActionsQuery
- func (q *FirestoreActionsQuery) Documents(ctx context.Context) *FirestoreActionsIterator
- func (q *FirestoreActionsQuery) First(ctx context.Context) (*Action, error)
- func (q *FirestoreActionsQuery) Limit(n int) *FirestoreActionsQuery
- func (q *FirestoreActionsQuery) OrderBy(path string, dir firestore.Direction) *FirestoreActionsQuery
- func (q *FirestoreActionsQuery) Value() firestore.Query
- func (q *FirestoreActionsQuery) Where(path, op string, value interface{}) *FirestoreActionsQuery
- type FirestoreInstallationsCollectionRef
- func (ref *FirestoreInstallationsCollectionRef) Doc(id string) *FirestoreInstallationsDocumentRef
- func (ref *FirestoreInstallationsCollectionRef) Limit(n int) *FirestoreInstallationsQuery
- func (ref *FirestoreInstallationsCollectionRef) OrderBy(path string, dir firestore.Direction) *FirestoreInstallationsQuery
- func (ref *FirestoreInstallationsCollectionRef) Where(path, op string, value interface{}) *FirestoreInstallationsQuery
- type FirestoreInstallationsDocumentRef
- type FirestoreInstallationsIterator
- type FirestoreInstallationsQuery
- func (q *FirestoreInstallationsQuery) Documents(ctx context.Context) *FirestoreInstallationsIterator
- func (q *FirestoreInstallationsQuery) Limit(n int) *FirestoreInstallationsQuery
- func (q *FirestoreInstallationsQuery) OrderBy(path string, dir firestore.Direction) *FirestoreInstallationsQuery
- func (q *FirestoreInstallationsQuery) Value() firestore.Query
- func (q *FirestoreInstallationsQuery) Where(path, op string, value interface{}) *FirestoreInstallationsQuery
- type FirestoreManifest
- type FirestoreManifestsCollectionRef
- func (ref *FirestoreManifestsCollectionRef) Create(ctx context.Context, p *Manifest) (*firestore.WriteResult, error)
- func (ref *FirestoreManifestsCollectionRef) Doc(id string) *FirestoreManifestsDocumentRef
- func (ref *FirestoreManifestsCollectionRef) Limit(n int) *FirestoreManifestsQuery
- func (ref *FirestoreManifestsCollectionRef) OrderBy(path string, dir firestore.Direction) *FirestoreManifestsQuery
- func (ref *FirestoreManifestsCollectionRef) Where(path, op string, value interface{}) *FirestoreManifestsQuery
- type FirestoreManifestsDocumentRef
- func (ref *FirestoreManifestsDocumentRef) Actions() *FirestoreActionsCollectionRef
- func (ref *FirestoreManifestsDocumentRef) Delete(ctx context.Context, preconds ...firestore.Precondition) (*firestore.WriteResult, error)
- func (ref *FirestoreManifestsDocumentRef) Get(ctx context.Context) (*Manifest, error)
- func (ref *FirestoreManifestsDocumentRef) Ref() *firestore.DocumentRef
- func (ref *FirestoreManifestsDocumentRef) Set(ctx context.Context, msg *Manifest, opts ...firestore.SetOption) error
- type FirestoreManifestsIterator
- func (i *FirestoreManifestsIterator) GetAll() ([]*Manifest, error)
- func (i *FirestoreManifestsIterator) GetAllAsSnapshots() ([]*firestore.DocumentSnapshot, error)
- func (i *FirestoreManifestsIterator) Next() (*Manifest, error)
- func (i *FirestoreManifestsIterator) NextAsSnapshot() (*firestore.DocumentSnapshot, error)
- func (i *FirestoreManifestsIterator) Stop()
- type FirestoreManifestsQuery
- func (q *FirestoreManifestsQuery) Documents(ctx context.Context) *FirestoreManifestsIterator
- func (q *FirestoreManifestsQuery) First(ctx context.Context) (*Manifest, error)
- func (q *FirestoreManifestsQuery) Limit(n int) *FirestoreManifestsQuery
- func (q *FirestoreManifestsQuery) OrderBy(path string, dir firestore.Direction) *FirestoreManifestsQuery
- func (q *FirestoreManifestsQuery) Value() firestore.Query
- func (q *FirestoreManifestsQuery) Where(path, op string, value interface{}) *FirestoreManifestsQuery
- type FirestoreRepositoriesCollectionRef
- func (ref *FirestoreRepositoriesCollectionRef) Doc(id string) *FirestoreRepositoriesDocumentRef
- func (ref *FirestoreRepositoriesCollectionRef) Limit(n int) *FirestoreRepositoriesQuery
- func (ref *FirestoreRepositoriesCollectionRef) OrderBy(path string, dir firestore.Direction) *FirestoreRepositoriesQuery
- func (ref *FirestoreRepositoriesCollectionRef) Where(path, op string, value interface{}) *FirestoreRepositoriesQuery
- type FirestoreRepositoriesDocumentRef
- type FirestoreRepositoriesIterator
- type FirestoreRepositoriesQuery
- func (q *FirestoreRepositoriesQuery) Documents(ctx context.Context) *FirestoreRepositoriesIterator
- func (q *FirestoreRepositoriesQuery) Limit(n int) *FirestoreRepositoriesQuery
- func (q *FirestoreRepositoriesQuery) OrderBy(path string, dir firestore.Direction) *FirestoreRepositoriesQuery
- func (q *FirestoreRepositoriesQuery) Value() firestore.Query
- func (q *FirestoreRepositoriesQuery) Where(path, op string, value interface{}) *FirestoreRepositoriesQuery
- type FirestoreSession
- type FirestoreSessionsCollectionRef
- func (ref *FirestoreSessionsCollectionRef) Doc(id string) *FirestoreSessionsDocumentRef
- func (ref *FirestoreSessionsCollectionRef) Limit(n int) *FirestoreSessionsQuery
- func (ref *FirestoreSessionsCollectionRef) OrderBy(path string, dir firestore.Direction) *FirestoreSessionsQuery
- func (ref *FirestoreSessionsCollectionRef) Where(path, op string, value interface{}) *FirestoreSessionsQuery
- type FirestoreSessionsDocumentRef
- func (ref *FirestoreSessionsDocumentRef) Delete(ctx context.Context, preconds ...firestore.Precondition) (*firestore.WriteResult, error)
- func (ref *FirestoreSessionsDocumentRef) Get(ctx context.Context) (*Session, error)
- func (ref *FirestoreSessionsDocumentRef) Ref() *firestore.DocumentRef
- func (ref *FirestoreSessionsDocumentRef) Set(ctx context.Context, msg *Session, opts ...firestore.SetOption) error
- type FirestoreSessionsIterator
- func (i *FirestoreSessionsIterator) GetAll() ([]*Session, error)
- func (i *FirestoreSessionsIterator) GetAllAsSnapshots() ([]*firestore.DocumentSnapshot, error)
- func (i *FirestoreSessionsIterator) Next() (*Session, error)
- func (i *FirestoreSessionsIterator) NextAsSnapshot() (*firestore.DocumentSnapshot, error)
- func (i *FirestoreSessionsIterator) Stop()
- type FirestoreSessionsQuery
- func (q *FirestoreSessionsQuery) Documents(ctx context.Context) *FirestoreSessionsIterator
- func (q *FirestoreSessionsQuery) First(ctx context.Context) (*Session, error)
- func (q *FirestoreSessionsQuery) Limit(n int) *FirestoreSessionsQuery
- func (q *FirestoreSessionsQuery) OrderBy(path string, dir firestore.Direction) *FirestoreSessionsQuery
- func (q *FirestoreSessionsQuery) Value() firestore.Query
- func (q *FirestoreSessionsQuery) Where(path, op string, value interface{}) *FirestoreSessionsQuery
- type FirestoreUser
- type FirestoreUsersCollectionRef
- func (ref *FirestoreUsersCollectionRef) Create(ctx context.Context, p *User) (*firestore.WriteResult, error)
- func (ref *FirestoreUsersCollectionRef) Doc(id string) *FirestoreUsersDocumentRef
- func (ref *FirestoreUsersCollectionRef) Limit(n int) *FirestoreUsersQuery
- func (ref *FirestoreUsersCollectionRef) OrderBy(path string, dir firestore.Direction) *FirestoreUsersQuery
- func (ref *FirestoreUsersCollectionRef) Where(path, op string, value interface{}) *FirestoreUsersQuery
- type FirestoreUsersDocumentRef
- func (ref *FirestoreUsersDocumentRef) Delete(ctx context.Context, preconds ...firestore.Precondition) (*firestore.WriteResult, error)
- func (ref *FirestoreUsersDocumentRef) Get(ctx context.Context) (*User, error)
- func (ref *FirestoreUsersDocumentRef) Ref() *firestore.DocumentRef
- func (ref *FirestoreUsersDocumentRef) Sessions() *FirestoreSessionsCollectionRef
- func (ref *FirestoreUsersDocumentRef) Set(ctx context.Context, msg *User, opts ...firestore.SetOption) error
- type FirestoreUsersIterator
- func (i *FirestoreUsersIterator) GetAll() ([]*User, error)
- func (i *FirestoreUsersIterator) GetAllAsSnapshots() ([]*firestore.DocumentSnapshot, error)
- func (i *FirestoreUsersIterator) Next() (*User, error)
- func (i *FirestoreUsersIterator) NextAsSnapshot() (*firestore.DocumentSnapshot, error)
- func (i *FirestoreUsersIterator) Stop()
- type FirestoreUsersQuery
- func (q *FirestoreUsersQuery) Documents(ctx context.Context) *FirestoreUsersIterator
- func (q *FirestoreUsersQuery) First(ctx context.Context) (*User, error)
- func (q *FirestoreUsersQuery) Limit(n int) *FirestoreUsersQuery
- func (q *FirestoreUsersQuery) OrderBy(path string, dir firestore.Direction) *FirestoreUsersQuery
- func (q *FirestoreUsersQuery) Value() firestore.Query
- func (q *FirestoreUsersQuery) Where(path, op string, value interface{}) *FirestoreUsersQuery
- type Manifest
- func (*Manifest) Descriptor() ([]byte, []int)deprecated
- func (x *Manifest) GetCreateTime() *timestamppb.Timestamp
- func (x *Manifest) GetId() string
- func (x *Manifest) GetOwner() string
- func (x *Manifest) GetRepository() string
- func (*Manifest) ProtoMessage()
- func (x *Manifest) ProtoReflect() protoreflect.Message
- func (x *Manifest) Reset()
- func (x *Manifest) String() string
- func (x *Manifest) ToFirestore() (*FirestoreManifest, error)
- type Session
- type User
Constants ¶
const FirestoreCollectionAccounts = "accounts"
FirestoreCollectionAccounts is the Firestore collection name for documents of type utils.Account.
const FirestoreCollectionActions = "actions"
FirestoreCollectionActions is the Firestore collection name for documents of type utils.Action.
const FirestoreCollectionManifests = "manifests"
FirestoreCollectionManifests is the Firestore collection name for documents of type utils.Manifest.
const FirestoreCollectionSessions = "sessions"
FirestoreCollectionSessions is the Firestore collection name for documents of type utils.Session.
const FirestoreCollectionUsers = "users"
FirestoreCollectionUsers is the Firestore collection name for documents of type utils.User.
Variables ¶
var File_utils_account_proto protoreflect.FileDescriptor
var File_utils_session_proto protoreflect.FileDescriptor
var File_utils_user_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*Account) Descriptor
deprecated
func (*Account) ProtoMessage ¶
func (*Account) ProtoMessage()
func (*Account) ProtoReflect ¶
func (x *Account) ProtoReflect() protoreflect.Message
func (*Account) ToFirestore ¶
func (x *Account) ToFirestore() (*FirestoreAccount, error)
ToFirestore returns the Firestore Custom Object for Account.
type Action ¶
type Action struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Proto []byte `protobuf:"bytes,2,opt,name=proto,proto3" json:"proto,omitempty"` CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // contains filtered or unexported fields }
func (*Action) Descriptor
deprecated
func (*Action) GetCreateTime ¶
func (x *Action) GetCreateTime() *timestamppb.Timestamp
func (*Action) ProtoMessage ¶
func (*Action) ProtoMessage()
func (*Action) ProtoReflect ¶
func (x *Action) ProtoReflect() protoreflect.Message
func (*Action) ToFirestore ¶
func (x *Action) ToFirestore() (*FirestoreAction, error)
ToFirestore returns the Firestore Custom Object for Action.
type Firestore ¶
type Firestore struct {
// contains filtered or unexported fields
}
func WithFirestore ¶
func (*Firestore) Accounts ¶
func (fs *Firestore) Accounts() *FirestoreAccountsCollectionRef
func (*Firestore) Installations ¶
func (fs *Firestore) Installations() *FirestoreInstallationsCollectionRef
type FirestoreAccount ¶
type FirestoreAccount struct {
Name string `firestore:"name,omitempty"`
}
FirestoreAccount is the Firestore Custom Object for utils.Account.
func (*FirestoreAccount) ToProto ¶
func (m *FirestoreAccount) ToProto() (*Account, error)
ToProto converts this FirestoreAccount to its protobuf representation.
type FirestoreAccountsCollectionRef ¶
type FirestoreAccountsCollectionRef struct {
// contains filtered or unexported fields
}
FirestoreAccountsCollectionRef holds a reference to the Firestore collection `accounts`.
func (*FirestoreAccountsCollectionRef) Doc ¶
func (ref *FirestoreAccountsCollectionRef) Doc(id string) *FirestoreAccountsDocumentRef
func (*FirestoreAccountsCollectionRef) Limit ¶
func (ref *FirestoreAccountsCollectionRef) Limit(n int) *FirestoreAccountsQuery
func (*FirestoreAccountsCollectionRef) OrderBy ¶
func (ref *FirestoreAccountsCollectionRef) OrderBy(path string, dir firestore.Direction) *FirestoreAccountsQuery
func (*FirestoreAccountsCollectionRef) Where ¶
func (ref *FirestoreAccountsCollectionRef) Where(path, op string, value interface{}) *FirestoreAccountsQuery
type FirestoreAccountsDocumentRef ¶
type FirestoreAccountsDocumentRef struct {
// contains filtered or unexported fields
}
FirestoreAccountsDocumentRef holds a reference to a Firestore document in collection `accounts`.
func (*FirestoreAccountsDocumentRef) Delete ¶
func (ref *FirestoreAccountsDocumentRef) Delete(ctx context.Context, preconds ...firestore.Precondition) (*firestore.WriteResult, error)
func (*FirestoreAccountsDocumentRef) Get ¶
func (ref *FirestoreAccountsDocumentRef) Get(ctx context.Context) (*Account, error)
func (*FirestoreAccountsDocumentRef) Ref ¶
func (ref *FirestoreAccountsDocumentRef) Ref() *firestore.DocumentRef
func (*FirestoreAccountsDocumentRef) Users ¶ added in v2.0.2
func (ref *FirestoreAccountsDocumentRef) Users() *FirestoreUsersCollectionRef
type FirestoreAccountsIterator ¶
type FirestoreAccountsIterator struct {
// contains filtered or unexported fields
}
func (*FirestoreAccountsIterator) GetAll ¶
func (i *FirestoreAccountsIterator) GetAll() ([]*Account, error)
func (*FirestoreAccountsIterator) GetAllAsSnapshots ¶
func (i *FirestoreAccountsIterator) GetAllAsSnapshots() ([]*firestore.DocumentSnapshot, error)
func (*FirestoreAccountsIterator) Next ¶
func (i *FirestoreAccountsIterator) Next() (*Account, error)
func (*FirestoreAccountsIterator) NextAsSnapshot ¶
func (i *FirestoreAccountsIterator) NextAsSnapshot() (*firestore.DocumentSnapshot, error)
func (*FirestoreAccountsIterator) Stop ¶
func (i *FirestoreAccountsIterator) Stop()
type FirestoreAccountsQuery ¶
type FirestoreAccountsQuery struct {
// contains filtered or unexported fields
}
func (*FirestoreAccountsQuery) Documents ¶
func (q *FirestoreAccountsQuery) Documents(ctx context.Context) *FirestoreAccountsIterator
func (*FirestoreAccountsQuery) First ¶
func (q *FirestoreAccountsQuery) First(ctx context.Context) (*Account, error)
func (*FirestoreAccountsQuery) Limit ¶
func (q *FirestoreAccountsQuery) Limit(n int) *FirestoreAccountsQuery
func (*FirestoreAccountsQuery) OrderBy ¶
func (q *FirestoreAccountsQuery) OrderBy(path string, dir firestore.Direction) *FirestoreAccountsQuery
func (*FirestoreAccountsQuery) Value ¶
func (q *FirestoreAccountsQuery) Value() firestore.Query
func (*FirestoreAccountsQuery) Where ¶
func (q *FirestoreAccountsQuery) Where(path, op string, value interface{}) *FirestoreAccountsQuery
type FirestoreAction ¶
type FirestoreAction struct { Id string `firestore:"id,omitempty"` Proto []byte `firestore:"proto,omitempty"` CreateTime time.Time `firestore:"createTime,serverTimestamp"` }
FirestoreAction is the Firestore Custom Object for utils.Action.
func (*FirestoreAction) ToProto ¶
func (m *FirestoreAction) ToProto() (*Action, error)
ToProto converts this FirestoreAction to its protobuf representation.
type FirestoreActionsCollectionRef ¶
type FirestoreActionsCollectionRef struct {
// contains filtered or unexported fields
}
FirestoreActionsCollectionRef holds a reference to the Firestore collection `actions`.
func (*FirestoreActionsCollectionRef) Create ¶
func (ref *FirestoreActionsCollectionRef) Create(ctx context.Context, p *Action) (*firestore.WriteResult, error)
func (*FirestoreActionsCollectionRef) Doc ¶
func (ref *FirestoreActionsCollectionRef) Doc(id string) *FirestoreActionsDocumentRef
func (*FirestoreActionsCollectionRef) Limit ¶
func (ref *FirestoreActionsCollectionRef) Limit(n int) *FirestoreActionsQuery
func (*FirestoreActionsCollectionRef) OrderBy ¶
func (ref *FirestoreActionsCollectionRef) OrderBy(path string, dir firestore.Direction) *FirestoreActionsQuery
func (*FirestoreActionsCollectionRef) Where ¶
func (ref *FirestoreActionsCollectionRef) Where(path, op string, value interface{}) *FirestoreActionsQuery
type FirestoreActionsDocumentRef ¶
type FirestoreActionsDocumentRef struct {
// contains filtered or unexported fields
}
FirestoreActionsDocumentRef holds a reference to a Firestore document in collection `actions`.
func (*FirestoreActionsDocumentRef) Delete ¶
func (ref *FirestoreActionsDocumentRef) Delete(ctx context.Context, preconds ...firestore.Precondition) (*firestore.WriteResult, error)
func (*FirestoreActionsDocumentRef) Get ¶
func (ref *FirestoreActionsDocumentRef) Get(ctx context.Context) (*Action, error)
func (*FirestoreActionsDocumentRef) Ref ¶
func (ref *FirestoreActionsDocumentRef) Ref() *firestore.DocumentRef
type FirestoreActionsIterator ¶
type FirestoreActionsIterator struct {
// contains filtered or unexported fields
}
func (*FirestoreActionsIterator) GetAll ¶
func (i *FirestoreActionsIterator) GetAll() ([]*Action, error)
func (*FirestoreActionsIterator) GetAllAsSnapshots ¶
func (i *FirestoreActionsIterator) GetAllAsSnapshots() ([]*firestore.DocumentSnapshot, error)
func (*FirestoreActionsIterator) Next ¶
func (i *FirestoreActionsIterator) Next() (*Action, error)
func (*FirestoreActionsIterator) NextAsSnapshot ¶
func (i *FirestoreActionsIterator) NextAsSnapshot() (*firestore.DocumentSnapshot, error)
func (*FirestoreActionsIterator) Stop ¶
func (i *FirestoreActionsIterator) Stop()
type FirestoreActionsQuery ¶
type FirestoreActionsQuery struct {
// contains filtered or unexported fields
}
func (*FirestoreActionsQuery) Documents ¶
func (q *FirestoreActionsQuery) Documents(ctx context.Context) *FirestoreActionsIterator
func (*FirestoreActionsQuery) First ¶
func (q *FirestoreActionsQuery) First(ctx context.Context) (*Action, error)
func (*FirestoreActionsQuery) Limit ¶
func (q *FirestoreActionsQuery) Limit(n int) *FirestoreActionsQuery
func (*FirestoreActionsQuery) OrderBy ¶
func (q *FirestoreActionsQuery) OrderBy(path string, dir firestore.Direction) *FirestoreActionsQuery
func (*FirestoreActionsQuery) Value ¶
func (q *FirestoreActionsQuery) Value() firestore.Query
func (*FirestoreActionsQuery) Where ¶
func (q *FirestoreActionsQuery) Where(path, op string, value interface{}) *FirestoreActionsQuery
type FirestoreInstallationsCollectionRef ¶
type FirestoreInstallationsCollectionRef struct {
// contains filtered or unexported fields
}
FirestoreInstallationsCollectionRef holds a reference to the Firestore collection `installations`.
func (*FirestoreInstallationsCollectionRef) Doc ¶
func (ref *FirestoreInstallationsCollectionRef) Doc(id string) *FirestoreInstallationsDocumentRef
func (*FirestoreInstallationsCollectionRef) Limit ¶
func (ref *FirestoreInstallationsCollectionRef) Limit(n int) *FirestoreInstallationsQuery
func (*FirestoreInstallationsCollectionRef) OrderBy ¶
func (ref *FirestoreInstallationsCollectionRef) OrderBy(path string, dir firestore.Direction) *FirestoreInstallationsQuery
func (*FirestoreInstallationsCollectionRef) Where ¶
func (ref *FirestoreInstallationsCollectionRef) Where(path, op string, value interface{}) *FirestoreInstallationsQuery
type FirestoreInstallationsDocumentRef ¶
type FirestoreInstallationsDocumentRef struct {
// contains filtered or unexported fields
}
FirestoreInstallationsDocumentRef holds a reference to a Firestore document in collection `installations`.
func (*FirestoreInstallationsDocumentRef) Repositories ¶ added in v2.0.2
func (ref *FirestoreInstallationsDocumentRef) Repositories() *FirestoreRepositoriesCollectionRef
type FirestoreInstallationsIterator ¶
type FirestoreInstallationsIterator struct {
// contains filtered or unexported fields
}
func (*FirestoreInstallationsIterator) Stop ¶
func (i *FirestoreInstallationsIterator) Stop()
type FirestoreInstallationsQuery ¶
type FirestoreInstallationsQuery struct {
// contains filtered or unexported fields
}
func (*FirestoreInstallationsQuery) Documents ¶
func (q *FirestoreInstallationsQuery) Documents(ctx context.Context) *FirestoreInstallationsIterator
func (*FirestoreInstallationsQuery) Limit ¶
func (q *FirestoreInstallationsQuery) Limit(n int) *FirestoreInstallationsQuery
func (*FirestoreInstallationsQuery) OrderBy ¶
func (q *FirestoreInstallationsQuery) OrderBy(path string, dir firestore.Direction) *FirestoreInstallationsQuery
func (*FirestoreInstallationsQuery) Value ¶
func (q *FirestoreInstallationsQuery) Value() firestore.Query
func (*FirestoreInstallationsQuery) Where ¶
func (q *FirestoreInstallationsQuery) Where(path, op string, value interface{}) *FirestoreInstallationsQuery
type FirestoreManifest ¶
type FirestoreManifest struct { Id string `firestore:"id,omitempty"` Owner string `firestore:"owner,omitempty"` Repository string `firestore:"repository,omitempty"` CreateTime time.Time `firestore:"createTime,serverTimestamp"` }
FirestoreManifest is the Firestore Custom Object for utils.Manifest.
func (*FirestoreManifest) ToProto ¶
func (m *FirestoreManifest) ToProto() (*Manifest, error)
ToProto converts this FirestoreManifest to its protobuf representation.
type FirestoreManifestsCollectionRef ¶
type FirestoreManifestsCollectionRef struct {
// contains filtered or unexported fields
}
FirestoreManifestsCollectionRef holds a reference to the Firestore collection `manifests`.
func (*FirestoreManifestsCollectionRef) Create ¶
func (ref *FirestoreManifestsCollectionRef) Create(ctx context.Context, p *Manifest) (*firestore.WriteResult, error)
func (*FirestoreManifestsCollectionRef) Doc ¶
func (ref *FirestoreManifestsCollectionRef) Doc(id string) *FirestoreManifestsDocumentRef
func (*FirestoreManifestsCollectionRef) Limit ¶
func (ref *FirestoreManifestsCollectionRef) Limit(n int) *FirestoreManifestsQuery
func (*FirestoreManifestsCollectionRef) OrderBy ¶
func (ref *FirestoreManifestsCollectionRef) OrderBy(path string, dir firestore.Direction) *FirestoreManifestsQuery
func (*FirestoreManifestsCollectionRef) Where ¶
func (ref *FirestoreManifestsCollectionRef) Where(path, op string, value interface{}) *FirestoreManifestsQuery
type FirestoreManifestsDocumentRef ¶
type FirestoreManifestsDocumentRef struct {
// contains filtered or unexported fields
}
FirestoreManifestsDocumentRef holds a reference to a Firestore document in collection `manifests`.
func (*FirestoreManifestsDocumentRef) Actions ¶ added in v2.0.2
func (ref *FirestoreManifestsDocumentRef) Actions() *FirestoreActionsCollectionRef
func (*FirestoreManifestsDocumentRef) Delete ¶
func (ref *FirestoreManifestsDocumentRef) Delete(ctx context.Context, preconds ...firestore.Precondition) (*firestore.WriteResult, error)
func (*FirestoreManifestsDocumentRef) Get ¶
func (ref *FirestoreManifestsDocumentRef) Get(ctx context.Context) (*Manifest, error)
func (*FirestoreManifestsDocumentRef) Ref ¶
func (ref *FirestoreManifestsDocumentRef) Ref() *firestore.DocumentRef
type FirestoreManifestsIterator ¶
type FirestoreManifestsIterator struct {
// contains filtered or unexported fields
}
func (*FirestoreManifestsIterator) GetAll ¶
func (i *FirestoreManifestsIterator) GetAll() ([]*Manifest, error)
func (*FirestoreManifestsIterator) GetAllAsSnapshots ¶
func (i *FirestoreManifestsIterator) GetAllAsSnapshots() ([]*firestore.DocumentSnapshot, error)
func (*FirestoreManifestsIterator) Next ¶
func (i *FirestoreManifestsIterator) Next() (*Manifest, error)
func (*FirestoreManifestsIterator) NextAsSnapshot ¶
func (i *FirestoreManifestsIterator) NextAsSnapshot() (*firestore.DocumentSnapshot, error)
func (*FirestoreManifestsIterator) Stop ¶
func (i *FirestoreManifestsIterator) Stop()
type FirestoreManifestsQuery ¶
type FirestoreManifestsQuery struct {
// contains filtered or unexported fields
}
func (*FirestoreManifestsQuery) Documents ¶
func (q *FirestoreManifestsQuery) Documents(ctx context.Context) *FirestoreManifestsIterator
func (*FirestoreManifestsQuery) First ¶
func (q *FirestoreManifestsQuery) First(ctx context.Context) (*Manifest, error)
func (*FirestoreManifestsQuery) Limit ¶
func (q *FirestoreManifestsQuery) Limit(n int) *FirestoreManifestsQuery
func (*FirestoreManifestsQuery) OrderBy ¶
func (q *FirestoreManifestsQuery) OrderBy(path string, dir firestore.Direction) *FirestoreManifestsQuery
func (*FirestoreManifestsQuery) Value ¶
func (q *FirestoreManifestsQuery) Value() firestore.Query
func (*FirestoreManifestsQuery) Where ¶
func (q *FirestoreManifestsQuery) Where(path, op string, value interface{}) *FirestoreManifestsQuery
type FirestoreRepositoriesCollectionRef ¶
type FirestoreRepositoriesCollectionRef struct {
// contains filtered or unexported fields
}
FirestoreRepositoriesCollectionRef holds a reference to the Firestore collection `repositories`.
func (*FirestoreRepositoriesCollectionRef) Doc ¶
func (ref *FirestoreRepositoriesCollectionRef) Doc(id string) *FirestoreRepositoriesDocumentRef
func (*FirestoreRepositoriesCollectionRef) Limit ¶
func (ref *FirestoreRepositoriesCollectionRef) Limit(n int) *FirestoreRepositoriesQuery
func (*FirestoreRepositoriesCollectionRef) OrderBy ¶
func (ref *FirestoreRepositoriesCollectionRef) OrderBy(path string, dir firestore.Direction) *FirestoreRepositoriesQuery
func (*FirestoreRepositoriesCollectionRef) Where ¶
func (ref *FirestoreRepositoriesCollectionRef) Where(path, op string, value interface{}) *FirestoreRepositoriesQuery
type FirestoreRepositoriesDocumentRef ¶
type FirestoreRepositoriesDocumentRef struct {
// contains filtered or unexported fields
}
FirestoreRepositoriesDocumentRef holds a reference to a Firestore document in collection `repositories`.
func (*FirestoreRepositoriesDocumentRef) Manifests ¶ added in v2.0.2
func (ref *FirestoreRepositoriesDocumentRef) Manifests() *FirestoreManifestsCollectionRef
type FirestoreRepositoriesIterator ¶
type FirestoreRepositoriesIterator struct {
// contains filtered or unexported fields
}
func (*FirestoreRepositoriesIterator) Stop ¶
func (i *FirestoreRepositoriesIterator) Stop()
type FirestoreRepositoriesQuery ¶
type FirestoreRepositoriesQuery struct {
// contains filtered or unexported fields
}
func (*FirestoreRepositoriesQuery) Documents ¶
func (q *FirestoreRepositoriesQuery) Documents(ctx context.Context) *FirestoreRepositoriesIterator
func (*FirestoreRepositoriesQuery) Limit ¶
func (q *FirestoreRepositoriesQuery) Limit(n int) *FirestoreRepositoriesQuery
func (*FirestoreRepositoriesQuery) OrderBy ¶
func (q *FirestoreRepositoriesQuery) OrderBy(path string, dir firestore.Direction) *FirestoreRepositoriesQuery
func (*FirestoreRepositoriesQuery) Value ¶
func (q *FirestoreRepositoriesQuery) Value() firestore.Query
func (*FirestoreRepositoriesQuery) Where ¶
func (q *FirestoreRepositoriesQuery) Where(path, op string, value interface{}) *FirestoreRepositoriesQuery
type FirestoreSession ¶
type FirestoreSession struct {
Uuid string `firestore:"uuid,omitempty"`
}
FirestoreSession is the Firestore Custom Object for utils.Session.
func (*FirestoreSession) ToProto ¶
func (m *FirestoreSession) ToProto() (*Session, error)
ToProto converts this FirestoreSession to its protobuf representation.
type FirestoreSessionsCollectionRef ¶
type FirestoreSessionsCollectionRef struct {
// contains filtered or unexported fields
}
FirestoreSessionsCollectionRef holds a reference to the Firestore collection `sessions`.
func (*FirestoreSessionsCollectionRef) Doc ¶
func (ref *FirestoreSessionsCollectionRef) Doc(id string) *FirestoreSessionsDocumentRef
func (*FirestoreSessionsCollectionRef) Limit ¶
func (ref *FirestoreSessionsCollectionRef) Limit(n int) *FirestoreSessionsQuery
func (*FirestoreSessionsCollectionRef) OrderBy ¶
func (ref *FirestoreSessionsCollectionRef) OrderBy(path string, dir firestore.Direction) *FirestoreSessionsQuery
func (*FirestoreSessionsCollectionRef) Where ¶
func (ref *FirestoreSessionsCollectionRef) Where(path, op string, value interface{}) *FirestoreSessionsQuery
type FirestoreSessionsDocumentRef ¶
type FirestoreSessionsDocumentRef struct {
// contains filtered or unexported fields
}
FirestoreSessionsDocumentRef holds a reference to a Firestore document in collection `sessions`.
func (*FirestoreSessionsDocumentRef) Delete ¶
func (ref *FirestoreSessionsDocumentRef) Delete(ctx context.Context, preconds ...firestore.Precondition) (*firestore.WriteResult, error)
func (*FirestoreSessionsDocumentRef) Get ¶
func (ref *FirestoreSessionsDocumentRef) Get(ctx context.Context) (*Session, error)
func (*FirestoreSessionsDocumentRef) Ref ¶
func (ref *FirestoreSessionsDocumentRef) Ref() *firestore.DocumentRef
type FirestoreSessionsIterator ¶
type FirestoreSessionsIterator struct {
// contains filtered or unexported fields
}
func (*FirestoreSessionsIterator) GetAll ¶
func (i *FirestoreSessionsIterator) GetAll() ([]*Session, error)
func (*FirestoreSessionsIterator) GetAllAsSnapshots ¶
func (i *FirestoreSessionsIterator) GetAllAsSnapshots() ([]*firestore.DocumentSnapshot, error)
func (*FirestoreSessionsIterator) Next ¶
func (i *FirestoreSessionsIterator) Next() (*Session, error)
func (*FirestoreSessionsIterator) NextAsSnapshot ¶
func (i *FirestoreSessionsIterator) NextAsSnapshot() (*firestore.DocumentSnapshot, error)
func (*FirestoreSessionsIterator) Stop ¶
func (i *FirestoreSessionsIterator) Stop()
type FirestoreSessionsQuery ¶
type FirestoreSessionsQuery struct {
// contains filtered or unexported fields
}
func (*FirestoreSessionsQuery) Documents ¶
func (q *FirestoreSessionsQuery) Documents(ctx context.Context) *FirestoreSessionsIterator
func (*FirestoreSessionsQuery) First ¶
func (q *FirestoreSessionsQuery) First(ctx context.Context) (*Session, error)
func (*FirestoreSessionsQuery) Limit ¶
func (q *FirestoreSessionsQuery) Limit(n int) *FirestoreSessionsQuery
func (*FirestoreSessionsQuery) OrderBy ¶
func (q *FirestoreSessionsQuery) OrderBy(path string, dir firestore.Direction) *FirestoreSessionsQuery
func (*FirestoreSessionsQuery) Value ¶
func (q *FirestoreSessionsQuery) Value() firestore.Query
func (*FirestoreSessionsQuery) Where ¶
func (q *FirestoreSessionsQuery) Where(path, op string, value interface{}) *FirestoreSessionsQuery
type FirestoreUser ¶
type FirestoreUser struct {
Name string `firestore:"name,omitempty"`
}
FirestoreUser is the Firestore Custom Object for utils.User.
func (*FirestoreUser) ToProto ¶
func (m *FirestoreUser) ToProto() (*User, error)
ToProto converts this FirestoreUser to its protobuf representation.
type FirestoreUsersCollectionRef ¶
type FirestoreUsersCollectionRef struct {
// contains filtered or unexported fields
}
FirestoreUsersCollectionRef holds a reference to the Firestore collection `users`.
func (*FirestoreUsersCollectionRef) Create ¶
func (ref *FirestoreUsersCollectionRef) Create(ctx context.Context, p *User) (*firestore.WriteResult, error)
func (*FirestoreUsersCollectionRef) Doc ¶
func (ref *FirestoreUsersCollectionRef) Doc(id string) *FirestoreUsersDocumentRef
func (*FirestoreUsersCollectionRef) Limit ¶
func (ref *FirestoreUsersCollectionRef) Limit(n int) *FirestoreUsersQuery
func (*FirestoreUsersCollectionRef) OrderBy ¶
func (ref *FirestoreUsersCollectionRef) OrderBy(path string, dir firestore.Direction) *FirestoreUsersQuery
func (*FirestoreUsersCollectionRef) Where ¶
func (ref *FirestoreUsersCollectionRef) Where(path, op string, value interface{}) *FirestoreUsersQuery
type FirestoreUsersDocumentRef ¶
type FirestoreUsersDocumentRef struct {
// contains filtered or unexported fields
}
FirestoreUsersDocumentRef holds a reference to a Firestore document in collection `users`.
func (*FirestoreUsersDocumentRef) Delete ¶
func (ref *FirestoreUsersDocumentRef) Delete(ctx context.Context, preconds ...firestore.Precondition) (*firestore.WriteResult, error)
func (*FirestoreUsersDocumentRef) Get ¶
func (ref *FirestoreUsersDocumentRef) Get(ctx context.Context) (*User, error)
func (*FirestoreUsersDocumentRef) Ref ¶
func (ref *FirestoreUsersDocumentRef) Ref() *firestore.DocumentRef
func (*FirestoreUsersDocumentRef) Sessions ¶ added in v2.0.2
func (ref *FirestoreUsersDocumentRef) Sessions() *FirestoreSessionsCollectionRef
type FirestoreUsersIterator ¶
type FirestoreUsersIterator struct {
// contains filtered or unexported fields
}
func (*FirestoreUsersIterator) GetAll ¶
func (i *FirestoreUsersIterator) GetAll() ([]*User, error)
func (*FirestoreUsersIterator) GetAllAsSnapshots ¶
func (i *FirestoreUsersIterator) GetAllAsSnapshots() ([]*firestore.DocumentSnapshot, error)
func (*FirestoreUsersIterator) Next ¶
func (i *FirestoreUsersIterator) Next() (*User, error)
func (*FirestoreUsersIterator) NextAsSnapshot ¶
func (i *FirestoreUsersIterator) NextAsSnapshot() (*firestore.DocumentSnapshot, error)
func (*FirestoreUsersIterator) Stop ¶
func (i *FirestoreUsersIterator) Stop()
type FirestoreUsersQuery ¶
type FirestoreUsersQuery struct {
// contains filtered or unexported fields
}
func (*FirestoreUsersQuery) Documents ¶
func (q *FirestoreUsersQuery) Documents(ctx context.Context) *FirestoreUsersIterator
func (*FirestoreUsersQuery) First ¶
func (q *FirestoreUsersQuery) First(ctx context.Context) (*User, error)
func (*FirestoreUsersQuery) Limit ¶
func (q *FirestoreUsersQuery) Limit(n int) *FirestoreUsersQuery
func (*FirestoreUsersQuery) OrderBy ¶
func (q *FirestoreUsersQuery) OrderBy(path string, dir firestore.Direction) *FirestoreUsersQuery
func (*FirestoreUsersQuery) Value ¶
func (q *FirestoreUsersQuery) Value() firestore.Query
func (*FirestoreUsersQuery) Where ¶
func (q *FirestoreUsersQuery) Where(path, op string, value interface{}) *FirestoreUsersQuery
type Manifest ¶
type Manifest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` Repository string `protobuf:"bytes,3,opt,name=repository,proto3" json:"repository,omitempty"` CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // contains filtered or unexported fields }
func (*Manifest) Descriptor
deprecated
func (*Manifest) GetCreateTime ¶
func (x *Manifest) GetCreateTime() *timestamppb.Timestamp
func (*Manifest) GetRepository ¶
func (*Manifest) ProtoMessage ¶
func (*Manifest) ProtoMessage()
func (*Manifest) ProtoReflect ¶
func (x *Manifest) ProtoReflect() protoreflect.Message
func (*Manifest) ToFirestore ¶
func (x *Manifest) ToFirestore() (*FirestoreManifest, error)
ToFirestore returns the Firestore Custom Object for Manifest.
type Session ¶
type Session struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // contains filtered or unexported fields }
func (*Session) Descriptor
deprecated
func (*Session) ProtoMessage ¶
func (*Session) ProtoMessage()
func (*Session) ProtoReflect ¶
func (x *Session) ProtoReflect() protoreflect.Message
func (*Session) ToFirestore ¶
func (x *Session) ToFirestore() (*FirestoreSession, error)
ToFirestore returns the Firestore Custom Object for Session.
type User ¶
type User struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
func (*User) ToFirestore ¶
func (x *User) ToFirestore() (*FirestoreUser, error)
ToFirestore returns the Firestore Custom Object for User.