models

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2022 License: MIT Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Get

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

func NewGet

func NewGet(doc *firestore.DocumentRef, transform func(map[string]interface{}) error) Get

func (Get) Doc

func (g Get) Doc() *firestore.DocumentRef

func (Get) Transform

func (g Get) Transform(item map[string]interface{}) error

type Getter

type Getter interface {
	Doc() *firestore.DocumentRef
	Transform(map[string]interface{}) error
}

type Query

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

func NewQuery

func NewQuery(q firestore.Query, transform func(map[string]interface{}) error) Query

func (Query) Query

func (q Query) Query() firestore.Query

func (Query) Transform

func (q Query) Transform(item map[string]interface{}) error

type Queryer

type Queryer interface {
	Query() firestore.Query
	Transform(map[string]interface{}) error
}

type RemoteCompiler

type RemoteCompiler interface {
	Client() *http.Client
	Request() (*http.Request, error)
	ResponseChan() chan RemoteCompilerOutput
}

type RemoteCompilerOutput

type RemoteCompilerOutput struct {
	StatusCode int
	Body       io.ReadCloser
	Err        error
}

type Storer

type Storer interface {
	Collection() *firestore.CollectionRef
	DocID() string
	Data() interface{}
}

Storer is the interface for database objects that get stored

Jump to

Keyboard shortcuts

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