rainbond: github.com/goodrain/rainbond/eventlog/exit/web Index | Files

package web

import "github.com/goodrain/rainbond/eventlog/exit/web"

Index

Package Files

manager.go

type ResponseBody Uses

type ResponseBody struct {
    Bean     interface{}   `json:"bean,omitempty"`
    List     []interface{} `json:"list,omitempty"`
    PageNum  int           `json:"pageNumber,omitempty"`
    PageSize int           `json:"pageSize,omitempty"`
    Total    int           `json:"total,omitempty"`
}

ResponseBody 返回主体

type ResponseType Uses

type ResponseType struct {
    Code      int          `json:"code"`
    Message   string       `json:"msg"`
    MessageCN string       `json:"msgcn"`
    Body      ResponseBody `json:"body,omitempty"`
}

ResponseType 返回内容

func NewResponseType Uses

func NewResponseType(code int, message string, messageCN string, bean interface{}, list []interface{}) ResponseType

NewResponseType 构建返回结构

func NewSuccessResponse Uses

func NewSuccessResponse(bean interface{}, list []interface{}) ResponseType

NewSuccessResponse 创建成功返回结构

type SocketServer Uses

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

SocketServer socket 服务

func NewSocket Uses

func NewSocket(conf conf.WebSocketConf, log *logrus.Entry, storeManager store.Manager, c cluster.Cluster, healthInfo map[string]string) *SocketServer

NewSocket 创建zmq sub客户端

func (*SocketServer) ListenError Uses

func (s *SocketServer) ListenError() chan error

ListenError 返回错误通道

func (*SocketServer) Run Uses

func (s *SocketServer) Run() error

Run 执行

func (*SocketServer) Stop Uses

func (s *SocketServer) Stop()

Stop 停止

Package web imports 20 packages (graph) and is imported by 1 packages. Updated 2019-02-02. Refresh now. Tools for package owners.