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 ¶
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()
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()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.