simple_go_http_server

command module
v0.0.0-...-3cb0b0a Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2016 License: GPL-3.0 Imports: 9 Imported by: 0

README

simple_go_http_server

-- Package simple_go_http_server

Live DEMO http://159.203.134.218:32175

Use:

as utility for logs view:

General:

small Docker container image can be demployed on

Amazon EC2 Container Service
Google Container Engine
Azure Container Service etc..
as well can be used as stand alone application

simple deployment on docker:

docker run -t -p 9090:8080 remotejob/simple_go_http_server:0.3
test on http://localhost:9090

stand alone use:

./server
test on http://localhost:8080
binary ./server compiled for Linux ELF 64-bit LSB  executable, x86-64, version 1 (SYSV), statically linked, not stripped
so to use under Windows an Mac it must be recompiled

database:

simple .csv file (logs.csv) it can be something more serious. I thinks Redis will be best in that case.

deployment on cluster:

file deployment.yaml can be useful
file intend use kubernetes for cluster orchestration.

size:

Doker image after deployment on Registry:
size 3.963 MB!! It's greate!

Docker and Golang:

Golang: definitely winning in relation to Docker compare with others languages

Files:

Makefile - compile and deploy Docker image
Dockerfile - it's Dockerfile for Docker image creation
deployment.yaml - kubernetes deployment on any Cluster Containers

Documentation

Overview

Package simple_go_http_server

Live DEMO http://159.203.134.218:32175

Use:

as utility for logs view:

General:

small Docker container image can be demployed on

Amazon EC2 Container Service
Google Container Engine
Azure Container Service etc..
as well can be used as stand alone application

simple deployment on docker:

docker run -t -p 9090:8080 remotejob/simple_go_http_server:0.3
test on http://localhost:9090

stand alone use:

./server
test on http://localhost:8080
binary ./server compiled for Linux ELF 64-bit LSB  executable, x86-64, version 1 (SYSV), statically linked, not stripped
so to use under Windows an Mac it must be recompiled

database:

simple .csv file (logs.csv) it can be something more serious. I thinks Redis will be best in that case.

deployment on cluster:

file deployment.yaml can be useful
file intend use kubernetes for cluster orchestration.

size:

Doker image after deployment on Registry:
size 3.963 MB!! It's greate!

Docker and Golang:

Golang: definitely winning in relation to Docker compare with others languages

Files:

Makefile - compile and deploy Docker image
Dockerfile - it's Dockerfile for Docker image creation
deployment.yaml - kubernetes deployment on any Cluster Containers

Directories

Path Synopsis
Package check_logfile_existense simple check if logfile exist
Package check_logfile_existense simple check if logfile exist
Package domains keep struc in one place
Package domains keep struc in one place
Package entryLogsHandler used to keep records slice of struc in pointer, add new records and delete not used records in pointer keep clean Database (.csv file but it can be other backend for example redis etc..)
Package entryLogsHandler used to keep records slice of struc in pointer, add new records and delete not used records in pointer keep clean Database (.csv file but it can be other backend for example redis etc..)
Package recordHit used for goroutine, write in background last hit record
Package recordHit used for goroutine, write in background last hit record

Jump to

Keyboard shortcuts

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