config

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildinModuleConfig

type BuildinModuleConfig struct {
	// contains filtered or unexported fields
}

BuildinModuleConfig buildin module config

func InitBuildinModuleConfig

func InitBuildinModuleConfig(filepath string) *BuildinModuleConfig

InitBuildinModuleConfig init buildin module config

type SocketConfig

type SocketConfig struct {
	ModuleName    string `json:"module"`
	Server        bool   `json:"server"`
	Address       string `json:"address"`
	SocketType    string `json:"sockettype,omitempty"`
	ConnNumberMax int    `json:"connmax"`
	BufferSize    int    `json:"buffersize,omitempty"`
	CaRoot        string `json:"ca,omitempty"`
	Cert          string `json:"cert,omitempty"`
	Key           string `json:"key,omitempty"`
}

SocketConfig socket config

func GetClientSocketConfig

func GetClientSocketConfig(module string) (SocketConfig, error)

GetClientSocketConfig get client socket config

func GetServerSocketConfig

func GetServerSocketConfig() ([]SocketConfig, error)

GetServerSocketConfig get server socket config

Jump to

Keyboard shortcuts

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