server

package
v0.0.0-...-0767551 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 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 Cache

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

func (*Cache) Get

func (c *Cache) Get(key string) (any, bool)

func (*Cache) Set

func (c *Cache) Set(key string, value any, ttl time.Duration)

type Server

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

func NewServer

func NewServer(hostname, port, forwardedURL string) *Server

func (*Server) HandleRequests

func (srv *Server) HandleRequests(w http.ResponseWriter, r *http.Request)

func (*Server) Run

func (srv *Server) Run() error

Jump to

Keyboard shortcuts

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