server

package
v0.4.75 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MIT Imports: 9 Imported by: 0

README

DataTug agent server

It is started using serve command like:

datatug serve /t=<path_to_project_folder>

This will start HTTP server that listens by default on port # 8989. You can check it started by opening http://localhost:8989.

The port can be changed with --port=<####> parameter.

Run datatug serve --help to see all available parameters.

Endpoints

You can learn about server endpoints here.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpServer added in v0.3.0

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

func NewHttpServer

func NewHttpServer() HttpServer

func (HttpServer) ServeHTTP added in v0.3.0

func (s HttpServer) ServeHTTP(pathsByID map[string]string, host string, port int) error

ServeHTTP starts HTTP server

func (HttpServer) Shutdown added in v0.3.0

func (s HttpServer) Shutdown(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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