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
Click to show internal directories.
Click to hide internal directories.