svc

package
v0.4.13 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2020 License: GPL-3.0 Imports: 26 Imported by: 0

README

getwtxt|svc

This is an internal package created for code organization purposes.

The file getwtxt.go in the parent directory calls svc.go::Start(), which starts the registry server.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Vers contains the version number set at build time
	Vers string
)

Functions

func Start

func Start()

Start is the initialization function for getwtxt

Types

type Configuration

type Configuration struct {
	Mu            sync.RWMutex
	Port          int           `yaml:"ListenPort"`
	MsgLog        string        `yaml:"MessageLog"`
	ReqLog        string        `yaml:"RequestLog"`
	DBType        string        `yaml:"DatabaseType"`
	DBPath        string        `yaml:"DatabasePath"`
	AssetsDir     string        `yaml:"AssetsDirectory"`
	StaticDir     string        `yaml:"StaticFilesDirectory"`
	StdoutLogging bool          `yaml:"StdoutLogging"`
	CacheInterval time.Duration `yaml:"StatusFetchInterval"`
	DBInterval    time.Duration `yaml:"DatabasePushInterval"`
	Instance      `yaml:"Instance"`
}

Configuration values are held in an instance of this struct.

type Instance

type Instance struct {
	Vers  string `yaml:"-"`
	Name  string `yaml:"Instance.SiteName"`
	URL   string `yaml:"Instance.URL"`
	Owner string `yaml:"Instance.OwnerName"`
	Mail  string `yaml:"Instance.Email"`
	Desc  string `yaml:"Instance.Description"`
}

Instance refers to meta data about this specific instance of getwtxt

type RemoteRegistries

type RemoteRegistries struct {
	List []string
}

RemoteRegistries holds a list of remote registries to periodically scrape for new users. The remote registries must have been added via POST like a user.

Jump to

Keyboard shortcuts

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