api

package
v0.0.0-...-9745057 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunServer

func RunServer(filePath string)

Types

type Config

type Config struct {
	Server struct {
		Ip                string
		Port              uint
		KeepAliveInterval uint
	}
	Database struct {
		Name string
	}
}

func (*Config) Read

func (c *Config) Read(filePath string) error

Read and parse the configuration file

type RequestHandler

type RequestHandler struct{}
var Handler RequestHandler

func (RequestHandler) ServeHTTP

func (RequestHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)

Directories

Path Synopsis
Package common implements some utility functions for http transaction.
Package common implements some utility functions for http transaction.
******************************************************************************
******************************************************************************
mocks
Package mock_keepalive is a generated GoMock package.
Package mock_keepalive is a generated GoMock package.
mocks
Package mock_topic is a generated GoMock package.
Package mock_topic is a generated GoMock package.

Jump to

Keyboard shortcuts

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