controller

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReplayedAfterFetchAndPlay

func ReplayedAfterFetchAndPlay(ctx context.Context, sid string, req idl.ReplayedReq, replayedSession *replayed.Session) (int, idl.ReplayedResp)

func ReplayedFetchAndPlay

func ReplayedFetchAndPlay(ctx context.Context, sid string, req idl.ReplayedReq) (int, idl.ReplayedResp, *worker.Replayer)

func SessionFromES

func SessionFromES(ctx context.Context, sid string) (int, []byte)

func SessionFromLocal

func SessionFromLocal(ctx context.Context, sid string, project string, r *http.Request) (int, []byte)

Types

type BaseController

type BaseController struct {
}

BaseController 基础Controller

func (*BaseController) Echo

func (bs *BaseController) Echo(w http.ResponseWriter, req *http.Request, body []byte)

Echo 原始输出,包含tracelog

func (*BaseController) EchoJSON

func (bs *BaseController) EchoJSON(w http.ResponseWriter, r *http.Request, body interface{})

EchoJSON json格式输出

type ShaRinGan

type ShaRinGan struct {
	BaseController
	// contains filtered or unexported fields
}

func (ShaRinGan) AutoReplay

func (srg ShaRinGan) AutoReplay(w http.ResponseWriter, r *http.Request)

*

  • 批量回放

func (ShaRinGan) CodeCoverage

func (srg ShaRinGan) CodeCoverage(w http.ResponseWriter, r *http.Request)

CodeCoverage 代码覆盖率

func (ShaRinGan) CodeCoverageReport

func (srg ShaRinGan) CodeCoverageReport(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

func (ShaRinGan) DelNoise

func (srg ShaRinGan) DelNoise(w http.ResponseWriter, r *http.Request)

*

  • 删除噪音

func (ShaRinGan) DiffBinary

func (srg ShaRinGan) DiffBinary(w http.ResponseWriter, r *http.Request)

func (ShaRinGan) Index

func (srg ShaRinGan) Index(w http.ResponseWriter, r *http.Request)

*

  • 首页

func (ShaRinGan) Noise

func (srg ShaRinGan) Noise(w http.ResponseWriter, r *http.Request)

*

  • 噪音上报

func (ShaRinGan) PlatformGetDsl

func (srg ShaRinGan) PlatformGetDsl(w http.ResponseWriter, r *http.Request)

PlatformGetDsl nuwa平台接口 查询模块dsl上报数据

func (ShaRinGan) PlatformModules

func (srg ShaRinGan) PlatformModules(w http.ResponseWriter, r *http.Request)

PlatformModules nuwa平台接口 读取所有模块数据

func (ShaRinGan) PlatformPostDsl

func (srg ShaRinGan) PlatformPostDsl(w http.ResponseWriter, r *http.Request)

PlatformPostDsl nuwa平台接口 上报模块dsl数据

func (ShaRinGan) Replay

func (srg ShaRinGan) Replay(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

*

  • 回放平台

func (ShaRinGan) Replayed

func (srg ShaRinGan) Replayed(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

*

  • 单个session回放 *
  • @Return ajax返回

func (ShaRinGan) Search

func (srg ShaRinGan) Search(w http.ResponseWriter, r *http.Request)

*

  • 流量搜索

func (ShaRinGan) Session

func (srg ShaRinGan) Session(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

*

  • 查看session详情

func (ShaRinGan) Xxd

func (srg ShaRinGan) Xxd(w http.ResponseWriter, r *http.Request)

base64 decode and bianry

Jump to

Keyboard shortcuts

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