config

package
v0.0.0-...-dc3d092 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2022 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ACTIVE_CONF_PROFILE = "default"

ACTIVE_CONF_PROFILE

View Source
var BACKEND_AUTH_TOKEN = ""

BACKEND_AUTH_TOKEN conf

View Source
var BackendProto string = "https"

BackendProto var

View Source
var BackendURLDomain string = "api.nebulant.io"

BackendURLDomain var

View Source
var BridgeOrigin string = "https://bridge.nebulant.io"

BridgeOrigin var

View Source
var DEBUG bool = false

DEBUG conf

View Source
var FrontOrigin string = "https://builder.nebulant.io"

FrontOrigin var

View Source
var FrontOriginPre string = "https://builder.nebulant.dev"

FrontOriginPre var

View Source
var FrontUrl string = "https://builder.nebulant.io"

FrontUrl var

View Source
var PROFILING bool = false

PROFILING conf

View Source
var Version = "DEV build"

Version var

View Source
var VersionDate = ""

VersionDate var

View Source
var WSScheme string = "wss"

WSScheme var

Functions

This section is empty.

Types

type Credential

type Credential struct {
	AuthToken *string `json:"auth_token"`
}

Credential struct

var CREDENTIALS *Credential = &Credential{}

CREDENTIALS

func ReadCredential

func ReadCredential(credentialName string) (*Credential, error)

ReadCredential func

type Credentials

type Credentials struct {
	Version     string                `json:"version"`
	Credentials map[string]Credential `json:"credentials"`
}

Ej:

{
	"default": {
		"auth_token": "TOKENHASH"
	}
}

Credentials struct

Jump to

Keyboard shortcuts

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