ssb

package
v0.6.11 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 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 `json:"shs"`
	Sign   string `json:"sign,omitempty"`
	Invite string `json:"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 `json:"incoming"`
		Outgoing connections `json:"outgoing"`
	} `json:"connections"`
	Caps    Caps `json:"caps"`
	Logging struct {
		Level string `json:"level"`
	} `json:"logging"`
	Master []string `json:"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