util

package
v0.0.0-...-7ddc71e Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2017 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustCrypto

func MustCrypto(cli *etcd.Client, tlsinfo transport.TLSInfo)

func MustEtcdClient

func MustEtcdClient(etcdYamlPath string) *etcd.Client

func MustIrcdEtcdClient

func MustIrcdEtcdClient(cli *etcd.Client, pfx string, tlsinfo *transport.TLSInfo) *etcd.Client

func TeeListener

func TeeListener(ln net.Listener, dir string) net.Listener

Types

type IrcCfg

type IrcCfg struct {
	etcdircd.Config

	EtcdPrefix string

	EtcdCryptoKeyFile  string
	EtcdCryptoCertFile string
	EtcdCryptoCAFile   string

	IrcdKeyFile  string
	IrcdCertFile string
	IrcdCAFile   string

	IrcdClientCerts bool

	// IrcdDebugTeeDir is the directory to write incoming client data.
	IrcdDebugTeeDir string
}

func NewIrcCfgFromFile

func NewIrcCfgFromFile(f string) (*IrcCfg, error)

Jump to

Keyboard shortcuts

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