globals

package
v0.0.0-...-96163db Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var APIVersion = "1.0"

APIVersion is route api version. See also routes and routers \todo: Add support for multiple versions.

View Source
var BucketS3 string

BucketS3 contains the name of the S3 bucket used to save models and worlds zip files.

View Source
var ElasticSearch *elasticsearch.Client

ElasticSearch is a pointer to the Elastic Search client.

View Source
var FlagsEmailRecipient string

FlagsEmailRecipient is the target email to use when sending flags notifications. It is set using IGN_FLAGS_EMAIL_TO env var.

View Source
var FlagsEmailSender string

FlagsEmailSender is the sender email to use when sending flags notifications. It is set using IGN_FLAGS_EMAIL_FROM env var.

View Source
var FormDecoder *form.Decoder

FormDecoder holds a reference to the global Form Decoder. See https://github.com/go-playground/form. We use a single instance of Decoder, as it caches struct info

View Source
var HTTPTestS3Server *httptest.Server

HTTPTestS3Server is used as a testing web server for interacting with the S3 API on test suites.

View Source
var LeaderboardCircuitFilter []string

LeaderboardCircuitFilter contains a list of comma-separated circuits that will be excluded from leaderboard score results.

View Source
var LeaderboardOrganizationFilter []string

LeaderboardOrganizationFilter contains a list of comma-separated organizations that will be excluded from leaderboard score results.

View Source
var MaxCategoriesPerModel int

MaxCategoriesPerModel defines the maximum amount of categories that can be assigned to a model

Permissions manages permissions for users, roles and resources.

View Source
var ResourceDir string

ResourceDir is the directory where all resources are located.

View Source
var S3 *s3.S3

S3 contains a reference to the S3 API using the AWS SDK v1 that allows you to interact with a buckets and objects.

View Source
var Server *gz.Server

Server encapsulates database, router, and auth0

View Source
var SessionS3 *session.Session

SessionS3 contains an AWS session used to perform S3 operations.

Storage holds an implementation of storage.Storage that allows you to upload and download files.

View Source
var UploaderS3 *s3manager.Uploader

UploaderS3 contains a reference to the S3 API using the AWS SDK v1 that allows you to upload objects to S3.

View Source
var VCSRepoFactory func(ctx context.Context, dirpath string) vcs.VCS

VCSRepoFactory is the factory function used to create new repositories to manage versions of Models, Worlds, Plugins, etc. Our current implementation uses go-git.

View Source
var Validate *validator.Validate

Validate references the global structs validator. See https://github.com/go-playground/validator. We use a single instance of validator, as it caches struct info

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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