config

package
v0.0.0-...-9d78cc5 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: MIT Imports: 3 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Server Server
	Events []Event
}

func LoadConfig

func LoadConfig(filepath string) (Config, error)

func (*Config) SaveConfig

func (c *Config) SaveConfig(filepath string) error

type Event

type Event struct {
	Name  string
	Infos []Info
}

type Info

type Info struct {
	Name string
	URL  string
	Type InfoType
}

type InfoType

type InfoType int
const (
	InfoTypeRSS InfoType = iota
	InfoTypeICal
	InfoPretalx
	InfoHubAssemblies
	InfoHubEvents
)

type Secrets

type Secrets map[string]string

func LoadSecrets

func LoadSecrets(filepath string) (Secrets, error)

func (*Secrets) SaveSecrets

func (s *Secrets) SaveSecrets(filepath string) error

type Server

type Server struct {
	GopherDir  string
	GopherPort int
	SearchPort int
	Hostname   string
}

Jump to

Keyboard shortcuts

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