ssb

package
v0.7.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Caps

type Caps struct {
	Shs    string `yaml:"shs"`
	Sign   string `yaml:"sign,omitempty"`
	Invite string `yaml:"invite,omitempty"`
}

func LoadCapsFile

func LoadCapsFile(fileName string) (Caps, error)

func LoadCapsFromConfigFile

func LoadCapsFromConfigFile(fileName string) (Caps, error)

type Config

type Config struct {
	Connections struct {
		Incoming connections `yaml:"incoming"`
		Outgoing connections `yaml:"outgoing"`
	} `yaml:"connections"`
	Caps    Caps `yaml:"caps"`
	Logging struct {
		Level string `yaml:"level"`
	} `yaml:"logging"`
	Master []string `yaml:"master"`
}

func (Config) Address

func (c Config) Address() (net.Addr, error)

Jump to

Keyboard shortcuts

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