server

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MessageTypeTitle   = MessageType("title")
	MessageTypeContent = MessageType("content")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	Type string `json:"type"`
	Data string `json:"data"`
}

type MessageType

type MessageType string

type Server

type Server struct {
	Config   ServerConfig
	Renderer content.Renderer
	// contains filtered or unexported fields
}

func (*Server) Serve

func (s *Server) Serve(ctx context.Context, addr string) error

func (*Server) Update

func (s *Server) Update()

type ServerConfig added in v0.4.0

type ServerConfig struct {
	Title string
	Style string
}

type Style added in v0.4.0

type Style struct {
	Name    string
	Variant string
}

Jump to

Keyboard shortcuts

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