web

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventBroker

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

func NewEventBroker

func NewEventBroker() *EventBroker

func (*EventBroker) Notify

func (b *EventBroker) Notify(message string)

func (*EventBroker) ServeHTTP

func (b *EventBroker) ServeHTTP(w http.ResponseWriter, r *http.Request)

type IndexData

type IndexData struct {
	Templates []TemplateInfo
}

type Server

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

func NewServer

func NewServer(opts *ServerOptions) *Server

func (*Server) NotifyReload

func (s *Server) NotifyReload()

func (*Server) ReloadNotifier

func (s *Server) ReloadNotifier() handler.ReloadNotifier

func (*Server) Serve

func (s *Server) Serve(addr string) error

type ServerOptions

type ServerOptions struct {
	Output string
}

type TemplateInfo

type TemplateInfo struct {
	Name string
	Path string
}

Directories

Path Synopsis
templ: version: v0.2.793
templ: version: v0.2.793

Jump to

Keyboard shortcuts

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