server

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Write

func Write(svr *Service, res *GeneralResponse, w http.ResponseWriter, r *http.Request)

Types

type ErrorInfo

type ErrorInfo struct {
	Err error  `json:"err"`
	Msg string `json:"msg"`
}

type GeneralResponse

type GeneralResponse struct {
	Code int
	Msg  string
}

type GetCataLogInfo

type GetCataLogInfo struct {
	Catalog   string   `json:"catalog"`
	ChildFile []string `json:"child_file"`
}

type Service

type Service struct {
	// contains filtered or unexported fields
}
var ServerService *Service

func NewService

func NewService() (srv *Service, err error)

func (*Service) GetCataLog

func (svr *Service) GetCataLog() (reps []GetCataLogInfo)

func (*Service) GetCataLogInfo

func (svr *Service) GetCataLogInfo(w http.ResponseWriter, r *http.Request)

func (*Service) GetLogTail

func (svr *Service) GetLogTail(w http.ResponseWriter, r *http.Request)

func (*Service) RunDashboardServer

func (svr *Service) RunDashboardServer(addr string, port int) (err error)

func (*Service) Start

func (srv *Service) Start()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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