http_server

package
v0.0.0-...-5313827 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2018 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPHandler

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

func NewHTTPHandler

func NewHTTPHandler() *HTTPHandler

func (*HTTPHandler) ServeFile

func (h *HTTPHandler) ServeFile(w http.ResponseWriter, r *http.Request, name string)

func (*HTTPHandler) ServeHTTP

func (h *HTTPHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type HTTPServer

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

func New

func New(addr, staticDir string) *HTTPServer

func (*HTTPServer) Start

func (h *HTTPServer) Start() error

type InfoResp

type InfoResp struct {
	Status string      `json:"status"`
	Data   interface{} `json:"data"`
	Error  string      `json:"error"`
}

type InvokeReq

type InvokeReq struct {
	Addr        string             `json:"addr"`
	ServiceName string             `json:"service_name"`
	PackageName string             `json:"package_name"`
	MethodName  string             `json:"method_name"`
	GRPCArgs    []proto.FieldValue `json:"grpc_args"`
}

type InvokeResp

type InvokeResp struct {
	Status string      `json:"status"`
	Data   interface{} `json:"data"`
	Error  string      `json:"error"`
}

type InvokeStreamReq

type InvokeStreamReq struct {
	GRPCMethod string `json:"grpc_method"`
	GRPCArgs   string `json:"grpc_args"`
}

type InvokeStreamResp

type InvokeStreamResp struct {
	Status string      `json:"status"`
	Data   interface{} `json:"data"`
	Error  string      `json:"error"`
}

Jump to

Keyboard shortcuts

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