openserver

package
v0.0.0-...-0257ec7 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2021 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OpenServer

type OpenServer struct {
	http.Server
	// contains filtered or unexported fields
}

OpenServer is the core of Open-func

func NewServer

func NewServer(addr uint) (*OpenServer, error)

NewServer - server factory

func (*OpenServer) ColdTriggerSpawn

func (s *OpenServer) ColdTriggerSpawn(w http.ResponseWriter, r *http.Request)

ColdTriggerSpawn creates new container and executes it immediately

func (*OpenServer) DeleteFunc

func (s *OpenServer) DeleteFunc(w http.ResponseWriter, r *http.Request)

DeleteFunc deletes a deployment and service ands stops hot containers

func (*OpenServer) ListFuncSpecs

func (s *OpenServer) ListFuncSpecs(w http.ResponseWriter, r *http.Request)

ListFuncSpecs returns list of funcSpecs

func (*OpenServer) PrepareFunc

func (s *OpenServer) PrepareFunc(w http.ResponseWriter, r *http.Request)

PrepareFunc readies a deployment and service for hot execution

func (*OpenServer) WaitShutdown

func (s *OpenServer) WaitShutdown()

WaitShutdown blocks the main thread until an interrupt is received to initiate graceful shutdown.

Jump to

Keyboard shortcuts

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