Documentation
¶
Index ¶
Constants ¶
View Source
const (
Port = ":19999"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KillServer ¶
KillServer is struct used to cancel a context of web service, that listens on a specific port.
func NewKillServer ¶
func NewKillServer(addr string, cancel context.CancelFunc) *KillServer
NewKillServer initializes a KillServer at a specific address/port and the cancel context of said web service.
func (*KillServer) ServeHTTP ¶
func (s *KillServer) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP should write reply headers and data to the ResponseWriter and then return.
func (*KillServer) Start ¶
func (s *KillServer) Start()
Start starts the ListenAndServe of the KillServer server
Click to show internal directories.
Click to hide internal directories.