api

package
v0.0.0-...-65a0283 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertJSONHTTPReq

func ConvertJSONHTTPReq(r *http.Request) (io.ReadCloser, int64, string)

func ParseJsonRequest

func ParseJsonRequest(r *http.Request) (json.RawMessage, []json.RawMessage, io.ReadCloser)

Types

type ApiServer

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

func NewV3ApiServer

func NewV3ApiServer(backend v4api, cfg *Config, logger log.Logger) *ApiServer

func (*ApiServer) Start

func (a *ApiServer) Start()

type Config

type Config struct {
	Enabled bool `json:"enabled"`
	//V3      bool   `json:"v4"`
	Host string `json:"host"`
	Port string `json:"port"`
}

Jump to

Keyboard shortcuts

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