cmd

package
v0.0.0-...-211024d Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2020 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PersistenceBackendType string
View Source
var ServerPort string

Functions

func Execute

func Execute()

func HandleHealthCheck

func HandleHealthCheck(w http.ResponseWriter, r *http.Request)

HandleHealthCheck is the handler function for serving the health checks

func StartGRPCServer

func StartGRPCServer(persistenceBackendType string, port string) error

StartGRPCServer runs gRPC server and HTTP gateway

func StartHealthCheck

func StartHealthCheck(endpointType string)

func StartServer

func StartServer(port string)

StartServer Starts the web server on the given port with the given data

func StartWebserver

func StartWebserver(port string, persistenceBackendType string)

Types

type HealthStatus

type HealthStatus struct {
	Status      string
	Description string
}

type Server

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

Jump to

Keyboard shortcuts

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