Help us shape the future of Go! Take the 2026 Go Developer Survey

config

package
v1.3.104 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package config pkg/deployment/tps/config/config.go c2-net-transport

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	PK   cipher.PubKey    `json:"public_key"`
	SK   cipher.SecKey    `json:"secret_key"`
	Port uint16           `json:"port"`
	Dmsg dmsgc.DmsgConfig `json:"dmsg"`
}

Config defines configuration for transport setup

func MustReadConfig

func MustReadConfig(filename string, log *logging.Logger) Config

MustReadConfig reads and decodes config from file. If there is an error, it reports the error and exits application

Jump to

Keyboard shortcuts

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