serverhttp

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package serverhttp lc-api.

This package provides a public HTTP API for lc-api.

BasePath: /v0

Version: 0.1.0

Schemes: http, https

Consumes:

  • application/json

Produces:

  • application/json

swagger:meta

Index

Constants

View Source
const (
	// GroupV0 represents routing group pattern of the v0 API version.
	GroupV0 = "/v0"

	// GroupCharts represents routing group pattern of the charts API.
	GroupCharts = "/charts"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server implements HTTP server.

func NewServer

func NewServer(log *zerolog.Logger, b backend.Backend, httpCfg config.HTTPConfig, mrec metric.Recorder) (*Server, error)

NewServer configures a new Server.

func (*Server) Serve

func (s *Server) Serve(ctx context.Context) error

Serve start HTTP server to serve requests.

Directories

Path Synopsis
v0

Jump to

Keyboard shortcuts

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