server

package
v0.4.12 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2023 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFileSystemHandler added in v0.0.17

func CreateFileSystemHandler(opts FileSystemHandlerOptions) (*gemini.Mux, error)

func NotFoundHandler

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

Types

type FileSystemHandlerOptions added in v0.0.17

type FileSystemHandlerOptions struct {
	Base         string
	FSSource     *config.FSSourceConfig
	S3Source     *config.S3SourceConfig
	MemorySource *config.MemorySourceConfig
	Fsyses       map[string]gfs.FS
}

type GeminiServer

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

func LoadServer added in v0.4.5

func LoadServer(configPath string) (*GeminiServer, error)

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