constant

package
v0.0.0-...-3b51f2e Latest Latest
Warning

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

Go to latest
Published: May 20, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HttpAuthorizationTokenHeader = "X-Authorization-Token"

	HttpContentTypeHeader = "Content-Type"
	ContentTypeJson       = "application/json"
)
View Source
const (
	RPCSourceMetadataKey      = "X-Source"
	RPCDestinationMetadataKey = "X-Destination"

	RPCDefaultSource = "browser"

	RPCProtocolName = "http2 over quic"
)
View Source
const (
	SysctlUdpBufferSizeKey   = "net.core.rmem_max"
	SysctlUdpBufferSizeValue = 2500000
)
View Source
const DefaultDataDir = "data"
View Source
const DefaultListenPort = 40123
View Source
const DefaultLocalSqliteFilename = "core.local.db"
View Source
const DqliteDataDir = "dqlite"
View Source
const ProtoMixinIdStart = 536870900
View Source
const RpcUnixDialAddress = "unix-abstract:/tmp/openPanel.sock"
View Source
const RpcUnixListenAddress = "/tmp/openPanel.sock"
View Source
const SharedDatabaseDSN = "shared?_fk=1"

Variables

View Source
var DefaultListenIp = net.IPv4zero
View Source
var QuicConfig = quic.Config{
	MaxIdleTimeout:  time.Minute,
	KeepAlivePeriod: time.Second * 30,
}

Functions

This section is empty.

Types

type ConfigKey

type ConfigKey string
const (
	ConfigKeyNodeInfo   ConfigKey = "local.nodeInfo"
	ConfigKeyNodesCache ConfigKey = "local.nodesCache"
)
const (
	ConfigKeyClusterInfo        ConfigKey = "shared.clusterInfo"
	ConfigKeyAuthorizationToken ConfigKey = "shared.authorizationToken"
)

type Mode

type Mode string
const (
	ModeDev  Mode = "dev"
	ModeProd Mode = "prod"
)

type StopID

type StopID string
const (
	StopIDLocalSqliteDB  StopID = "local_sqlite_db"
	StopIDSharedDqliteDB StopID = "shared_dqlite_db"

	StopIDLogger        StopID = "log_file"
	StopIDCron          StopID = "cron"
	StopIDQUICConnCache StopID = "quic_conn_cache"

	StopIDGRPCUnixServer StopID = "grpc_unix_server"
	StopIDGRPCQUICServer StopID = "grpc_quic_server"
	StopIDGRPCHTTPServer StopID = "grpc_web_server"
)

type Store

type Store int
const (
	LocalStore  Store = iota
	SharedStore Store = iota
)

Jump to

Keyboard shortcuts

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