Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database interface { Get(ctx context.Context, key *datastore.Key, dst interface{}) (err error) Put(ctx context.Context, key *datastore.Key, src interface{}) (*datastore.Key, error) GetMulti(ctx context.Context, keys []*datastore.Key, dst interface{}) (err error) PutMulti(ctx context.Context, keys []*datastore.Key, src interface{}) (_ []*datastore.Key, err error) }
Database provides the functionality to persist and recall data. In production we use the gcs datastore. In local development mode we use a memory data store.
type Fetcher ¶
Fetcher fetches the worktree for a git repository. In production the repo is cloned or loaded from the persistence cache and fetched to ensure it's update. In local development mode the repo is loaded from the local GOPATH.
type Fileserver ¶
type Fileserver interface { Write(ctx context.Context, bucket, name string, reader io.Reader, overwrite bool, contentType, cacheControl string) (saved bool, err error) Read(ctx context.Context, bucket, name string, writer io.Writer) (found bool, err error) Exists(ctx context.Context, bucket, name string) (bool, error) }
Fileserver provides the functionality to persist files and host them for web delivery. In production we use GCS buckets. In local storage mode we use a temporary directory
Directories ¶
Path | Synopsis |
---|---|
package constor (concurrent storer) for storing items into a services.Fileserver concurrently
|
package constor (concurrent storer) for storing items into a services.Fileserver concurrently |
database
|
|
fetcher
|
|
fileserver
|
|
getter
|
|
get
Package str provides string manipulation utilities.
|
Package str provides string manipulation utilities. |
Package srcimporter implements importing directly from source files rather than installed packages.
|
Package srcimporter implements importing directly from source files rather than installed packages. |
Click to show internal directories.
Click to hide internal directories.