server

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateStdioConn added in v0.0.21

func CreateStdioConn(r io.Reader, w io.Writer) net.Conn

func Server added in v0.0.21

func Server(conn net.Conn, handler http.Handler)

func ToPipelineContextData

func ToPipelineContextData(data interface{}) protocol.PipelineContextData

func ToPipelineContextDataWithError

func ToPipelineContextDataWithError(data interface{}) (protocol.PipelineContextData, error)

Types

type ActionsServer

type ActionsServer struct {
	TraceLog         chan interface{}
	ServerURL        string
	ActionsServerURL string
	AuthData         map[string]*protocol.ActionDownloadAuthentication
	JobRequest       *protocol.AgentJobRequestMessage
	CancelCtx        context.Context
	CacheHandler     http.Handler
	ExternalURL      string
	Token            string
}

func (*ActionsServer) ServeHTTP

func (server *ActionsServer) ServeHTTP(resp http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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