server

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: LGPL-3.0 Imports: 54 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SrirachaVersion = "DEV"

Functions

func FormatValue

func FormatValue(v interface{}) interface{}

func RegisterPlugin

func RegisterPlugin(plugin any)

RegisterPlugin registers a Sriracha plugin to receive any subscribed events.

Types

type HTMLError

type HTMLError struct {
	Page string
}

func (*HTMLError) Error

func (e *HTMLError) Error() string

type NewsOption

type NewsOption int
const (
	NewsDisable      NewsOption = 0
	NewsWriteToNews  NewsOption = 1
	NewsWriteToIndex NewsOption = 2
)

type Server

type Server struct {
	Boards []*Board
	// contains filtered or unexported fields
}

func NewServer

func NewServer() *Server

func (*Server) Run

func (s *Server) Run() error

type ServerOptions

type ServerOptions struct {
	SiteName         string
	SiteHome         string
	News             NewsOption
	BoardIndex       bool
	CAPTCHA          bool
	Refresh          int
	Uploads          []*UploadType
	Embeds           [][2]string
	OekakiWidth      int
	OekakiHeight     int
	Overboard        string
	OverboardType    BoardType
	OverboardThreads int
	OverboardReplies int
	Identifiers      bool
	Locale           string
	Locales          map[string]string
	LocalesSorted    []string
	FuncMaps         map[string]template.FuncMap
}

func (*ServerOptions) DefaultLocaleName

func (opt *ServerOptions) DefaultLocaleName() string

Jump to

Keyboard shortcuts

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