server

package
v0.0.0-...-4553e52 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAdminHandleFunc

func RegisterAdminHandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request))

Types

type Config

type Config interface {
	GetAdmin() *Admin
}
{
   "admin":{
	"address":{
	     "socket_address":{
		     "address": "0.0.0.0",
		     "port_value": 8888
	     }
	}
   }
}

type LogLevelData

type LogLevelData struct {
	LogPath  string `json:"log_path"`
	LogLevel string `json:"log_level"`
}

update log level

type Server

type Server struct {
	*http.Server
}

func (*Server) Start

func (s *Server) Start(config Config)

Jump to

Keyboard shortcuts

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