gemserver

package
v0.0.0-...-85dc63b Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartRouter

func StartRouter(gm *gamemanager.GameManager, gc ServerConfig)

StartRouter starts the gig server for handling Gemini requests.

Types

type IndexConfig

type IndexConfig struct {
	DisplayProjectInfo bool
	DisplayPoweredBy   bool
	ContactEmail       string
	Title              string
	PageBody           string
}

IndexConfig contains configuration info for the homepage.

type ServerConfig

type ServerConfig struct {
	Domain   string
	Port     int64
	CertFile string
	KeyFile  string
	Version  string
	HomePage IndexConfig
}

ServerConfig contains basic server config settings.

type Template

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

Template contains the templates for gig to render.

func (*Template) Render

func (t *Template) Render(w io.Writer, name string, data interface{}, c gig.Context) error

Render is a simple rendering function for our text/template to Gemini for gig.

Jump to

Keyboard shortcuts

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