Documentation ¶
Index ¶
- type Config
- type Daemon
- func (d *Daemon) BroadcastManageReq(req ManageRequest) error
- func (d *Daemon) JsonHandler(w http.ResponseWriter, r *http.Request)
- func (d *Daemon) ManageHandler(w http.ResponseWriter, r *http.Request)
- func (d *Daemon) PhpHandler(w http.ResponseWriter, r *http.Request)
- func (d *Daemon) QueryStreams(name string, querys Querys) (res []*core.Relation, endCh chan bool, err error)
- func (d *Daemon) RelationsToPhpArray(rs []*core.Relation, querys Querys) (string, error)
- func (d *Daemon) Serve(ctx context.Context) error
- func (d *Daemon) UtilServe()
- func (d *Daemon) Worker(ctx context.Context, ManageCh chan ManageRequest)
- type ManageCmd
- type ManageRequest
- type ManageResponse
- type Options
- type Query
- type Querys
- type Request
- type Response
- type Worker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Listen string ManageListen string WorkerLimit int WorkerDefault int LoadDir string ListenLimit int LogLevel int }
func LoadConfig ¶
type Daemon ¶
type Daemon struct { Config Queue chan Request PoolCounter chan bool MaxWorker chan int MngQ []chan ManageRequest }
func (*Daemon) BroadcastManageReq ¶
func (d *Daemon) BroadcastManageReq(req ManageRequest) error
func (*Daemon) JsonHandler ¶
func (d *Daemon) JsonHandler(w http.ResponseWriter, r *http.Request)
func (*Daemon) ManageHandler ¶
func (d *Daemon) ManageHandler(w http.ResponseWriter, r *http.Request)
func (*Daemon) PhpHandler ¶
func (d *Daemon) PhpHandler(w http.ResponseWriter, r *http.Request)
func (*Daemon) QueryStreams ¶
func (*Daemon) RelationsToPhpArray ¶
type ManageRequest ¶
type ManageResponse ¶
type ManageResponse struct { Body interface{} Err error }
type Options ¶
type Options struct { core.PhpOptions OrderDesc bool `json:"order_by,omitempty"` OrderBy string `json:"order_desc,omitempty"` QueryCache bool `json:"query_cache,omitempty"` }
Click to show internal directories.
Click to hide internal directories.