signs

package
v0.0.0-...-26c0519 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Address            string
	ScheduleXMLurl     string
	ScheduleXMLupdate  string
	ScheduleJSONurl    string
	ScheduleJSONupdate string
}

Config server configuration

func NewServerConfig

func NewServerConfig() Config

NewServerConfig for Sign Server at SCaLE

type Event

type Event struct {
	Name        string
	Description string
	Location    string
	StartTime   time.Time
	EndTime     time.Time
}

Event is basic scheduling primitive

type Node

type Node struct {
	Title         string `xml:"Title"`
	Room          string `xml:"Room"`
	Day           string `xml:"Day"`
	Time          string `xml:"Time"`
	Speakers      string `xml:"Speakers"`
	SpeakerIDs    string `xml:"Speaker-IDs"`
	Topic         string `xml:"Topic"`
	ShortAbstract string `xml:"Short-abstract"`
	Photo         string `xml:"Photo"`
	Path          string `xml:"Path"`
}

Node <node> from the upstream XML, pre cleanup

type Nodes

type Nodes struct {
	Nodes []Node `xml:"node"`
}

Nodes <nodes> top level document

type Presentation

type Presentation struct {
	Event
	Speakers []string
	Topic    string
}

Presentation is an extension of event with speakers and a topic

type Schedule

type Schedule struct {
	Presentations []Presentation
	// contains filtered or unexported fields
}

Schedule contains all presentations and events

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server is the main webserver process

func NewServer

func NewServer(c Config) *Server

NewServer sets up the cron runs for schedule and sponsors returns the *Server

func (*Server) ListenAndServe

func (s *Server) ListenAndServe() error

ListenAndServe the Server

Jump to

Keyboard shortcuts

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