config

package
v3.5.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

Flags is the flag set that AddOptions adds to. Test authors should also use it instead of directly adding to the global command line.

Functions

func CopyFlags

func CopyFlags(source *flag.FlagSet, target *flag.FlagSet)

CopyFlags ensures that all flags that are defined in the source flag set appear in the target flag set as if they had been defined there directly. From the flag package it inherits the behavior that there is a panic if the target already contains a flag from the source.

Types

type Config added in v3.4.2

type Config struct {
	APIHost             string
	APIPort             string
	MsgGatewayHost      string
	MsgTransferHost     string
	PushHost            string
	RPCAuthHost         string
	RPCConversationHost string
	RPCFriendHost       string
	RPCGroupHost        string
	RPCMsgHost          string
	RPCThirdHost        string
	RPCUserHost         string
}

Config defines the configuration structure for the OpenIM components.

func LoadConfig added in v3.4.2

func LoadConfig() *Config

LoadConfig loads the configurations from environment variables or default values.

Jump to

Keyboard shortcuts

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