daemon

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func CreateServer

func CreateServer() (*Server, error)

CreateServer creates a new HTTP server with TLS configured for GPTScript. This function should be used when creating a new server for a daemon tool. The server should then be started with the StartServer function.

func CreateServerWithMux

func CreateServerWithMux(mux *http.ServeMux) (*Server, error)

CreateServerWithMux creates a new HTTP server with TLS configured for GPTScript. This function should be used when creating a new server for a daemon tool with a custom ServeMux. The server should then be started with the StartServer function.

func (*Server) HandleFunc

func (s *Server) HandleFunc(pattern string, handler http.HandlerFunc)

func (*Server) Start

func (s *Server) Start() error

Start starts an HTTP server created by the CreateServer function. This is for use with daemon tools.

Jump to

Keyboard shortcuts

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