gemini

package
v0.0.0-...-57c7989 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package gemini exposes a Gemini interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Listener

type Listener struct {
	Domain   string
	Config   *cfg.Config
	DB       *sql.DB
	Handler  front.Handler
	Addr     string
	CertPath string
	KeyPath  string
}

func (*Listener) Handle

func (gl *Listener) Handle(ctx context.Context, conn net.Conn)

Handle handles a Gemini request.

func (*Listener) ListenAndServe

func (gl *Listener) ListenAndServe(ctx context.Context) error

ListenAndServe handles Gemini requests.

Jump to

Keyboard shortcuts

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