server

package
v0.0.0-...-b39f01e Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2021 License: BSD-3-Clause Imports: 7 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 {
	Endpoint string        `env:"ENDPOINT" envDefault:"https://syllabus.i.nagoya-u.ac.jp/i/"`
	Expires  time.Duration `env:"EXPIRES" envDefault:"1h"`
	Interval time.Duration `env:"INTERVAL" envDefault:"500ms"`
}

type Server

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

func New

func New(c Config) *Server

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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