models

package
v0.0.0-...-0a5c495 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2020 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIGatewayConfig

type APIGatewayConfig struct {
	Domain               string   `json:"domain"`
	Port                 int      `json:"port"`
	MongoURL             string   `json:"mongo_url"`
	DBName               string   `json:"database_name"`
	CookiePath           string   `json:"cookie_path"`
	CookieHTTPOnly       bool     `json:"cookie_http_only"`
	CookieSecure         bool     `json:"cookie_secure"`
	CookieTokenTitle     string   `json:"cookie_token_title"`
	AllowedOrigins       []string `json:"allowed_origins"`
	TagPreviewLimit      int64    `json:"tag_preview_limit"`
	SessionRotation      bool     `json:"session_rotation"`
	DefaultMediaPageSize int      `json:"default_media_page_size"`
	InviteValidity       int      `json:"invite_validity"`
}

APIGatewayConfig struct that stores every api related settings

type Config

type Config struct {
	APIGatewayConfig APIGatewayConfig `json:"api_gateway"`
	NodeConfig       NodeConfig       `json:"node"`
}

Config holds all possible configurations about the framework

type NodeAuth

type NodeAuth struct {
	ID     string `json:"id"`
	Secret string `json:"secret"`
}

type NodeConfig

type NodeConfig struct {
	BasePath       string    `json:"basePath"`
	AllowedOrigins []string  `json:"allowed_origins"`
	GatewayURL     string    `json:"gateway_url"`
	Port           int       `json:"port"`
	NodeAuth       *NodeAuth `json:"node_auth"`
}

NodeConfig struct that stores every api related settings

Jump to

Keyboard shortcuts

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