Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackServer ¶
type BackServer struct { Config *config.Config StopChan chan int ErrChan chan error Srv *http.Server ListenAddr net.Addr Ready bool DevMode bool GinEngine *gin.Engine DictCon *apis.DictsController // contains filtered or unexported fields }
func NewStaticServer ¶
func NewStaticServer(conf *config.Config) (*BackServer, error)
func (*BackServer) DispatchIPCReq ¶
func (bs *BackServer) DispatchIPCReq(apiName string, args map[string]interface{}) *model.Resp
func (*BackServer) GracefulStop ¶
func (bs *BackServer) GracefulStop()
func (*BackServer) SetDebug ¶
func (bs *BackServer) SetDebug()
func (*BackServer) SetUp ¶
func (bs *BackServer) SetUp() error
func (*BackServer) Start ¶
func (bs *BackServer) Start()
func (*BackServer) StaticServerBaseUrl ¶
func (bs *BackServer) StaticServerBaseUrl() string
Click to show internal directories.
Click to hide internal directories.