app

package
v0.0.0-...-394a65f Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(
	dbConfig db.Config,
	dbConnector db.Connector,
	dbMigrationTool db.MigrationTool,
	config ServiceConfig,
)

Start launches the GraphQL & HTTP APIs

Types

type ServiceConfig

type ServiceConfig struct {
	Runtime              string
	LogPrefix            string
	LogLevel             logger.LogLevel
	MigrationRoot        string
	RecaptchaSecret      string
	GithubClientID       string
	GithubClientSecret   string
	FacebookClientID     string
	FacebookClientSecret string
	FacebookRedirectURI  string
	GoogleClientID       string
	GoogleClientSecret   string
	GoogleRedirectURI    string
	JwtSecret            string
	WebFrontendURL       string
	GraphQLAPIPort       int
	HTTPAPIPort          int
	GRPCAPIPort          int
	EnableEncryption     bool
	CertFilePath         string
	KeyFilePath          string
	KeyGenBufferSize     int
	KgsHostname          string
	KgsPort              int
	AuthTokenLifetime    time.Duration
	SearchTimeout        time.Duration
	SwaggerUIDir         string
	OpenAPISpecPath      string
	GraphQLSchemaPath    string
	GraphiQLDefaultQuery string
	DataDogAPIKey        string
	SegmentAPIKey        string
	IPStackAPIKey        string
	GoogleAPIKey         string
}

ServiceConfig represents require parameters for the backend APIs

Jump to

Keyboard shortcuts

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