server

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: May 22, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Content

type Content struct {
	WeatherReport   string
	Location        string
	Messages        []template.HTML
	Version         string
	CreationTime    string
	WeatherIconURL  string
	FontAwesomeIcon string
}

type Server

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

func New

func New(c ServerConfig) *Server

func (*Server) Close added in v0.1.2

func (server *Server) Close() error

func (*Server) Serve

func (server *Server) Serve()

func (*Server) UpdateData

func (server *Server) UpdateData(data *Content)

func (*Server) UpdateImage

func (server *Server) UpdateImage(data []byte)

type ServerConfig

type ServerConfig struct {
	Listen string `yaml:"listen"`
}

Jump to

Keyboard shortcuts

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