Documentation ¶
Index ¶
- Constants
- Variables
- type Config
- func NewConfig(listenIp, listenPort, p string) (*Config, error)
- func NewConfigFromJson(cString string) (c *Config, fnerr error)
- func NewConfigFromPath(p string) (*Config, error)
- func NewDefaultConfig(masterIp string, masterPort int32) (*Config, error)
- func SaveConfig(c *Config, p string) (*Config, error)
- type DBConfig
- type DbTarget
- type GcsConfig
- type KubeConfig
- type ObjStorageConfig
- type S3Config
- type StorageTarget
Constants ¶
View Source
const ( ConfigVarsEnvName = "HF_SERVER_CONFIG_VARS" ConfigPathEnvName = "HF_SERVER_CONFIG_PATH" GCS StorageTarget = "GCS" S3 StorageTarget = "S3" Bolt DbTarget = "BOLT" Postgres DbTarget = "POSTGRES" Badger DbTarget = "BADGER" )
Variables ¶
View Source
var ( DefaultDataDirPath = "/var/tmp/hflow.db" DefaultDBBucket = "hflow_master" DefaultStorageBucket = "hyperflow" DefaultStorageTarget = GCS DefaultStorageBaseDir = "hyperflow" DefaultMasterPort = int32(8888) ConfigFilePerm = 0644 )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { PublicInterface string MasterIp string MasterPort int32 MasterExternalPort int32 NoSSL bool DB *DBConfig K8 *KubeConfig ObjStorage *ObjStorageConfig LogLevel string LogPath string }
func NewConfigFromJson ¶
func NewConfigFromPath ¶
func (*Config) GetListenAddr ¶
type KubeConfig ¶
type ObjStorageConfig ¶
type ObjStorageConfig struct { StorageTarget StorageTarget BaseDir string S3 *S3Config Gcs *GcsConfig }
type StorageTarget ¶
type StorageTarget string
Click to show internal directories.
Click to hide internal directories.