server

package
v0.0.0-...-e197d81 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2021 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CapturingPassThroughWriter

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

below is some modified IO code that came from https://blog.kowalczyk.info/article/wOYk/advanced-command-execution-in-go-with-osexec.html

func NewCapturingPassThroughWriter

func NewCapturingPassThroughWriter(w io.Writer, ws *websocket.Conn) *CapturingPassThroughWriter

NewCapturingPassThroughWriter creates new CapturingPassThroughWriter

func (*CapturingPassThroughWriter) Bytes

func (w *CapturingPassThroughWriter) Bytes() []byte

Bytes returns bytes written to the writer

func (*CapturingPassThroughWriter) Write

func (w *CapturingPassThroughWriter) Write(d []byte) (int, error)

type Server

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

Server this is a web server

func NewServer

func NewServer() (Server, error)

NewServer - create and bootstrap a new server struct

func (*Server) Log

func (s *Server) Log(messages ...interface{})

Log will log any messages to the attached logger instance

func (*Server) LogError

func (s *Server) LogError(messages ...string)

LogError will log any messages to the attached logger instance

func (*Server) Start

func (s *Server) Start() error

Start will start up the server instance and bootstrap it if necessary

Jump to

Keyboard shortcuts

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