api

package
v0.0.0-...-b6dba15 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHealthCheckResponse

func NewHealthCheckResponse(code int, msg string) []byte

NewHealthCheckResponse returns marshaled json from `HealthCheckResponse` structure

Types

type HealthCheckResponse

type HealthCheckResponse struct {
	Code int    `json:"code"`
	Msg  string `json:"msg"`
}

HealthCheckResponse is response to health check

type Server

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

Server represents HTTP server for API

func NewServer

func NewServer(l logrus.FieldLogger) *Server

NewServer creates and setups new instance of HTTP server

func (Server) Start

func (s Server) Start(listen string) error

Start runs echo server

func (Server) Stop

func (s Server) Stop() error

Jump to

Keyboard shortcuts

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