http

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddrNameQuery

type AddrNameQuery struct {
	Address string `json:"address" binding:"required,isAddress"`
	AppName string `json:"appname" binding:"required"`
}

AddrNameQuery define a struct to contain param for a POST add-to-appname

type Server

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

Server is the engine to serve reserve-rate API query

func NewServer

func NewServer(host string, atan appNames.AddrToAppName, sugar *zap.SugaredLogger) (*Server, error)

NewServer create an instance of Server to serve API query

func (*Server) Run

func (sv *Server) Run() error

Run starts HTTP server on preconfigure-host. Return error if occurs

Jump to

Keyboard shortcuts

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