gemini

package
v0.0.0-...-7643193 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 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
	Log      *slog.Logger
	DB       *sql.DB
	Handler  front.Handler
	Resolver ap.Resolver
	Addr     string
	CertPath string
	KeyPath  string
}

func (*Listener) Handle

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

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