server

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2023 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NotFoundHandler

func NotFoundHandler(ctx context.Context, w gemini.ResponseWriter, r *gemini.Request)

Types

type GeminiServer

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

func NewServer

func NewServer(configPath string) *GeminiServer

func NewServerFromConfig

func NewServerFromConfig(cfg *config.File, certificates *certificate.Store, fsyses map[string]gfs.FS) *GeminiServer

func (*GeminiServer) Listen

func (gs *GeminiServer) Listen()

func (*GeminiServer) Shutdown

func (gs *GeminiServer) Shutdown(ctx context.Context) error

type PluginClient

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

func NewPluginClient

func NewPluginClient(cmd string) *PluginClient

func (*PluginClient) CallServe

func (pc *PluginClient) CallServe(r *gemini.Request) tplugin.BufferedResponseWriter

func (*PluginClient) Connect

func (pc *PluginClient) Connect() error

func (*PluginClient) Kill

func (pc *PluginClient) Kill()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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