Documentation ¶
Index ¶
- Constants
- Variables
- type Account
- type FS_utils
- type FS_utils_Accounts
- func (x *FS_utils_Accounts) Doc(id string) *FS_utils_Accounts_Doc
- func (x *FS_utils_Accounts) Limit(n int) *FS_utils_Accounts_Query
- func (x *FS_utils_Accounts) OrderBy(path string, dir firestore.Direction) *FS_utils_Accounts_Query
- func (x *FS_utils_Accounts) Where(path, op string, value interface{}) *FS_utils_Accounts_Query
- type FS_utils_Accounts_Doc
- func (x *FS_utils_Accounts_Doc) Delete(ctx context.Context, preconds ...firestore.Precondition) (*firestore.WriteResult, error)
- func (x *FS_utils_Accounts_Doc) Get(ctx context.Context) (*Account, error)
- func (x *FS_utils_Accounts_Doc) Ref() *firestore.DocumentRef
- func (x *FS_utils_Accounts_Doc) Set(ctx context.Context, m *Account) error
- type FS_utils_Accounts_Iter
- func (x *FS_utils_Accounts_Iter) GetAll() ([]*Account, error)
- func (x *FS_utils_Accounts_Iter) GetAllAsSnapshots() ([]*firestore.DocumentSnapshot, error)
- func (x *FS_utils_Accounts_Iter) Next() (*Account, error)
- func (x *FS_utils_Accounts_Iter) NextAsSnapshot() (*firestore.DocumentSnapshot, error)
- func (x *FS_utils_Accounts_Iter) Stop()
- type FS_utils_Accounts_Query
- func (x *FS_utils_Accounts_Query) Documents(ctx context.Context) *FS_utils_Accounts_Iter
- func (x *FS_utils_Accounts_Query) First(ctx context.Context) (*Account, error)
- func (x *FS_utils_Accounts_Query) Limit(n int) *FS_utils_Accounts_Query
- func (x *FS_utils_Accounts_Query) OrderBy(path string, dir firestore.Direction) *FS_utils_Accounts_Query
- func (x *FS_utils_Accounts_Query) Value() firestore.Query
- func (x *FS_utils_Accounts_Query) Where(path, op string, value interface{}) *FS_utils_Accounts_Query
- type FS_utils_Users
- func (x *FS_utils_Users) Create(ctx context.Context, p *User) (*firestore.WriteResult, error)
- func (x *FS_utils_Users) Doc(id string) *FS_utils_Users_Doc
- func (x *FS_utils_Users) Limit(n int) *FS_utils_Users_Query
- func (x *FS_utils_Users) OrderBy(path string, dir firestore.Direction) *FS_utils_Users_Query
- func (x *FS_utils_Users) Where(path, op string, value interface{}) *FS_utils_Users_Query
- type FS_utils_Users_Doc
- func (x *FS_utils_Users_Doc) Delete(ctx context.Context, preconds ...firestore.Precondition) (*firestore.WriteResult, error)
- func (x *FS_utils_Users_Doc) Get(ctx context.Context) (*User, error)
- func (x *FS_utils_Users_Doc) Ref() *firestore.DocumentRef
- func (x *FS_utils_Users_Doc) Sessions() *FS_utils_Users_Sessions
- func (x *FS_utils_Users_Doc) Set(ctx context.Context, m *User) error
- type FS_utils_Users_Iter
- func (x *FS_utils_Users_Iter) GetAll() ([]*User, error)
- func (x *FS_utils_Users_Iter) GetAllAsSnapshots() ([]*firestore.DocumentSnapshot, error)
- func (x *FS_utils_Users_Iter) Next() (*User, error)
- func (x *FS_utils_Users_Iter) NextAsSnapshot() (*firestore.DocumentSnapshot, error)
- func (x *FS_utils_Users_Iter) Stop()
- type FS_utils_Users_Query
- func (x *FS_utils_Users_Query) Documents(ctx context.Context) *FS_utils_Users_Iter
- func (x *FS_utils_Users_Query) First(ctx context.Context) (*User, error)
- func (x *FS_utils_Users_Query) Limit(n int) *FS_utils_Users_Query
- func (x *FS_utils_Users_Query) OrderBy(path string, dir firestore.Direction) *FS_utils_Users_Query
- func (x *FS_utils_Users_Query) Value() firestore.Query
- func (x *FS_utils_Users_Query) Where(path, op string, value interface{}) *FS_utils_Users_Query
- type FS_utils_Users_Sessions
- func (x *FS_utils_Users_Sessions) Doc(id string) *FS_utils_Users_Sessions_Doc
- func (x *FS_utils_Users_Sessions) Limit(n int) *FS_utils_Users_Sessions_Query
- func (x *FS_utils_Users_Sessions) OrderBy(path string, dir firestore.Direction) *FS_utils_Users_Sessions_Query
- func (x *FS_utils_Users_Sessions) Where(path, op string, value interface{}) *FS_utils_Users_Sessions_Query
- type FS_utils_Users_Sessions_Doc
- func (x *FS_utils_Users_Sessions_Doc) Delete(ctx context.Context, preconds ...firestore.Precondition) (*firestore.WriteResult, error)
- func (x *FS_utils_Users_Sessions_Doc) Get(ctx context.Context) (*Session, error)
- func (x *FS_utils_Users_Sessions_Doc) Ref() *firestore.DocumentRef
- func (x *FS_utils_Users_Sessions_Doc) Set(ctx context.Context, m *Session) error
- type FS_utils_Users_Sessions_Iter
- func (x *FS_utils_Users_Sessions_Iter) GetAll() ([]*Session, error)
- func (x *FS_utils_Users_Sessions_Iter) GetAllAsSnapshots() ([]*firestore.DocumentSnapshot, error)
- func (x *FS_utils_Users_Sessions_Iter) Next() (*Session, error)
- func (x *FS_utils_Users_Sessions_Iter) NextAsSnapshot() (*firestore.DocumentSnapshot, error)
- func (x *FS_utils_Users_Sessions_Iter) Stop()
- type FS_utils_Users_Sessions_Query
- func (x *FS_utils_Users_Sessions_Query) Documents(ctx context.Context) *FS_utils_Users_Sessions_Iter
- func (x *FS_utils_Users_Sessions_Query) First(ctx context.Context) (*Session, error)
- func (x *FS_utils_Users_Sessions_Query) Limit(n int) *FS_utils_Users_Sessions_Query
- func (x *FS_utils_Users_Sessions_Query) OrderBy(path string, dir firestore.Direction) *FS_utils_Users_Sessions_Query
- func (x *FS_utils_Users_Sessions_Query) Value() firestore.Query
- func (x *FS_utils_Users_Sessions_Query) Where(path, op string, value interface{}) *FS_utils_Users_Sessions_Query
- type FirestoreAccount
- type FirestoreSession
- type FirestoreUser
- type Session
- type User
Constants ¶
const FirestoreCollectionAccounts = "accounts"
FirestoreCollectionAccounts is the Firestore collection name for documents of type utils.Account.
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 FS_utils ¶
type FS_utils struct {
// contains filtered or unexported fields
}
func (*FS_utils) Accounts ¶
func (x *FS_utils) Accounts() *FS_utils_Accounts
func (*FS_utils) Users ¶ added in v1.2.0
func (x *FS_utils) Users() *FS_utils_Users
type FS_utils_Accounts ¶
type FS_utils_Accounts struct {
// contains filtered or unexported fields
}
func (*FS_utils_Accounts) Doc ¶
func (x *FS_utils_Accounts) Doc(id string) *FS_utils_Accounts_Doc
func (*FS_utils_Accounts) Limit ¶
func (x *FS_utils_Accounts) Limit(n int) *FS_utils_Accounts_Query
func (*FS_utils_Accounts) OrderBy ¶
func (x *FS_utils_Accounts) OrderBy(path string, dir firestore.Direction) *FS_utils_Accounts_Query
func (*FS_utils_Accounts) Where ¶
func (x *FS_utils_Accounts) Where(path, op string, value interface{}) *FS_utils_Accounts_Query
type FS_utils_Accounts_Doc ¶
type FS_utils_Accounts_Doc struct {
// contains filtered or unexported fields
}
func (*FS_utils_Accounts_Doc) Delete ¶ added in v1.2.0
func (x *FS_utils_Accounts_Doc) Delete(ctx context.Context, preconds ...firestore.Precondition) (*firestore.WriteResult, error)
func (*FS_utils_Accounts_Doc) Get ¶ added in v1.2.0
func (x *FS_utils_Accounts_Doc) Get(ctx context.Context) (*Account, error)
func (*FS_utils_Accounts_Doc) Ref ¶ added in v1.2.0
func (x *FS_utils_Accounts_Doc) Ref() *firestore.DocumentRef
type FS_utils_Accounts_Iter ¶
type FS_utils_Accounts_Iter struct {
// contains filtered or unexported fields
}
func (*FS_utils_Accounts_Iter) GetAll ¶ added in v1.2.0
func (x *FS_utils_Accounts_Iter) GetAll() ([]*Account, error)
func (*FS_utils_Accounts_Iter) GetAllAsSnapshots ¶ added in v1.2.0
func (x *FS_utils_Accounts_Iter) GetAllAsSnapshots() ([]*firestore.DocumentSnapshot, error)
func (*FS_utils_Accounts_Iter) Next ¶ added in v1.2.0
func (x *FS_utils_Accounts_Iter) Next() (*Account, error)
func (*FS_utils_Accounts_Iter) NextAsSnapshot ¶ added in v1.2.0
func (x *FS_utils_Accounts_Iter) NextAsSnapshot() (*firestore.DocumentSnapshot, error)
func (*FS_utils_Accounts_Iter) Stop ¶
func (x *FS_utils_Accounts_Iter) Stop()
type FS_utils_Accounts_Query ¶
type FS_utils_Accounts_Query struct {
// contains filtered or unexported fields
}
func (*FS_utils_Accounts_Query) Documents ¶
func (x *FS_utils_Accounts_Query) Documents(ctx context.Context) *FS_utils_Accounts_Iter
func (*FS_utils_Accounts_Query) First ¶ added in v1.2.0
func (x *FS_utils_Accounts_Query) First(ctx context.Context) (*Account, error)
func (*FS_utils_Accounts_Query) Limit ¶
func (x *FS_utils_Accounts_Query) Limit(n int) *FS_utils_Accounts_Query
func (*FS_utils_Accounts_Query) OrderBy ¶
func (x *FS_utils_Accounts_Query) OrderBy(path string, dir firestore.Direction) *FS_utils_Accounts_Query
func (*FS_utils_Accounts_Query) Value ¶
func (x *FS_utils_Accounts_Query) Value() firestore.Query
func (*FS_utils_Accounts_Query) Where ¶
func (x *FS_utils_Accounts_Query) Where(path, op string, value interface{}) *FS_utils_Accounts_Query
type FS_utils_Users ¶ added in v1.2.0
type FS_utils_Users struct {
// contains filtered or unexported fields
}
func (*FS_utils_Users) Create ¶ added in v1.2.0
func (x *FS_utils_Users) Create(ctx context.Context, p *User) (*firestore.WriteResult, error)
func (*FS_utils_Users) Doc ¶ added in v1.2.0
func (x *FS_utils_Users) Doc(id string) *FS_utils_Users_Doc
func (*FS_utils_Users) Limit ¶ added in v1.2.0
func (x *FS_utils_Users) Limit(n int) *FS_utils_Users_Query
func (*FS_utils_Users) OrderBy ¶ added in v1.2.0
func (x *FS_utils_Users) OrderBy(path string, dir firestore.Direction) *FS_utils_Users_Query
func (*FS_utils_Users) Where ¶ added in v1.2.0
func (x *FS_utils_Users) Where(path, op string, value interface{}) *FS_utils_Users_Query
type FS_utils_Users_Doc ¶ added in v1.2.0
type FS_utils_Users_Doc struct {
// contains filtered or unexported fields
}
func (*FS_utils_Users_Doc) Delete ¶ added in v1.2.0
func (x *FS_utils_Users_Doc) Delete(ctx context.Context, preconds ...firestore.Precondition) (*firestore.WriteResult, error)
func (*FS_utils_Users_Doc) Get ¶ added in v1.2.0
func (x *FS_utils_Users_Doc) Get(ctx context.Context) (*User, error)
func (*FS_utils_Users_Doc) Ref ¶ added in v1.2.0
func (x *FS_utils_Users_Doc) Ref() *firestore.DocumentRef
func (*FS_utils_Users_Doc) Sessions ¶ added in v1.2.0
func (x *FS_utils_Users_Doc) Sessions() *FS_utils_Users_Sessions
type FS_utils_Users_Iter ¶ added in v1.2.0
type FS_utils_Users_Iter struct {
// contains filtered or unexported fields
}
func (*FS_utils_Users_Iter) GetAll ¶ added in v1.2.0
func (x *FS_utils_Users_Iter) GetAll() ([]*User, error)
func (*FS_utils_Users_Iter) GetAllAsSnapshots ¶ added in v1.2.0
func (x *FS_utils_Users_Iter) GetAllAsSnapshots() ([]*firestore.DocumentSnapshot, error)
func (*FS_utils_Users_Iter) Next ¶ added in v1.2.0
func (x *FS_utils_Users_Iter) Next() (*User, error)
func (*FS_utils_Users_Iter) NextAsSnapshot ¶ added in v1.2.0
func (x *FS_utils_Users_Iter) NextAsSnapshot() (*firestore.DocumentSnapshot, error)
func (*FS_utils_Users_Iter) Stop ¶ added in v1.2.0
func (x *FS_utils_Users_Iter) Stop()
type FS_utils_Users_Query ¶ added in v1.2.0
type FS_utils_Users_Query struct {
// contains filtered or unexported fields
}
func (*FS_utils_Users_Query) Documents ¶ added in v1.2.0
func (x *FS_utils_Users_Query) Documents(ctx context.Context) *FS_utils_Users_Iter
func (*FS_utils_Users_Query) First ¶ added in v1.2.0
func (x *FS_utils_Users_Query) First(ctx context.Context) (*User, error)
func (*FS_utils_Users_Query) Limit ¶ added in v1.2.0
func (x *FS_utils_Users_Query) Limit(n int) *FS_utils_Users_Query
func (*FS_utils_Users_Query) OrderBy ¶ added in v1.2.0
func (x *FS_utils_Users_Query) OrderBy(path string, dir firestore.Direction) *FS_utils_Users_Query
func (*FS_utils_Users_Query) Value ¶ added in v1.2.0
func (x *FS_utils_Users_Query) Value() firestore.Query
func (*FS_utils_Users_Query) Where ¶ added in v1.2.0
func (x *FS_utils_Users_Query) Where(path, op string, value interface{}) *FS_utils_Users_Query
type FS_utils_Users_Sessions ¶ added in v1.2.0
type FS_utils_Users_Sessions struct {
// contains filtered or unexported fields
}
func (*FS_utils_Users_Sessions) Doc ¶ added in v1.2.0
func (x *FS_utils_Users_Sessions) Doc(id string) *FS_utils_Users_Sessions_Doc
func (*FS_utils_Users_Sessions) Limit ¶ added in v1.2.0
func (x *FS_utils_Users_Sessions) Limit(n int) *FS_utils_Users_Sessions_Query
func (*FS_utils_Users_Sessions) OrderBy ¶ added in v1.2.0
func (x *FS_utils_Users_Sessions) OrderBy(path string, dir firestore.Direction) *FS_utils_Users_Sessions_Query
func (*FS_utils_Users_Sessions) Where ¶ added in v1.2.0
func (x *FS_utils_Users_Sessions) Where(path, op string, value interface{}) *FS_utils_Users_Sessions_Query
type FS_utils_Users_Sessions_Doc ¶ added in v1.2.0
type FS_utils_Users_Sessions_Doc struct {
// contains filtered or unexported fields
}
func (*FS_utils_Users_Sessions_Doc) Delete ¶ added in v1.2.0
func (x *FS_utils_Users_Sessions_Doc) Delete(ctx context.Context, preconds ...firestore.Precondition) (*firestore.WriteResult, error)
func (*FS_utils_Users_Sessions_Doc) Get ¶ added in v1.2.0
func (x *FS_utils_Users_Sessions_Doc) Get(ctx context.Context) (*Session, error)
func (*FS_utils_Users_Sessions_Doc) Ref ¶ added in v1.2.0
func (x *FS_utils_Users_Sessions_Doc) Ref() *firestore.DocumentRef
type FS_utils_Users_Sessions_Iter ¶ added in v1.2.0
type FS_utils_Users_Sessions_Iter struct {
// contains filtered or unexported fields
}
func (*FS_utils_Users_Sessions_Iter) GetAll ¶ added in v1.2.0
func (x *FS_utils_Users_Sessions_Iter) GetAll() ([]*Session, error)
func (*FS_utils_Users_Sessions_Iter) GetAllAsSnapshots ¶ added in v1.2.0
func (x *FS_utils_Users_Sessions_Iter) GetAllAsSnapshots() ([]*firestore.DocumentSnapshot, error)
func (*FS_utils_Users_Sessions_Iter) Next ¶ added in v1.2.0
func (x *FS_utils_Users_Sessions_Iter) Next() (*Session, error)
func (*FS_utils_Users_Sessions_Iter) NextAsSnapshot ¶ added in v1.2.0
func (x *FS_utils_Users_Sessions_Iter) NextAsSnapshot() (*firestore.DocumentSnapshot, error)
func (*FS_utils_Users_Sessions_Iter) Stop ¶ added in v1.2.0
func (x *FS_utils_Users_Sessions_Iter) Stop()
type FS_utils_Users_Sessions_Query ¶ added in v1.2.0
type FS_utils_Users_Sessions_Query struct {
// contains filtered or unexported fields
}
func (*FS_utils_Users_Sessions_Query) Documents ¶ added in v1.2.0
func (x *FS_utils_Users_Sessions_Query) Documents(ctx context.Context) *FS_utils_Users_Sessions_Iter
func (*FS_utils_Users_Sessions_Query) First ¶ added in v1.2.0
func (x *FS_utils_Users_Sessions_Query) First(ctx context.Context) (*Session, error)
func (*FS_utils_Users_Sessions_Query) Limit ¶ added in v1.2.0
func (x *FS_utils_Users_Sessions_Query) Limit(n int) *FS_utils_Users_Sessions_Query
func (*FS_utils_Users_Sessions_Query) OrderBy ¶ added in v1.2.0
func (x *FS_utils_Users_Sessions_Query) OrderBy(path string, dir firestore.Direction) *FS_utils_Users_Sessions_Query
func (*FS_utils_Users_Sessions_Query) Value ¶ added in v1.2.0
func (x *FS_utils_Users_Sessions_Query) Value() firestore.Query
func (*FS_utils_Users_Sessions_Query) Where ¶ added in v1.2.0
func (x *FS_utils_Users_Sessions_Query) Where(path, op string, value interface{}) *FS_utils_Users_Sessions_Query
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 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 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 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.